sailpoint-api-client 1.6.10 → 1.7.1

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/beta/README.md +2 -2
  2. package/beta/api.ts +2117 -205
  3. package/beta/common.ts +2 -2
  4. package/beta/package.json +1 -1
  5. package/dist/beta/api.d.ts +1003 -74
  6. package/dist/beta/api.js +2751 -401
  7. package/dist/beta/api.js.map +1 -1
  8. package/dist/beta/common.js +1 -1
  9. package/dist/beta/common.js.map +1 -1
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +6 -3
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.spec.js +18 -0
  14. package/dist/index.spec.js.map +1 -1
  15. package/dist/v2024/api.d.ts +206 -60
  16. package/dist/v2024/api.js +3283 -760
  17. package/dist/v2024/api.js.map +1 -1
  18. package/dist/v2024/common.js +1 -1
  19. package/dist/v2024/common.js.map +1 -1
  20. package/dist/v2025/api.d.ts +4212 -143
  21. package/dist/v2025/api.js +6580 -963
  22. package/dist/v2025/api.js.map +1 -1
  23. package/dist/v2025/common.js +1 -1
  24. package/dist/v2025/common.js.map +1 -1
  25. package/dist/v2026/api.d.ts +818 -0
  26. package/dist/v2026/api.js +800 -0
  27. package/dist/v2026/api.js.map +1 -0
  28. package/dist/v2026/base.d.ts +66 -0
  29. package/dist/v2026/base.js +89 -0
  30. package/dist/v2026/base.js.map +1 -0
  31. package/dist/v2026/common.d.ts +65 -0
  32. package/dist/v2026/common.js +266 -0
  33. package/dist/v2026/common.js.map +1 -0
  34. package/dist/v2026/configuration.d.ts +91 -0
  35. package/dist/v2026/configuration.js +46 -0
  36. package/dist/v2026/configuration.js.map +1 -0
  37. package/dist/v2026/index.d.ts +13 -0
  38. package/dist/v2026/index.js +32 -0
  39. package/dist/v2026/index.js.map +1 -0
  40. package/dist/v3/api.d.ts +184 -12
  41. package/dist/v3/api.js +1278 -285
  42. package/dist/v3/api.js.map +1 -1
  43. package/dist/v3/common.js +1 -1
  44. package/dist/v3/common.js.map +1 -1
  45. package/index.spec.ts +11 -1
  46. package/index.ts +3 -0
  47. package/package.json +1 -1
  48. package/v2024/README.md +2 -2
  49. package/v2024/api.ts +1443 -288
  50. package/v2024/common.ts +2 -2
  51. package/v2024/package.json +1 -1
  52. package/v2025/README.md +2 -2
  53. package/v2025/api.ts +6944 -441
  54. package/v2025/common.ts +2 -2
  55. package/v2025/package.json +1 -1
  56. package/v2026/.openapi-generator/FILES +12 -0
  57. package/v2026/.openapi-generator/VERSION +1 -0
  58. package/v2026/.openapi-generator-ignore +23 -0
  59. package/v2026/README.md +46 -0
  60. package/v2026/api.ts +1188 -0
  61. package/v2026/base.ts +86 -0
  62. package/v2026/common.ts +165 -0
  63. package/v2026/configuration.ts +110 -0
  64. package/v2026/git_push.sh +57 -0
  65. package/v2026/index.ts +18 -0
  66. package/v2026/package.json +34 -0
  67. package/v2026/tsconfig.json +21 -0
  68. package/v3/README.md +2 -2
  69. package/v3/api.ts +675 -109
  70. package/v3/common.ts +2 -2
  71. package/v3/package.json +1 -1
package/v2026/base.ts ADDED
@@ -0,0 +1,86 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud v2026 API
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: v2026
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
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ // Some imports not used depending on template conditions
18
+ // @ts-ignore
19
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
20
+ import globalAxios from 'axios';
21
+
22
+ export const BASE_PATH = "https://sailpoint.api.identitynow.com/v2026".replace(/\/+$/, "");
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ */
28
+ export const COLLECTION_FORMATS = {
29
+ csv: ",",
30
+ ssv: " ",
31
+ tsv: "\t",
32
+ pipes: "|",
33
+ };
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface RequestArgs
39
+ */
40
+ export interface RequestArgs {
41
+ url: string;
42
+ axiosOptions: RawAxiosRequestConfig;
43
+ }
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @class BaseAPI
49
+ */
50
+ export class BaseAPI {
51
+ protected configuration: Configuration | undefined;
52
+
53
+ constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
54
+ if (configuration) {
55
+ this.configuration = configuration;
56
+ this.basePath = configuration.basePath + "/v2026"|| this.basePath;
57
+ }
58
+ }
59
+ };
60
+
61
+ /**
62
+ *
63
+ * @export
64
+ * @class RequiredError
65
+ * @extends {Error}
66
+ */
67
+ export class RequiredError extends Error {
68
+ constructor(public field: string, msg?: string) {
69
+ super(msg);
70
+ this.name = "RequiredError"
71
+ }
72
+ }
73
+
74
+ interface ServerMap {
75
+ [key: string]: {
76
+ url: string,
77
+ description: string,
78
+ }[];
79
+ }
80
+
81
+ /**
82
+ *
83
+ * @export
84
+ */
85
+ export const operationServerMap: ServerMap = {
86
+ }
@@ -0,0 +1,165 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud v2026 API
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: v2026
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
+
15
+
16
+ import type { Configuration } from "../configuration";
17
+ import type { RequestArgs } from "./base";
18
+ import type { AxiosInstance, AxiosResponse } from 'axios';
19
+ import { RequiredError } from "./base";
20
+ import axiosRetry from "axios-retry";
21
+
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ export const DUMMY_BASE_URL = 'https://example.com'
27
+
28
+ /**
29
+ *
30
+ * @throws {RequiredError}
31
+ * @export
32
+ */
33
+ export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
34
+ if (paramValue === null || paramValue === undefined) {
35
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
36
+ }
37
+ }
38
+
39
+ /**
40
+ *
41
+ * @export
42
+ */
43
+ export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
44
+ if (configuration && configuration.apiKey) {
45
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
46
+ ? await configuration.apiKey(keyParamName)
47
+ : await configuration.apiKey;
48
+ object[keyParamName] = localVarApiKeyValue;
49
+ }
50
+ }
51
+
52
+ /**
53
+ *
54
+ * @export
55
+ */
56
+ export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
57
+ if (configuration && (configuration.username || configuration.password)) {
58
+ object["auth"] = { username: configuration.username, password: configuration.password };
59
+ }
60
+ }
61
+
62
+ /**
63
+ *
64
+ * @export
65
+ */
66
+ export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
67
+ if (configuration && configuration.accessToken) {
68
+ const accessToken = typeof configuration.accessToken === 'function'
69
+ ? await configuration.accessToken()
70
+ : await configuration.accessToken;
71
+ object["Authorization"] = "Bearer " + accessToken;
72
+ }
73
+ }
74
+
75
+ /**
76
+ *
77
+ * @export
78
+ */
79
+ export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
80
+ if (configuration && configuration.accessToken) {
81
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
82
+ ? await configuration.accessToken(name, scopes)
83
+ : await configuration.accessToken;
84
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
85
+ }
86
+ }
87
+
88
+ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
89
+ if (parameter == null) return;
90
+ if (typeof parameter === "object") {
91
+ if (Array.isArray(parameter)) {
92
+ (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
93
+ }
94
+ else {
95
+ Object.keys(parameter).forEach(currentKey =>
96
+ setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
97
+ );
98
+ }
99
+ }
100
+ else {
101
+ if (urlSearchParams.has(key)) {
102
+ urlSearchParams.append(key, parameter);
103
+ }
104
+ else {
105
+ urlSearchParams.set(key, parameter);
106
+ }
107
+ }
108
+ }
109
+
110
+ /**
111
+ *
112
+ * @export
113
+ */
114
+ export const setSearchParams = function (url: URL, ...objects: any[]) {
115
+ const searchParams = new URLSearchParams(url.search);
116
+ setFlattenedQueryParams(searchParams, objects);
117
+ url.search = searchParams.toString();
118
+ }
119
+
120
+ /**
121
+ *
122
+ * @export
123
+ */
124
+ export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
125
+ const nonString = typeof value !== 'string';
126
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
127
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
128
+ : nonString;
129
+ return needsSerialization
130
+ ? JSON.stringify(value !== undefined ? value : {})
131
+ : (value || "");
132
+ }
133
+
134
+ /**
135
+ *
136
+ * @export
137
+ */
138
+ export const toPathString = function (url: URL) {
139
+ return url.pathname + url.search + url.hash
140
+ }
141
+
142
+ /**
143
+ *
144
+ * @export
145
+ */
146
+ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
147
+ return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
148
+ axiosRetry(axios, configuration.retriesConfig)
149
+ const headers = {
150
+ ...{'User-Agent':'OpenAPI-Generator/1.7.1/ts'},
151
+ ...axiosArgs.axiosOptions.headers,
152
+ ...{'X-SailPoint-SDK':'typescript-1.7.1'}
153
+ }
154
+
155
+ if(!configuration.experimental && ("X-SailPoint-Experimental" in headers)) {
156
+ throw new Error("You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.")
157
+ } else if(configuration.experimental == true && ("X-SailPoint-Experimental" in headers)) {
158
+ console.log("Warning: You are using Experimental APIs")
159
+ }
160
+
161
+ axiosArgs.axiosOptions.headers = headers
162
+ const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (configuration?.basePath + "/v2026" || basePath) + axiosArgs.url};
163
+ return axios.request<T, R>(axiosRequestArgs);
164
+ };
165
+ }
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud v2026 API
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: v2026
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
+
15
+
16
+ export interface ConfigurationParameters {
17
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
+ username?: string;
19
+ password?: string;
20
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
+ basePath?: string;
22
+ serverIndex?: number;
23
+ baseOptions?: any;
24
+ formDataCtor?: new () => any;
25
+ }
26
+
27
+ export class Configuration {
28
+ /**
29
+ * parameter for apiKey security
30
+ * @param name security name
31
+ * @memberof Configuration
32
+ */
33
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
34
+ /**
35
+ * parameter for basic security
36
+ *
37
+ * @type {string}
38
+ * @memberof Configuration
39
+ */
40
+ username?: string;
41
+ /**
42
+ * parameter for basic security
43
+ *
44
+ * @type {string}
45
+ * @memberof Configuration
46
+ */
47
+ password?: string;
48
+ /**
49
+ * parameter for oauth2 security
50
+ * @param name security name
51
+ * @param scopes oauth2 scope
52
+ * @memberof Configuration
53
+ */
54
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
55
+ /**
56
+ * override base path
57
+ *
58
+ * @type {string}
59
+ * @memberof Configuration
60
+ */
61
+ basePath?: string;
62
+ /**
63
+ * override server index
64
+ *
65
+ * @type {number}
66
+ * @memberof Configuration
67
+ */
68
+ serverIndex?: number;
69
+ /**
70
+ * base options for axios calls
71
+ *
72
+ * @type {any}
73
+ * @memberof Configuration
74
+ */
75
+ baseOptions?: any;
76
+ /**
77
+ * The FormData constructor that will be used to create multipart form data
78
+ * requests. You can inject this here so that execution environments that
79
+ * do not support the FormData class can still run the generated client.
80
+ *
81
+ * @type {new () => FormData}
82
+ */
83
+ formDataCtor?: new () => any;
84
+
85
+ constructor(param: ConfigurationParameters = {}) {
86
+ this.apiKey = param.apiKey;
87
+ this.username = param.username;
88
+ this.password = param.password;
89
+ this.accessToken = param.accessToken;
90
+ this.basePath = param.basePath;
91
+ this.serverIndex = param.serverIndex;
92
+ this.baseOptions = param.baseOptions;
93
+ this.formDataCtor = param.formDataCtor;
94
+ }
95
+
96
+ /**
97
+ * Check if the given MIME is a JSON MIME.
98
+ * JSON MIME examples:
99
+ * application/json
100
+ * application/json; charset=UTF8
101
+ * APPLICATION/JSON
102
+ * application/vnd.company+json
103
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
104
+ * @return True if the given MIME is JSON, false otherwise.
105
+ */
106
+ public isJsonMime(mime: string): boolean {
107
+ const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
108
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
109
+ }
110
+ }
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/v2026/index.ts ADDED
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Identity Security Cloud v2026 API
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: v2026
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
+
15
+
16
+ export * from "./api";
17
+ export * from "../configuration";
18
+
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "sailpoint-sdk",
3
+ "version": "1.7.1",
4
+ "description": "OpenAPI client for sailpoint-sdk",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
9
+ },
10
+ "keywords": [
11
+ "axios",
12
+ "typescript",
13
+ "openapi-client",
14
+ "openapi-generator",
15
+ "sailpoint-sdk"
16
+ ],
17
+ "license": "Unlicense",
18
+ "main": "./dist/index.js",
19
+ "typings": "./dist/index.d.ts",
20
+ "scripts": {
21
+ "build": "tsc",
22
+ "prepare": "npm run build"
23
+ },
24
+ "dependencies": {
25
+ "axios": "^1.6.1"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "12.11.5 - 12.20.42",
29
+ "typescript": "^4.0 || ^5.0"
30
+ },
31
+ "publishConfig": {
32
+ "registry": "sailpoint.com"
33
+ }
34
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES5",
5
+ "module": "commonjs",
6
+ "noImplicitAny": true,
7
+ "outDir": "dist",
8
+ "rootDir": ".",
9
+ "lib": [
10
+ "es6",
11
+ "dom"
12
+ ],
13
+ "typeRoots": [
14
+ "node_modules/@types"
15
+ ]
16
+ },
17
+ "exclude": [
18
+ "dist",
19
+ "node_modules"
20
+ ]
21
+ }
package/v3/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## sailpoint-sdk@1.6.10
1
+ ## sailpoint-sdk@1.7.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install sailpoint-sdk@1.6.10 --save
39
+ npm install sailpoint-sdk@1.7.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_