sailpoint-api-client 1.6.7 → 1.6.9

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 (68) hide show
  1. package/beta/README.md +2 -2
  2. package/beta/api.ts +87 -577
  3. package/beta/common.ts +2 -2
  4. package/beta/package.json +1 -1
  5. package/dist/beta/api.d.ts +81 -452
  6. package/dist/beta/api.js +30 -300
  7. package/dist/beta/api.js.map +1 -1
  8. package/dist/beta/common.js +1 -1
  9. package/dist/generic/api.d.ts +386 -0
  10. package/dist/generic/api.js +689 -0
  11. package/dist/generic/api.js.map +1 -0
  12. package/dist/generic/base.d.ts +66 -0
  13. package/dist/generic/base.js +89 -0
  14. package/dist/generic/base.js.map +1 -0
  15. package/dist/generic/common.d.ts +65 -0
  16. package/dist/generic/common.js +260 -0
  17. package/dist/generic/common.js.map +1 -0
  18. package/dist/generic/configuration.d.ts +91 -0
  19. package/dist/generic/configuration.js +46 -0
  20. package/dist/generic/configuration.js.map +1 -0
  21. package/dist/generic/index.d.ts +13 -0
  22. package/dist/generic/index.js +32 -0
  23. package/dist/generic/index.js.map +1 -0
  24. package/dist/index.d.ts +5 -4
  25. package/dist/index.js +1 -0
  26. package/dist/index.js.map +1 -1
  27. package/dist/paginator.d.ts +3 -1
  28. package/dist/paginator.js +146 -0
  29. package/dist/paginator.js.map +1 -1
  30. package/dist/v2024/api.d.ts +1838 -575
  31. package/dist/v2024/api.js +1894 -593
  32. package/dist/v2024/api.js.map +1 -1
  33. package/dist/v2024/common.js +1 -1
  34. package/dist/v2025/api.d.ts +4368 -679
  35. package/dist/v2025/api.js +3866 -904
  36. package/dist/v2025/api.js.map +1 -1
  37. package/dist/v2025/common.js +1 -1
  38. package/dist/v3/api.d.ts +45 -83
  39. package/dist/v3/api.js +31 -30
  40. package/dist/v3/api.js.map +1 -1
  41. package/dist/v3/common.js +1 -1
  42. package/generic/.openapi-generator/FILES +11 -0
  43. package/generic/.openapi-generator/VERSION +1 -0
  44. package/generic/.openapi-generator-ignore +23 -0
  45. package/generic/README.md +46 -0
  46. package/generic/api.ts +681 -0
  47. package/generic/base.ts +86 -0
  48. package/generic/common.ts +159 -0
  49. package/generic/configuration.ts +110 -0
  50. package/generic/git_push.sh +57 -0
  51. package/generic/index.ts +18 -0
  52. package/generic/package.json +34 -0
  53. package/generic/tsconfig.json +21 -0
  54. package/index.ts +9 -7
  55. package/package.json +1 -1
  56. package/paginator.ts +137 -11
  57. package/v2024/README.md +2 -2
  58. package/v2024/api.ts +3049 -1208
  59. package/v2024/common.ts +2 -2
  60. package/v2024/package.json +1 -1
  61. package/v2025/README.md +2 -2
  62. package/v2025/api.ts +7717 -2573
  63. package/v2025/common.ts +2 -2
  64. package/v2025/package.json +1 -1
  65. package/v3/README.md +2 -2
  66. package/v3/api.ts +61 -97
  67. package/v3/common.ts +2 -2
  68. package/v3/package.json +1 -1
@@ -0,0 +1,86 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Generic Identity Security Cloud V2025 API
5
+ * Generic API specification for the Identity Security Cloud platform
6
+ *
7
+ * The version of the OpenAPI document: v2025
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/v2025".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 || 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,159 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Generic Identity Security Cloud V2025 API
5
+ * Generic API specification for the Identity Security Cloud platform
6
+ *
7
+ * The version of the OpenAPI document: v2025
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 { AxiosInstance, AxiosResponse } from 'axios';
17
+ import axiosRetry from "axios-retry";
18
+ import type { Configuration } from "../configuration";
19
+ import type { RequestArgs } from "./base";
20
+ import { RequiredError } from "./base";
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.6.7/ts'},
151
+ ...axiosArgs.axiosOptions.headers,
152
+ ...{'X-SailPoint-SDK':'typescript-1.6.7'}
153
+ }
154
+
155
+ axiosArgs.axiosOptions.headers = headers
156
+ const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (configuration?.basePath || basePath) + axiosArgs.url};
157
+ return axios.request<T, R>(axiosRequestArgs);
158
+ };
159
+ }
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Generic Identity Security Cloud V2025 API
5
+ * Generic API specification for the Identity Security Cloud platform
6
+ *
7
+ * The version of the OpenAPI document: v2025
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'
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Generic Identity Security Cloud V2025 API
5
+ * Generic API specification for the Identity Security Cloud platform
6
+ *
7
+ * The version of the OpenAPI document: v2025
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.6.7",
4
+ "description": "OpenAPI client for sailpoint-sdk",
5
+ "author": "SailPoint Developer Relations",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/sailpoint-oss/typescript-sdk.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/index.ts CHANGED
@@ -15,20 +15,22 @@
15
15
 
16
16
 
17
17
  export * from "./beta/api";
18
- export {Configuration as ConfigurationBeta, ConfigurationParameters as ConfigurationParametersBeta} from "./beta/configuration";
18
+ export { Configuration as ConfigurationBeta, ConfigurationParameters as ConfigurationParametersBeta } from "./beta/configuration";
19
19
 
20
20
  export * from "./v3/api";
21
- export {Configuration as ConfigurationV3, ConfigurationParameters as ConfigurationParametersV3} from "./v3/configuration";
21
+ export { ConfigurationParameters as ConfigurationParametersV3, Configuration as ConfigurationV3 } from "./v3/configuration";
22
22
 
23
23
  export * from "./v2024/api";
24
- export {Configuration as ConfigurationV2024, ConfigurationParameters as ConfigurationParametersV2024} from "./v2024/configuration";
24
+ export { ConfigurationParameters as ConfigurationParametersV2024, Configuration as ConfigurationV2024 } from "./v2024/configuration";
25
25
 
26
26
  export * from "./v2025/api";
27
- export {Configuration as ConfigurationV2025, ConfigurationParameters as ConfigurationParametersV2025} from "./v2025/configuration";
27
+ export { ConfigurationParameters as ConfigurationParametersV2025, Configuration as ConfigurationV2025 } from "./v2025/configuration";
28
28
 
29
- export {Configuration, ConfigurationParameters} from "./configuration";
29
+ export * from "./generic/api";
30
+
31
+ export { Configuration, ConfigurationParameters } from "./configuration";
30
32
 
31
33
  export * from "./paginator";
34
+ export { axiosRetry };
32
35
 
33
- import * as axiosRetry from "axios-retry"
34
- export {axiosRetry}
36
+ import * as axiosRetry from "axios-retry";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sailpoint-api-client",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "description": "Official library for using the SailPoint API",
5
5
  "author": "SailPoint DevOps",
6
6
  "repository": {