@sailpoint/api-client 2.2.47 → 2.2.49
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/accounts/api.d.ts +504 -0
- package/dist/accounts/api.js +146 -1
- package/dist/accounts/api.js.map +1 -1
- package/dist/esm/accounts/api.js +145 -0
- package/dist/esm/generic/api.js +262 -335
- package/dist/esm/generic/base.js +4 -4
- package/dist/esm/generic/common.js +44 -31
- package/dist/esm/generic/configuration.js +3 -3
- package/dist/esm/generic/index.js +3 -3
- package/dist/esm/index.js +3 -0
- package/dist/esm/nerm/common.js +2 -2
- package/dist/esm/nermv2025/common.js +2 -2
- package/dist/generic/api.d.ts +166 -177
- package/dist/generic/api.js +265 -338
- package/dist/generic/api.js.map +1 -1
- package/dist/generic/base.d.ts +3 -3
- package/dist/generic/base.js +4 -4
- package/dist/generic/base.js.map +1 -1
- package/dist/generic/common.d.ts +4 -4
- package/dist/generic/common.js +44 -31
- package/dist/generic/common.js.map +1 -1
- package/dist/generic/configuration.d.ts +3 -3
- package/dist/generic/configuration.js +3 -3
- package/dist/generic/configuration.js.map +1 -1
- package/dist/generic/index.d.ts +3 -3
- package/dist/generic/index.js +3 -3
- package/dist/generic/index.js.map +1 -1
- package/dist/generic.spec.d.ts +1 -0
- package/dist/generic.spec.js +133 -0
- package/dist/generic.spec.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.spec.js +40 -0
- package/dist/index.spec.js.map +1 -1
- 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/package.json +3 -2
- package/sailpoint-scopes.json +16386 -0
package/dist/esm/generic/base.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* Generic
|
|
4
|
+
* SailPoint Identity Security API - Generic
|
|
5
|
+
* Generic client for the SailPoint Identity Security versioned APIs. Use it to call any endpoint, in any version, by its path, for example `sources/v1` or `sources/v2/{sourceId}/provisioning-policies`, including endpoints that do not have a resource-specific client or documentation yet. The version is part of the path, so this client is not tied to one API version and the base URL has no version segment.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: any (set in the path)
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
27
27
|
};
|
|
28
28
|
})();
|
|
29
29
|
import globalAxios from 'axios';
|
|
30
|
-
export var BASE_PATH = "https://sailpoint.api.identitynow.com
|
|
30
|
+
export var BASE_PATH = "https://sailpoint.api.identitynow.com".replace(/\/+$/, "");
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* Generic
|
|
4
|
+
* SailPoint Identity Security API - Generic
|
|
5
|
+
* Generic client for the SailPoint Identity Security versioned APIs. Use it to call any endpoint, in any version, by its path, for example `sources/v1` or `sources/v2/{sourceId}/provisioning-policies`, including endpoints that do not have a resource-specific client or documentation yet. The version is part of the path, so this client is not tied to one API version and the base URL has no version segment.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: any (set in the path)
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -236,38 +236,51 @@ export var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH,
|
|
|
236
236
|
if (axios === void 0) { axios = globalAxios; }
|
|
237
237
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
238
238
|
return __awaiter(_this, void 0, void 0, function () {
|
|
239
|
-
var headers, axiosRequestArgs;
|
|
239
|
+
var headers, userAgent, axiosRequestArgs;
|
|
240
240
|
var _a;
|
|
241
241
|
return __generator(this, function (_b) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
axiosArgs.axiosOptions.headers = headers;
|
|
254
|
-
axiosRequestArgs = __assign(__assign({}, axiosArgs.axiosOptions), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url, headers: headers });
|
|
255
|
-
return [2 /*return*/, axios.request(axiosRequestArgs).catch(function (error) {
|
|
256
|
-
var _a;
|
|
257
|
-
if ((error === null || error === void 0 ? void 0 : error.isAxiosError) === true) {
|
|
258
|
-
var clean = new Error((_a = error.message) !== null && _a !== void 0 ? _a : "API request failed");
|
|
259
|
-
clean.name = "ApiError";
|
|
260
|
-
clean.stack = error.stack;
|
|
261
|
-
clean.code = error.code;
|
|
262
|
-
if (error.response) {
|
|
263
|
-
clean.status = error.response.status;
|
|
264
|
-
clean.statusText = error.response.statusText;
|
|
265
|
-
clean.data = error.response.data;
|
|
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, ")");
|
|
266
253
|
}
|
|
267
|
-
|
|
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.");
|
|
268
259
|
}
|
|
269
|
-
|
|
270
|
-
|
|
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
|
+
}
|
|
271
284
|
});
|
|
272
285
|
});
|
|
273
286
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* Generic
|
|
4
|
+
* SailPoint Identity Security API - Generic
|
|
5
|
+
* Generic client for the SailPoint Identity Security versioned APIs. Use it to call any endpoint, in any version, by its path, for example `sources/v1` or `sources/v2/{sourceId}/provisioning-policies`, including endpoints that do not have a resource-specific client or documentation yet. The version is part of the path, so this client is not tied to one API version and the base URL has no version segment.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: any (set in the path)
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* Generic
|
|
4
|
+
* SailPoint Identity Security API - Generic
|
|
5
|
+
* Generic client for the SailPoint Identity Security versioned APIs. Use it to call any endpoint, in any version, by its path, for example `sources/v1` or `sources/v2/{sourceId}/provisioning-policies`, including endpoints that do not have a resource-specific client or documentation yet. The version is part of the path, so this client is not tied to one API version and the base URL has no version segment.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: any (set in the path)
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -265,7 +265,10 @@ export { _WorkItemsApi as WorkItemsApi };
|
|
|
265
265
|
export { _WorkReassignmentApi as WorkReassignmentApi };
|
|
266
266
|
export { _WorkflowsApi as WorkflowsApi };
|
|
267
267
|
// --- Generic / NERM / shared exports ---
|
|
268
|
+
// GenericApi calls any versioned endpoint by path, e.g. genericGet({ path: "accounts/v1" }).
|
|
268
269
|
export * from "./generic/api";
|
|
270
|
+
/** @deprecated Use GenericApi. */
|
|
271
|
+
export { GenericApi as DefaultApi } from "./generic/api";
|
|
269
272
|
export * from "./nerm/api";
|
|
270
273
|
export { Configuration as ConfigurationNerm } from "./nerm/configuration";
|
|
271
274
|
export * from "./nermv2025/api";
|
package/dist/esm/nerm/common.js
CHANGED
|
@@ -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.
|
|
250
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
249
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.49';
|
|
250
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.49";
|
|
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
|
}
|
|
@@ -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.
|
|
250
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
249
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.49';
|
|
250
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.49";
|
|
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
|
}
|