@sailpoint/api-client 2.2.48 → 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.
Files changed (41) hide show
  1. package/dist/accounts/api.d.ts +504 -0
  2. package/dist/accounts/api.js +146 -1
  3. package/dist/accounts/api.js.map +1 -1
  4. package/dist/esm/accounts/api.js +145 -0
  5. package/dist/esm/generic/api.js +262 -335
  6. package/dist/esm/generic/base.js +4 -4
  7. package/dist/esm/generic/common.js +44 -31
  8. package/dist/esm/generic/configuration.js +3 -3
  9. package/dist/esm/generic/index.js +3 -3
  10. package/dist/esm/index.js +3 -0
  11. package/dist/esm/nerm/common.js +2 -2
  12. package/dist/esm/nermv2025/common.js +2 -2
  13. package/dist/generic/api.d.ts +166 -177
  14. package/dist/generic/api.js +265 -338
  15. package/dist/generic/api.js.map +1 -1
  16. package/dist/generic/base.d.ts +3 -3
  17. package/dist/generic/base.js +4 -4
  18. package/dist/generic/base.js.map +1 -1
  19. package/dist/generic/common.d.ts +4 -4
  20. package/dist/generic/common.js +44 -31
  21. package/dist/generic/common.js.map +1 -1
  22. package/dist/generic/configuration.d.ts +3 -3
  23. package/dist/generic/configuration.js +3 -3
  24. package/dist/generic/configuration.js.map +1 -1
  25. package/dist/generic/index.d.ts +3 -3
  26. package/dist/generic/index.js +3 -3
  27. package/dist/generic/index.js.map +1 -1
  28. package/dist/generic.spec.d.ts +1 -0
  29. package/dist/generic.spec.js +133 -0
  30. package/dist/generic.spec.js.map +1 -0
  31. package/dist/index.d.ts +2 -0
  32. package/dist/index.js +5 -1
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.spec.js +40 -0
  35. package/dist/index.spec.js.map +1 -1
  36. package/dist/nerm/common.js +2 -2
  37. package/dist/nerm/common.js.map +1 -1
  38. package/dist/nermv2025/common.js +2 -2
  39. package/dist/nermv2025/common.js.map +1 -1
  40. package/package.json +3 -2
  41. package/sailpoint-scopes.json +16386 -0
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Generic Identity Security Cloud V2025 API
5
- * Generic API specification for the Identity Security Cloud platform
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: v2025
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/v2025".replace(/\/+$/, "");
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
- * Generic Identity Security Cloud V2025 API
5
- * Generic API specification for the Identity Security Cloud platform
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: v2025
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
- headers = __assign({}, axiosArgs.axiosOptions.headers);
243
- // Node-only headers. Browsers reject a User-Agent override, and a custom
244
- // header such as X-SailPoint-SDK forces a CORS preflight that tenants do
245
- // not allow, which blocks the request outright.
246
- if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
247
- // the original spread let a caller-supplied User-Agent win
248
- if (!('User-Agent' in headers)) {
249
- headers['User-Agent'] = 'OpenAPI-Generator/1.6.7/ts';
250
- }
251
- headers['X-SailPoint-SDK'] = 'typescript-1.6.7';
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
- throw clean;
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
- throw error;
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
- * Generic Identity Security Cloud V2025 API
5
- * Generic API specification for the Identity Security Cloud platform
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: v2025
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
- * Generic Identity Security Cloud V2025 API
5
- * Generic API specification for the Identity Security Cloud platform
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: v2025
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";
@@ -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.48';
250
- userAgent = "SailPoint-SDK-TypeScript/2.2.48";
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.48';
250
- userAgent = "SailPoint-SDK-TypeScript/2.2.48";
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
  }