@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,226 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud API - JIT Activation Convert
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __extends = (this && this.__extends) || (function () {
15
+ var extendStatics = function (d, b) {
16
+ extendStatics = Object.setPrototypeOf ||
17
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
+ return extendStatics(d, b);
20
+ };
21
+ return function (d, b) {
22
+ if (typeof b !== "function" && b !== null)
23
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
+ extendStatics(d, b);
25
+ function __() { this.constructor = d; }
26
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ };
28
+ })();
29
+ var __assign = (this && this.__assign) || function () {
30
+ __assign = Object.assign || function(t) {
31
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
32
+ s = arguments[i];
33
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
34
+ t[p] = s[p];
35
+ }
36
+ return t;
37
+ };
38
+ return __assign.apply(this, arguments);
39
+ };
40
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
42
+ return new (P || (P = Promise))(function (resolve, reject) {
43
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
44
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
45
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
46
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
47
+ });
48
+ };
49
+ var __generator = (this && this.__generator) || function (thisArg, body) {
50
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
51
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
52
+ function verb(n) { return function (v) { return step([n, v]); }; }
53
+ function step(op) {
54
+ if (f) throw new TypeError("Generator is already executing.");
55
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
56
+ 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;
57
+ if (y = 0, t) op = [op[0] & 2, t.value];
58
+ switch (op[0]) {
59
+ case 0: case 1: t = op; break;
60
+ case 4: _.label++; return { value: op[1], done: false };
61
+ case 5: _.label++; y = op[1]; op = [0]; continue;
62
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
63
+ default:
64
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
65
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
66
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
67
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
68
+ if (t[2]) _.ops.pop();
69
+ _.trys.pop(); continue;
70
+ }
71
+ op = body.call(thisArg, _);
72
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
73
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
74
+ }
75
+ };
76
+ import globalAxios from 'axios';
77
+ // Some imports not used depending on template conditions
78
+ // @ts-ignore
79
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
80
+ // @ts-ignore
81
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
82
+ export var ConvertEntitlementConnectionRequestTargetTypeEnum = {
83
+ Jit: 'JIT',
84
+ Standing: 'STANDING'
85
+ };
86
+ export var ConvertEntitlementConnectionResponseTypeEnum = {
87
+ Jit: 'JIT',
88
+ Standing: 'STANDING'
89
+ };
90
+ /**
91
+ * 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.
92
+ * @export
93
+ * @enum {string}
94
+ */
95
+ export var LocaleOrigin = {
96
+ Default: 'DEFAULT',
97
+ Request: 'REQUEST'
98
+ };
99
+ /**
100
+ * JITActivationConvertApi - axios parameter creator
101
+ * @export
102
+ */
103
+ export var JITActivationConvertApiAxiosParamCreator = function (configuration) {
104
+ var _this = this;
105
+ return {
106
+ /**
107
+ * 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.
108
+ * @summary Convert entitlement connection assignment type
109
+ * @param {ConvertEntitlementConnectionRequest} convertEntitlementConnectionRequest
110
+ * @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
111
+ * @param {*} [axiosOptions] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ startEntitlementConnectionConversionV1: function (convertEntitlementConnectionRequest, xSailPointExperimental, axiosOptions) {
115
+ if (axiosOptions === void 0) { axiosOptions = {}; }
116
+ return __awaiter(_this, void 0, void 0, function () {
117
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
118
+ return __generator(this, function (_a) {
119
+ // verify required parameter 'convertEntitlementConnectionRequest' is not null or undefined
120
+ assertParamExists('startEntitlementConnectionConversionV1', 'convertEntitlementConnectionRequest', convertEntitlementConnectionRequest);
121
+ if (xSailPointExperimental === undefined) {
122
+ xSailPointExperimental = 'true';
123
+ }
124
+ localVarPath = "/convert-entitlement-connection/v1";
125
+ localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
130
+ localVarHeaderParameter = {};
131
+ localVarQueryParameter = {};
132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
133
+ if (xSailPointExperimental != null) {
134
+ localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
135
+ }
136
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
139
+ localVarRequestOptions.data = serializeDataIfNeeded(convertEntitlementConnectionRequest, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: toPathString(localVarUrlObj),
142
+ axiosOptions: localVarRequestOptions,
143
+ }];
144
+ });
145
+ });
146
+ },
147
+ };
148
+ };
149
+ /**
150
+ * JITActivationConvertApi - functional programming interface
151
+ * @export
152
+ */
153
+ export var JITActivationConvertApiFp = function (configuration) {
154
+ var localVarAxiosParamCreator = JITActivationConvertApiAxiosParamCreator(configuration);
155
+ return {
156
+ /**
157
+ * 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.
158
+ * @summary Convert entitlement connection assignment type
159
+ * @param {ConvertEntitlementConnectionRequest} convertEntitlementConnectionRequest
160
+ * @param {string} [xSailPointExperimental] Use this header to enable this experimental API.
161
+ * @param {*} [axiosOptions] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ startEntitlementConnectionConversionV1: function (convertEntitlementConnectionRequest, xSailPointExperimental, axiosOptions) {
165
+ var _a, _b, _c;
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
168
+ return __generator(this, function (_d) {
169
+ switch (_d.label) {
170
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.startEntitlementConnectionConversionV1(convertEntitlementConnectionRequest, xSailPointExperimental, axiosOptions)];
171
+ case 1:
172
+ localVarAxiosArgs = _d.sent();
173
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
174
+ localVarOperationServerBasePath = (_c = (_b = operationServerMap['JITActivationConvertApi.startEntitlementConnectionConversionV1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
175
+ return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
176
+ }
177
+ });
178
+ });
179
+ },
180
+ };
181
+ };
182
+ /**
183
+ * JITActivationConvertApi - factory interface
184
+ * @export
185
+ */
186
+ export var JITActivationConvertApiFactory = function (configuration, basePath, axios) {
187
+ var localVarFp = JITActivationConvertApiFp(configuration);
188
+ return {
189
+ /**
190
+ * 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.
191
+ * @summary Convert entitlement connection assignment type
192
+ * @param {JITActivationConvertApiStartEntitlementConnectionConversionV1Request} requestParameters Request parameters.
193
+ * @param {*} [axiosOptions] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ startEntitlementConnectionConversionV1: function (requestParameters, axiosOptions) {
197
+ return localVarFp.startEntitlementConnectionConversionV1(requestParameters.convertEntitlementConnectionRequest, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(axios, basePath); });
198
+ },
199
+ };
200
+ };
201
+ /**
202
+ * JITActivationConvertApi - object-oriented interface
203
+ * @export
204
+ * @class JITActivationConvertApi
205
+ * @extends {BaseAPI}
206
+ */
207
+ var JITActivationConvertApi = /** @class */ (function (_super) {
208
+ __extends(JITActivationConvertApi, _super);
209
+ function JITActivationConvertApi() {
210
+ return _super !== null && _super.apply(this, arguments) || this;
211
+ }
212
+ /**
213
+ * 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.
214
+ * @summary Convert entitlement connection assignment type
215
+ * @param {JITActivationConvertApiStartEntitlementConnectionConversionV1Request} requestParameters Request parameters.
216
+ * @param {*} [axiosOptions] Override http request option.
217
+ * @throws {RequiredError}
218
+ * @memberof JITActivationConvertApi
219
+ */
220
+ JITActivationConvertApi.prototype.startEntitlementConnectionConversionV1 = function (requestParameters, axiosOptions) {
221
+ var _this = this;
222
+ return JITActivationConvertApiFp(this.configuration).startEntitlementConnectionConversionV1(requestParameters.convertEntitlementConnectionRequest, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
223
+ };
224
+ return JITActivationConvertApi;
225
+ }(BaseAPI));
226
+ export { JITActivationConvertApi };
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud API - JIT Activation Convert
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __extends = (this && this.__extends) || (function () {
15
+ var extendStatics = function (d, b) {
16
+ extendStatics = Object.setPrototypeOf ||
17
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
+ return extendStatics(d, b);
20
+ };
21
+ return function (d, b) {
22
+ if (typeof b !== "function" && b !== null)
23
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
+ extendStatics(d, b);
25
+ function __() { this.constructor = d; }
26
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ };
28
+ })();
29
+ import globalAxios from 'axios';
30
+ export var BASE_PATH = "https://sailpoint.api.identitynow.com".replace(/\/+$/, "");
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export var COLLECTION_FORMATS = {
36
+ csv: ",",
37
+ ssv: " ",
38
+ tsv: "\t",
39
+ pipes: "|",
40
+ };
41
+ /**
42
+ *
43
+ * @export
44
+ * @class BaseAPI
45
+ */
46
+ var BaseAPI = /** @class */ (function () {
47
+ function BaseAPI(configuration, basePath, axios) {
48
+ if (basePath === void 0) { basePath = BASE_PATH; }
49
+ if (axios === void 0) { axios = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.axiosInstance) !== null && _a !== void 0 ? _a : globalAxios; }
50
+ var _a;
51
+ this.basePath = basePath;
52
+ this.axios = axios;
53
+ if (configuration) {
54
+ this.configuration = configuration;
55
+ this.basePath = configuration.basePath || this.basePath;
56
+ }
57
+ }
58
+ return BaseAPI;
59
+ }());
60
+ export { BaseAPI };
61
+ ;
62
+ /**
63
+ *
64
+ * @export
65
+ * @class RequiredError
66
+ * @extends {Error}
67
+ */
68
+ var RequiredError = /** @class */ (function (_super) {
69
+ __extends(RequiredError, _super);
70
+ function RequiredError(field, msg) {
71
+ var _this = _super.call(this, msg) || this;
72
+ _this.field = field;
73
+ _this.name = "RequiredError";
74
+ return _this;
75
+ }
76
+ return RequiredError;
77
+ }(Error));
78
+ export { RequiredError };
79
+ /**
80
+ *
81
+ * @export
82
+ */
83
+ export var operationServerMap = {};
@@ -0,0 +1,287 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud API - JIT Activation Convert
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __assign = (this && this.__assign) || function () {
15
+ __assign = Object.assign || function(t) {
16
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
17
+ s = arguments[i];
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
+ t[p] = s[p];
20
+ }
21
+ return t;
22
+ };
23
+ return __assign.apply(this, arguments);
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ var __generator = (this && this.__generator) || function (thisArg, body) {
35
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
+ function verb(n) { return function (v) { return step([n, v]); }; }
38
+ function step(op) {
39
+ if (f) throw new TypeError("Generator is already executing.");
40
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
41
+ 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;
42
+ if (y = 0, t) op = [op[0] & 2, t.value];
43
+ switch (op[0]) {
44
+ case 0: case 1: t = op; break;
45
+ case 4: _.label++; return { value: op[1], done: false };
46
+ case 5: _.label++; y = op[1]; op = [0]; continue;
47
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
48
+ default:
49
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
50
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
51
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
52
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
53
+ if (t[2]) _.ops.pop();
54
+ _.trys.pop(); continue;
55
+ }
56
+ op = body.call(thisArg, _);
57
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
58
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
59
+ }
60
+ };
61
+ import { RequiredError } from "./base";
62
+ /**
63
+ *
64
+ * @export
65
+ */
66
+ export var DUMMY_BASE_URL = 'https://example.com';
67
+ /**
68
+ *
69
+ * @throws {RequiredError}
70
+ * @export
71
+ */
72
+ export var assertParamExists = function (functionName, paramName, paramValue) {
73
+ if (paramValue === null || paramValue === undefined) {
74
+ throw new RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
75
+ }
76
+ };
77
+ /**
78
+ *
79
+ * @export
80
+ */
81
+ export var setApiKeyToObject = function (object, keyParamName, configuration) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var localVarApiKeyValue, _a;
84
+ return __generator(this, function (_b) {
85
+ switch (_b.label) {
86
+ case 0:
87
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
88
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
89
+ return [4 /*yield*/, configuration.apiKey(keyParamName)];
90
+ case 1:
91
+ _a = _b.sent();
92
+ return [3 /*break*/, 4];
93
+ case 2: return [4 /*yield*/, configuration.apiKey];
94
+ case 3:
95
+ _a = _b.sent();
96
+ _b.label = 4;
97
+ case 4:
98
+ localVarApiKeyValue = _a;
99
+ object[keyParamName] = localVarApiKeyValue;
100
+ _b.label = 5;
101
+ case 5: return [2 /*return*/];
102
+ }
103
+ });
104
+ });
105
+ };
106
+ /**
107
+ *
108
+ * @export
109
+ */
110
+ export var setBasicAuthToObject = function (object, configuration) {
111
+ if (configuration && (configuration.username || configuration.password)) {
112
+ object["auth"] = { username: configuration.username, password: configuration.password };
113
+ }
114
+ };
115
+ /**
116
+ *
117
+ * @export
118
+ */
119
+ export var setBearerAuthToObject = function (object, configuration) {
120
+ return __awaiter(this, void 0, void 0, function () {
121
+ var accessToken, _a;
122
+ return __generator(this, function (_b) {
123
+ switch (_b.label) {
124
+ case 0:
125
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
126
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
127
+ return [4 /*yield*/, configuration.accessToken()];
128
+ case 1:
129
+ _a = _b.sent();
130
+ return [3 /*break*/, 4];
131
+ case 2: return [4 /*yield*/, configuration.accessToken];
132
+ case 3:
133
+ _a = _b.sent();
134
+ _b.label = 4;
135
+ case 4:
136
+ accessToken = _a;
137
+ object["Authorization"] = "Bearer " + accessToken;
138
+ _b.label = 5;
139
+ case 5: return [2 /*return*/];
140
+ }
141
+ });
142
+ });
143
+ };
144
+ /**
145
+ *
146
+ * @export
147
+ */
148
+ export var setOAuthToObject = function (object, name, scopes, configuration) {
149
+ return __awaiter(this, void 0, void 0, function () {
150
+ var localVarAccessTokenValue, _a;
151
+ return __generator(this, function (_b) {
152
+ switch (_b.label) {
153
+ case 0:
154
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
155
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
156
+ return [4 /*yield*/, configuration.accessToken(name, scopes)];
157
+ case 1:
158
+ _a = _b.sent();
159
+ return [3 /*break*/, 4];
160
+ case 2: return [4 /*yield*/, configuration.accessToken];
161
+ case 3:
162
+ _a = _b.sent();
163
+ _b.label = 4;
164
+ case 4:
165
+ localVarAccessTokenValue = _a;
166
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
167
+ _b.label = 5;
168
+ case 5: return [2 /*return*/];
169
+ }
170
+ });
171
+ });
172
+ };
173
+ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
174
+ if (key === void 0) { key = ""; }
175
+ if (parameter == null)
176
+ return;
177
+ if (typeof parameter === "object") {
178
+ if (Array.isArray(parameter)) {
179
+ parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
180
+ }
181
+ else {
182
+ Object.keys(parameter).forEach(function (currentKey) {
183
+ return setFlattenedQueryParams(urlSearchParams, parameter[currentKey], "".concat(key).concat(key !== '' ? '.' : '').concat(currentKey));
184
+ });
185
+ }
186
+ }
187
+ else {
188
+ if (urlSearchParams.has(key)) {
189
+ urlSearchParams.append(key, parameter);
190
+ }
191
+ else {
192
+ urlSearchParams.set(key, parameter);
193
+ }
194
+ }
195
+ }
196
+ /**
197
+ *
198
+ * @export
199
+ */
200
+ export var setSearchParams = function (url) {
201
+ var objects = [];
202
+ for (var _i = 1; _i < arguments.length; _i++) {
203
+ objects[_i - 1] = arguments[_i];
204
+ }
205
+ var searchParams = new URLSearchParams(url.search);
206
+ setFlattenedQueryParams(searchParams, objects);
207
+ url.search = searchParams.toString();
208
+ };
209
+ /**
210
+ *
211
+ * @export
212
+ */
213
+ export var serializeDataIfNeeded = function (value, requestOptions, configuration) {
214
+ var nonString = typeof value !== 'string';
215
+ var needsSerialization = nonString && configuration && configuration.isJsonMime
216
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
217
+ : nonString;
218
+ return needsSerialization
219
+ ? JSON.stringify(value !== undefined ? value : {})
220
+ : (value || "");
221
+ };
222
+ /**
223
+ *
224
+ * @export
225
+ */
226
+ export var toPathString = function (url) {
227
+ return url.pathname + url.search + url.hash;
228
+ };
229
+ /**
230
+ *
231
+ * @export
232
+ */
233
+ export var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
234
+ var _this = this;
235
+ return function (axios, basePath) {
236
+ if (axios === void 0) { axios = globalAxios; }
237
+ if (basePath === void 0) { basePath = BASE_PATH; }
238
+ return __awaiter(_this, void 0, void 0, function () {
239
+ var headers, userAgent, axiosRequestArgs;
240
+ var _a;
241
+ return __generator(this, function (_b) {
242
+ switch (_b.label) {
243
+ case 0:
244
+ headers = __assign({}, axiosArgs.axiosOptions.headers);
245
+ // Node-only headers. Browsers reject a User-Agent override, and a custom
246
+ // header such as X-SailPoint-SDK forces a CORS preflight that tenants do
247
+ // not allow, which blocks the request outright.
248
+ if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
249
+ headers['X-SailPoint-SDK'] = 'typescript-1.0.0';
250
+ userAgent = "SailPoint-SDK-TypeScript/1.0.0";
251
+ if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
252
+ userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
253
+ }
254
+ userAgent += " (".concat(process.platform, "; ").concat(process.arch, ") Node/").concat(process.versions.node, " (openapi-generator/7.12.0)");
255
+ headers['User-Agent'] = userAgent;
256
+ }
257
+ if (!configuration.experimental && ("X-SailPoint-Experimental" in headers)) {
258
+ throw new Error("You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.");
259
+ }
260
+ else if (configuration.experimental == true && ("X-SailPoint-Experimental" in headers)) {
261
+ console.log("Warning: You are using Experimental APIs");
262
+ }
263
+ return [4 /*yield*/, setBearerAuthToObject(headers, configuration)];
264
+ case 1:
265
+ _b.sent();
266
+ axiosRequestArgs = __assign(__assign({}, axiosArgs.axiosOptions), { url: (basePath || (configuration === null || configuration === void 0 ? void 0 : configuration.basePath)) + axiosArgs.url, headers: headers });
267
+ return [2 /*return*/, axios.request(axiosRequestArgs).catch(function (error) {
268
+ var _a;
269
+ if ((error === null || error === void 0 ? void 0 : error.isAxiosError) === true) {
270
+ var clean = new Error((_a = error.message) !== null && _a !== void 0 ? _a : 'API request failed');
271
+ clean.name = 'ApiError';
272
+ clean.stack = error.stack;
273
+ clean.code = error.code;
274
+ if (error.response) {
275
+ clean.status = error.response.status;
276
+ clean.statusText = error.response.statusText;
277
+ clean.data = error.response.data;
278
+ }
279
+ throw clean;
280
+ }
281
+ throw error;
282
+ })];
283
+ }
284
+ });
285
+ });
286
+ };
287
+ };
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud API - JIT Activation Convert
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var Configuration = /** @class */ (function () {
15
+ function Configuration(param) {
16
+ if (param === void 0) { param = {}; }
17
+ this.apiKey = param.apiKey;
18
+ this.username = param.username;
19
+ this.password = param.password;
20
+ this.accessToken = param.accessToken;
21
+ this.basePath = param.basePath;
22
+ this.serverIndex = param.serverIndex;
23
+ this.baseOptions = param.baseOptions;
24
+ this.formDataCtor = param.formDataCtor;
25
+ }
26
+ /**
27
+ * Check if the given MIME is a JSON MIME.
28
+ * JSON MIME examples:
29
+ * application/json
30
+ * application/json; charset=UTF8
31
+ * APPLICATION/JSON
32
+ * application/vnd.company+json
33
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
34
+ * @return True if the given MIME is JSON, false otherwise.
35
+ */
36
+ Configuration.prototype.isJsonMime = function (mime) {
37
+ var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
38
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
39
+ };
40
+ return Configuration;
41
+ }());
42
+ export { Configuration };
@@ -0,0 +1,15 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud API - JIT Activation Convert
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from "./api";
15
+ export * from "../configuration";
@@ -246,8 +246,8 @@ export var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH,
246
246
  // header such as X-SailPoint-SDK forces a CORS preflight that tenants do
247
247
  // not allow, which blocks the request outright.
248
248
  if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
249
- headers['X-SailPoint-SDK'] = 'typescript-2.2.38';
250
- userAgent = "SailPoint-SDK-TypeScript/2.2.38";
249
+ headers['X-SailPoint-SDK'] = 'typescript-2.2.40';
250
+ userAgent = "SailPoint-SDK-TypeScript/2.2.40";
251
251
  if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
252
252
  userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
253
253
  }