@sailpoint/api-client 2.2.39 → 2.2.41

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 (71) hide show
  1. package/dist/certifications/api.d.ts +3 -3
  2. package/dist/certifications/api.js +2 -2
  3. package/dist/certifications/api.js.map +1 -1
  4. package/dist/custom_forms/api.d.ts +20 -8
  5. package/dist/custom_forms/api.js +18 -9
  6. package/dist/custom_forms/api.js.map +1 -1
  7. package/dist/esm/certifications/api.js +2 -2
  8. package/dist/esm/custom_forms/api.js +18 -9
  9. package/dist/esm/gov_certification/api.js +5565 -0
  10. package/dist/esm/gov_certification/base.js +83 -0
  11. package/dist/esm/gov_certification/common.js +287 -0
  12. package/dist/esm/gov_certification/configuration.js +42 -0
  13. package/dist/esm/gov_certification/index.js +15 -0
  14. package/dist/esm/identities/api.js +205 -0
  15. package/dist/esm/index.js +6 -0
  16. package/dist/esm/jit_activation_convert/api.js +226 -0
  17. package/dist/esm/jit_activation_convert/base.js +83 -0
  18. package/dist/esm/jit_activation_convert/common.js +287 -0
  19. package/dist/esm/jit_activation_convert/configuration.js +42 -0
  20. package/dist/esm/jit_activation_convert/index.js +15 -0
  21. package/dist/esm/nerm/common.js +2 -2
  22. package/dist/esm/nermv2025/common.js +2 -2
  23. package/dist/esm/privilege_criteria/api.js +2 -2
  24. package/dist/esm/sources/api.js +88 -0
  25. package/dist/gov_certification/api.d.ts +7599 -0
  26. package/dist/gov_certification/api.js +5576 -0
  27. package/dist/gov_certification/api.js.map +1 -0
  28. package/dist/gov_certification/base.d.ts +66 -0
  29. package/dist/gov_certification/base.js +90 -0
  30. package/dist/gov_certification/base.js.map +1 -0
  31. package/dist/gov_certification/common.d.ts +65 -0
  32. package/dist/gov_certification/common.js +300 -0
  33. package/dist/gov_certification/common.js.map +1 -0
  34. package/dist/gov_certification/configuration.d.ts +91 -0
  35. package/dist/gov_certification/configuration.js +46 -0
  36. package/dist/gov_certification/configuration.js.map +1 -0
  37. package/dist/gov_certification/index.d.ts +13 -0
  38. package/dist/gov_certification/index.js +32 -0
  39. package/dist/gov_certification/index.js.map +1 -0
  40. package/dist/identities/api.d.ts +339 -0
  41. package/dist/identities/api.js +206 -1
  42. package/dist/identities/api.js.map +1 -1
  43. package/dist/index.d.ts +6 -0
  44. package/dist/index.js +240 -234
  45. package/dist/index.js.map +1 -1
  46. package/dist/jit_activation_convert/api.d.ts +241 -0
  47. package/dist/jit_activation_convert/api.js +236 -0
  48. package/dist/jit_activation_convert/api.js.map +1 -0
  49. package/dist/jit_activation_convert/base.d.ts +66 -0
  50. package/dist/jit_activation_convert/base.js +90 -0
  51. package/dist/jit_activation_convert/base.js.map +1 -0
  52. package/dist/jit_activation_convert/common.d.ts +65 -0
  53. package/dist/jit_activation_convert/common.js +300 -0
  54. package/dist/jit_activation_convert/common.js.map +1 -0
  55. package/dist/jit_activation_convert/configuration.d.ts +91 -0
  56. package/dist/jit_activation_convert/configuration.js +46 -0
  57. package/dist/jit_activation_convert/configuration.js.map +1 -0
  58. package/dist/jit_activation_convert/index.d.ts +13 -0
  59. package/dist/jit_activation_convert/index.js +32 -0
  60. package/dist/jit_activation_convert/index.js.map +1 -0
  61. package/dist/nerm/common.js +2 -2
  62. package/dist/nerm/common.js.map +1 -1
  63. package/dist/nermv2025/common.js +2 -2
  64. package/dist/nermv2025/common.js.map +1 -1
  65. package/dist/privilege_criteria/api.d.ts +3 -3
  66. package/dist/privilege_criteria/api.js +2 -2
  67. package/dist/privilege_criteria/api.js.map +1 -1
  68. package/dist/sources/api.d.ts +87 -0
  69. package/dist/sources/api.js +88 -0
  70. package/dist/sources/api.js.map +1 -1
  71. package/package.json +1 -1
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud API - Next Generation Certification Campaigns
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 - Next Generation Certification Campaigns
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 - Next Generation Certification Campaigns
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 - Next Generation Certification Campaigns
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";