@sailpoint/api-client 2.2.48 → 2.2.50
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/machine_identities_lifecycle_actions/api.js +5 -5
- package/dist/esm/machine_identities_lifecycle_actions/base.js +1 -1
- package/dist/esm/machine_identities_lifecycle_actions/common.js +1 -1
- package/dist/esm/machine_identities_lifecycle_actions/configuration.js +1 -1
- package/dist/esm/machine_identities_lifecycle_actions/index.js +1 -1
- package/dist/esm/nerm/common.js +2 -2
- package/dist/esm/nermv2025/common.js +2 -2
- package/dist/esm/workflows/api.js +33 -7
- 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/machine_identities_lifecycle_actions/api.d.ts +5 -5
- package/dist/machine_identities_lifecycle_actions/api.js +5 -5
- package/dist/machine_identities_lifecycle_actions/api.js.map +1 -1
- package/dist/machine_identities_lifecycle_actions/base.d.ts +1 -1
- package/dist/machine_identities_lifecycle_actions/base.js +1 -1
- package/dist/machine_identities_lifecycle_actions/base.js.map +1 -1
- package/dist/machine_identities_lifecycle_actions/common.d.ts +1 -1
- package/dist/machine_identities_lifecycle_actions/common.js +1 -1
- package/dist/machine_identities_lifecycle_actions/common.js.map +1 -1
- package/dist/machine_identities_lifecycle_actions/configuration.d.ts +1 -1
- package/dist/machine_identities_lifecycle_actions/configuration.js +1 -1
- package/dist/machine_identities_lifecycle_actions/configuration.js.map +1 -1
- package/dist/machine_identities_lifecycle_actions/index.d.ts +1 -1
- package/dist/machine_identities_lifecycle_actions/index.js +1 -1
- package/dist/machine_identities_lifecycle_actions/index.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/dist/workflows/api.d.ts +62 -4
- package/dist/workflows/api.js +34 -8
- package/dist/workflows/api.js.map +1 -1
- package/package.json +3 -2
- package/sailpoint-scopes.json +16392 -0
package/dist/esm/generic/api.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).
|
|
@@ -76,21 +76,38 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
76
76
|
import globalAxios from 'axios';
|
|
77
77
|
// Some imports not used depending on template conditions
|
|
78
78
|
// @ts-ignore
|
|
79
|
-
import { DUMMY_BASE_URL, assertParamExists,
|
|
79
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
80
80
|
// @ts-ignore
|
|
81
81
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Encode the `path` parameter of a generic request.
|
|
84
|
+
*
|
|
85
|
+
* `path` is everything after the tenant base URL, including the API version,
|
|
86
|
+
* for example `accounts/v1` or `sources/v1/2c918085/schemas`. Leading and
|
|
87
|
+
* trailing slashes are optional. Each segment is URL-encoded on its own, so the
|
|
88
|
+
* slashes between segments are kept. Anything after a `?` is kept as a query
|
|
89
|
+
* string, for example `accounts/v1?detailLevel=SLIM`.
|
|
90
|
+
*/
|
|
91
|
+
function encodeGenericPath(value) {
|
|
92
|
+
var raw = String(value);
|
|
93
|
+
var queryStart = raw.indexOf('?');
|
|
94
|
+
var pathPart = queryStart === -1 ? raw : raw.slice(0, queryStart);
|
|
95
|
+
var query = queryStart === -1 ? '' : raw.slice(queryStart);
|
|
96
|
+
var segments = pathPart.split('/').filter(function (segment) { return segment.length > 0; });
|
|
97
|
+
return segments.map(function (segment) { return encodeURIComponent(segment); }).join('/') + query;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* GenericApi - axios parameter creator
|
|
84
101
|
* @export
|
|
85
102
|
*/
|
|
86
|
-
export var
|
|
103
|
+
export var GenericApiAxiosParamCreator = function (configuration) {
|
|
87
104
|
var _this = this;
|
|
88
105
|
return {
|
|
89
106
|
/**
|
|
90
|
-
*
|
|
107
|
+
* Sends a DELETE request to any versioned API path.
|
|
91
108
|
* @summary Generic DELETE request
|
|
92
|
-
* @param {string} path
|
|
93
|
-
* @param {string} [xSailPointExperimental]
|
|
109
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
110
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
94
111
|
* @param {*} [axiosOptions] Override http request option.
|
|
95
112
|
* @throws {RequiredError}
|
|
96
113
|
*/
|
|
@@ -99,131 +116,99 @@ export var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
99
116
|
return __awaiter(_this, void 0, void 0, function () {
|
|
100
117
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
101
118
|
return __generator(this, function (_a) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// authentication userAuth required
|
|
119
|
-
// oauth required
|
|
120
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
121
|
-
// authentication userAuth required
|
|
122
|
-
// oauth required
|
|
123
|
-
];
|
|
124
|
-
case 1:
|
|
125
|
-
// authentication userAuth required
|
|
126
|
-
// oauth required
|
|
127
|
-
_a.sent();
|
|
128
|
-
// authentication userAuth required
|
|
129
|
-
// oauth required
|
|
130
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
131
|
-
case 2:
|
|
132
|
-
// authentication userAuth required
|
|
133
|
-
// oauth required
|
|
134
|
-
_a.sent();
|
|
135
|
-
if (xSailPointExperimental != null) {
|
|
136
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
137
|
-
}
|
|
138
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
141
|
-
return [2 /*return*/, {
|
|
142
|
-
url: toPathString(localVarUrlObj),
|
|
143
|
-
axiosOptions: localVarRequestOptions,
|
|
144
|
-
}];
|
|
119
|
+
// verify required parameter 'path' is not null or undefined
|
|
120
|
+
assertParamExists('genericDelete', 'path', path);
|
|
121
|
+
if (xSailPointExperimental === undefined) {
|
|
122
|
+
xSailPointExperimental = undefined;
|
|
123
|
+
}
|
|
124
|
+
localVarPath = "/{path}"
|
|
125
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
126
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
127
|
+
if (configuration) {
|
|
128
|
+
baseOptions = configuration.baseOptions;
|
|
129
|
+
}
|
|
130
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
|
|
131
|
+
localVarHeaderParameter = {};
|
|
132
|
+
localVarQueryParameter = {};
|
|
133
|
+
if (xSailPointExperimental != null) {
|
|
134
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
145
135
|
}
|
|
136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
139
|
+
return [2 /*return*/, {
|
|
140
|
+
url: toPathString(localVarUrlObj),
|
|
141
|
+
axiosOptions: localVarRequestOptions,
|
|
142
|
+
}];
|
|
146
143
|
});
|
|
147
144
|
});
|
|
148
145
|
},
|
|
149
146
|
/**
|
|
150
|
-
*
|
|
147
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
151
148
|
* @summary Generic GET request
|
|
152
|
-
* @param {string} path
|
|
153
|
-
* @param {number} [limit] Max number of results to return. See [
|
|
154
|
-
* @param {
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {string} [
|
|
149
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
150
|
+
* @param {number} [limit] Max number of results to return. See [Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters) for more information.
|
|
151
|
+
* @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
|
|
152
|
+
* @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored.
|
|
153
|
+
* @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#filtering-results).
|
|
154
|
+
* @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#sorting-results).
|
|
155
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
157
156
|
* @param {*} [axiosOptions] Override http request option.
|
|
158
157
|
* @throws {RequiredError}
|
|
159
158
|
*/
|
|
160
|
-
genericGet: function (path, limit, count,
|
|
159
|
+
genericGet: function (path, limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions) {
|
|
161
160
|
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
162
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
163
162
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
164
163
|
return __generator(this, function (_a) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
_a.sent();
|
|
191
|
-
// authentication userAuth required
|
|
192
|
-
// oauth required
|
|
193
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
194
|
-
case 2:
|
|
195
|
-
// authentication userAuth required
|
|
196
|
-
// oauth required
|
|
197
|
-
_a.sent();
|
|
198
|
-
if (limit !== undefined) {
|
|
199
|
-
localVarQueryParameter['limit'] = limit;
|
|
200
|
-
}
|
|
201
|
-
if (count !== undefined) {
|
|
202
|
-
localVarQueryParameter['count'] = count;
|
|
203
|
-
}
|
|
204
|
-
if (offset !== undefined) {
|
|
205
|
-
localVarQueryParameter['offset'] = offset;
|
|
206
|
-
}
|
|
207
|
-
if (xSailPointExperimental != null) {
|
|
208
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
209
|
-
}
|
|
210
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
211
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
213
|
-
return [2 /*return*/, {
|
|
214
|
-
url: toPathString(localVarUrlObj),
|
|
215
|
-
axiosOptions: localVarRequestOptions,
|
|
216
|
-
}];
|
|
164
|
+
// verify required parameter 'path' is not null or undefined
|
|
165
|
+
assertParamExists('genericGet', 'path', path);
|
|
166
|
+
if (xSailPointExperimental === undefined) {
|
|
167
|
+
xSailPointExperimental = undefined;
|
|
168
|
+
}
|
|
169
|
+
localVarPath = "/{path}"
|
|
170
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
171
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
172
|
+
if (configuration) {
|
|
173
|
+
baseOptions = configuration.baseOptions;
|
|
174
|
+
}
|
|
175
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
|
176
|
+
localVarHeaderParameter = {};
|
|
177
|
+
localVarQueryParameter = {};
|
|
178
|
+
if (limit !== undefined) {
|
|
179
|
+
localVarQueryParameter['limit'] = limit;
|
|
180
|
+
}
|
|
181
|
+
if (offset !== undefined) {
|
|
182
|
+
localVarQueryParameter['offset'] = offset;
|
|
183
|
+
}
|
|
184
|
+
if (count !== undefined) {
|
|
185
|
+
localVarQueryParameter['count'] = count;
|
|
186
|
+
}
|
|
187
|
+
if (filters !== undefined) {
|
|
188
|
+
localVarQueryParameter['filters'] = filters;
|
|
217
189
|
}
|
|
190
|
+
if (sorters !== undefined) {
|
|
191
|
+
localVarQueryParameter['sorters'] = sorters;
|
|
192
|
+
}
|
|
193
|
+
if (xSailPointExperimental != null) {
|
|
194
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
195
|
+
}
|
|
196
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
197
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
199
|
+
return [2 /*return*/, {
|
|
200
|
+
url: toPathString(localVarUrlObj),
|
|
201
|
+
axiosOptions: localVarRequestOptions,
|
|
202
|
+
}];
|
|
218
203
|
});
|
|
219
204
|
});
|
|
220
205
|
},
|
|
221
206
|
/**
|
|
222
|
-
*
|
|
207
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
223
208
|
* @summary Generic PATCH request
|
|
224
|
-
* @param {string} path
|
|
225
|
-
* @param {string} [xSailPointExperimental]
|
|
226
|
-
* @param {
|
|
209
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
210
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
211
|
+
* @param {any} [requestBody]
|
|
227
212
|
* @param {*} [axiosOptions] Override http request option.
|
|
228
213
|
* @throws {RequiredError}
|
|
229
214
|
*/
|
|
@@ -232,61 +217,41 @@ export var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
232
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
233
218
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
234
219
|
return __generator(this, function (_a) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
if (xSailPointExperimental === undefined) {
|
|
240
|
-
xSailPointExperimental = 'true';
|
|
241
|
-
}
|
|
242
|
-
localVarPath = "/{path}"
|
|
243
|
-
.replace("{".concat("path", "}"), encodeURIComponent(String(path)));
|
|
244
|
-
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
245
|
-
if (configuration) {
|
|
246
|
-
baseOptions = configuration.baseOptions;
|
|
247
|
-
}
|
|
248
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
|
|
249
|
-
localVarHeaderParameter = {};
|
|
250
|
-
localVarQueryParameter = {};
|
|
251
|
-
// authentication userAuth required
|
|
252
|
-
// oauth required
|
|
253
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
254
|
-
// authentication userAuth required
|
|
255
|
-
// oauth required
|
|
256
|
-
];
|
|
257
|
-
case 1:
|
|
258
|
-
// authentication userAuth required
|
|
259
|
-
// oauth required
|
|
260
|
-
_a.sent();
|
|
261
|
-
// authentication userAuth required
|
|
262
|
-
// oauth required
|
|
263
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
264
|
-
case 2:
|
|
265
|
-
// authentication userAuth required
|
|
266
|
-
// oauth required
|
|
267
|
-
_a.sent();
|
|
268
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
269
|
-
if (xSailPointExperimental != null) {
|
|
270
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
271
|
-
}
|
|
272
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
273
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
275
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
276
|
-
return [2 /*return*/, {
|
|
277
|
-
url: toPathString(localVarUrlObj),
|
|
278
|
-
axiosOptions: localVarRequestOptions,
|
|
279
|
-
}];
|
|
220
|
+
// verify required parameter 'path' is not null or undefined
|
|
221
|
+
assertParamExists('genericPatch', 'path', path);
|
|
222
|
+
if (xSailPointExperimental === undefined) {
|
|
223
|
+
xSailPointExperimental = undefined;
|
|
280
224
|
}
|
|
225
|
+
localVarPath = "/{path}"
|
|
226
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
227
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
228
|
+
if (configuration) {
|
|
229
|
+
baseOptions = configuration.baseOptions;
|
|
230
|
+
}
|
|
231
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
|
|
232
|
+
localVarHeaderParameter = {};
|
|
233
|
+
localVarQueryParameter = {};
|
|
234
|
+
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
235
|
+
if (xSailPointExperimental != null) {
|
|
236
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
237
|
+
}
|
|
238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
239
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
241
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
242
|
+
return [2 /*return*/, {
|
|
243
|
+
url: toPathString(localVarUrlObj),
|
|
244
|
+
axiosOptions: localVarRequestOptions,
|
|
245
|
+
}];
|
|
281
246
|
});
|
|
282
247
|
});
|
|
283
248
|
},
|
|
284
249
|
/**
|
|
285
|
-
*
|
|
250
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
286
251
|
* @summary Generic POST request
|
|
287
|
-
* @param {string} path
|
|
288
|
-
* @param {string} [xSailPointExperimental]
|
|
289
|
-
* @param {
|
|
252
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
253
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
254
|
+
* @param {any} [requestBody]
|
|
290
255
|
* @param {*} [axiosOptions] Override http request option.
|
|
291
256
|
* @throws {RequiredError}
|
|
292
257
|
*/
|
|
@@ -295,61 +260,41 @@ export var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
295
260
|
return __awaiter(_this, void 0, void 0, function () {
|
|
296
261
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
297
262
|
return __generator(this, function (_a) {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
if (xSailPointExperimental === undefined) {
|
|
303
|
-
xSailPointExperimental = 'true';
|
|
304
|
-
}
|
|
305
|
-
localVarPath = "/{path}"
|
|
306
|
-
.replace("{".concat("path", "}"), encodeURIComponent(String(path)));
|
|
307
|
-
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
308
|
-
if (configuration) {
|
|
309
|
-
baseOptions = configuration.baseOptions;
|
|
310
|
-
}
|
|
311
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
|
312
|
-
localVarHeaderParameter = {};
|
|
313
|
-
localVarQueryParameter = {};
|
|
314
|
-
// authentication userAuth required
|
|
315
|
-
// oauth required
|
|
316
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
317
|
-
// authentication userAuth required
|
|
318
|
-
// oauth required
|
|
319
|
-
];
|
|
320
|
-
case 1:
|
|
321
|
-
// authentication userAuth required
|
|
322
|
-
// oauth required
|
|
323
|
-
_a.sent();
|
|
324
|
-
// authentication userAuth required
|
|
325
|
-
// oauth required
|
|
326
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
327
|
-
case 2:
|
|
328
|
-
// authentication userAuth required
|
|
329
|
-
// oauth required
|
|
330
|
-
_a.sent();
|
|
331
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
332
|
-
if (xSailPointExperimental != null) {
|
|
333
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
334
|
-
}
|
|
335
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
338
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
339
|
-
return [2 /*return*/, {
|
|
340
|
-
url: toPathString(localVarUrlObj),
|
|
341
|
-
axiosOptions: localVarRequestOptions,
|
|
342
|
-
}];
|
|
263
|
+
// verify required parameter 'path' is not null or undefined
|
|
264
|
+
assertParamExists('genericPost', 'path', path);
|
|
265
|
+
if (xSailPointExperimental === undefined) {
|
|
266
|
+
xSailPointExperimental = undefined;
|
|
343
267
|
}
|
|
268
|
+
localVarPath = "/{path}"
|
|
269
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
270
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
|
+
if (configuration) {
|
|
272
|
+
baseOptions = configuration.baseOptions;
|
|
273
|
+
}
|
|
274
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
|
275
|
+
localVarHeaderParameter = {};
|
|
276
|
+
localVarQueryParameter = {};
|
|
277
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
278
|
+
if (xSailPointExperimental != null) {
|
|
279
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
280
|
+
}
|
|
281
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
282
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
283
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
284
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
285
|
+
return [2 /*return*/, {
|
|
286
|
+
url: toPathString(localVarUrlObj),
|
|
287
|
+
axiosOptions: localVarRequestOptions,
|
|
288
|
+
}];
|
|
344
289
|
});
|
|
345
290
|
});
|
|
346
291
|
},
|
|
347
292
|
/**
|
|
348
|
-
*
|
|
293
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
349
294
|
* @summary Generic PUT request
|
|
350
|
-
* @param {string} path
|
|
351
|
-
* @param {string} [xSailPointExperimental]
|
|
352
|
-
* @param {
|
|
295
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
296
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
297
|
+
* @param {any} [requestBody]
|
|
353
298
|
* @param {*} [axiosOptions] Override http request option.
|
|
354
299
|
* @throws {RequiredError}
|
|
355
300
|
*/
|
|
@@ -358,69 +303,49 @@ export var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
358
303
|
return __awaiter(_this, void 0, void 0, function () {
|
|
359
304
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
360
305
|
return __generator(this, function (_a) {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
// oauth required
|
|
379
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
380
|
-
// authentication userAuth required
|
|
381
|
-
// oauth required
|
|
382
|
-
];
|
|
383
|
-
case 1:
|
|
384
|
-
// authentication userAuth required
|
|
385
|
-
// oauth required
|
|
386
|
-
_a.sent();
|
|
387
|
-
// authentication userAuth required
|
|
388
|
-
// oauth required
|
|
389
|
-
return [4 /*yield*/, setOAuthToObject(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
390
|
-
case 2:
|
|
391
|
-
// authentication userAuth required
|
|
392
|
-
// oauth required
|
|
393
|
-
_a.sent();
|
|
394
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
395
|
-
if (xSailPointExperimental != null) {
|
|
396
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
397
|
-
}
|
|
398
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
399
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
400
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
401
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
402
|
-
return [2 /*return*/, {
|
|
403
|
-
url: toPathString(localVarUrlObj),
|
|
404
|
-
axiosOptions: localVarRequestOptions,
|
|
405
|
-
}];
|
|
306
|
+
// verify required parameter 'path' is not null or undefined
|
|
307
|
+
assertParamExists('genericPut', 'path', path);
|
|
308
|
+
if (xSailPointExperimental === undefined) {
|
|
309
|
+
xSailPointExperimental = undefined;
|
|
310
|
+
}
|
|
311
|
+
localVarPath = "/{path}"
|
|
312
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
313
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
314
|
+
if (configuration) {
|
|
315
|
+
baseOptions = configuration.baseOptions;
|
|
316
|
+
}
|
|
317
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
|
|
318
|
+
localVarHeaderParameter = {};
|
|
319
|
+
localVarQueryParameter = {};
|
|
320
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
321
|
+
if (xSailPointExperimental != null) {
|
|
322
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
406
323
|
}
|
|
324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
325
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
327
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
328
|
+
return [2 /*return*/, {
|
|
329
|
+
url: toPathString(localVarUrlObj),
|
|
330
|
+
axiosOptions: localVarRequestOptions,
|
|
331
|
+
}];
|
|
407
332
|
});
|
|
408
333
|
});
|
|
409
334
|
},
|
|
410
335
|
};
|
|
411
336
|
};
|
|
412
337
|
/**
|
|
413
|
-
*
|
|
338
|
+
* GenericApi - functional programming interface
|
|
414
339
|
* @export
|
|
415
340
|
*/
|
|
416
|
-
export var
|
|
417
|
-
var localVarAxiosParamCreator =
|
|
341
|
+
export var GenericApiFp = function (configuration) {
|
|
342
|
+
var localVarAxiosParamCreator = GenericApiAxiosParamCreator(configuration);
|
|
418
343
|
return {
|
|
419
344
|
/**
|
|
420
|
-
*
|
|
345
|
+
* Sends a DELETE request to any versioned API path.
|
|
421
346
|
* @summary Generic DELETE request
|
|
422
|
-
* @param {string} path
|
|
423
|
-
* @param {string} [xSailPointExperimental]
|
|
347
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
348
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
424
349
|
* @param {*} [axiosOptions] Override http request option.
|
|
425
350
|
* @throws {RequiredError}
|
|
426
351
|
*/
|
|
@@ -434,45 +359,47 @@ export var DefaultApiFp = function (configuration) {
|
|
|
434
359
|
case 1:
|
|
435
360
|
localVarAxiosArgs = _d.sent();
|
|
436
361
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
437
|
-
localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
362
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['GenericApi.genericDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
438
363
|
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
439
364
|
}
|
|
440
365
|
});
|
|
441
366
|
});
|
|
442
367
|
},
|
|
443
368
|
/**
|
|
444
|
-
*
|
|
369
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
445
370
|
* @summary Generic GET request
|
|
446
|
-
* @param {string} path
|
|
447
|
-
* @param {number} [limit] Max number of results to return. See [
|
|
448
|
-
* @param {
|
|
449
|
-
* @param {
|
|
450
|
-
* @param {string} [
|
|
371
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
372
|
+
* @param {number} [limit] Max number of results to return. See [Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters) for more information.
|
|
373
|
+
* @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
|
|
374
|
+
* @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored.
|
|
375
|
+
* @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#filtering-results).
|
|
376
|
+
* @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#sorting-results).
|
|
377
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
451
378
|
* @param {*} [axiosOptions] Override http request option.
|
|
452
379
|
* @throws {RequiredError}
|
|
453
380
|
*/
|
|
454
|
-
genericGet: function (path, limit, count,
|
|
381
|
+
genericGet: function (path, limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions) {
|
|
455
382
|
var _a, _b, _c;
|
|
456
383
|
return __awaiter(this, void 0, void 0, function () {
|
|
457
384
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
458
385
|
return __generator(this, function (_d) {
|
|
459
386
|
switch (_d.label) {
|
|
460
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.genericGet(path, limit, count,
|
|
387
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.genericGet(path, limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions)];
|
|
461
388
|
case 1:
|
|
462
389
|
localVarAxiosArgs = _d.sent();
|
|
463
390
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
464
|
-
localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
391
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['GenericApi.genericGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
465
392
|
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
466
393
|
}
|
|
467
394
|
});
|
|
468
395
|
});
|
|
469
396
|
},
|
|
470
397
|
/**
|
|
471
|
-
*
|
|
398
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
472
399
|
* @summary Generic PATCH request
|
|
473
|
-
* @param {string} path
|
|
474
|
-
* @param {string} [xSailPointExperimental]
|
|
475
|
-
* @param {
|
|
400
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
401
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
402
|
+
* @param {any} [requestBody]
|
|
476
403
|
* @param {*} [axiosOptions] Override http request option.
|
|
477
404
|
* @throws {RequiredError}
|
|
478
405
|
*/
|
|
@@ -486,18 +413,18 @@ export var DefaultApiFp = function (configuration) {
|
|
|
486
413
|
case 1:
|
|
487
414
|
localVarAxiosArgs = _d.sent();
|
|
488
415
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
489
|
-
localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
416
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['GenericApi.genericPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
490
417
|
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
491
418
|
}
|
|
492
419
|
});
|
|
493
420
|
});
|
|
494
421
|
},
|
|
495
422
|
/**
|
|
496
|
-
*
|
|
423
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
497
424
|
* @summary Generic POST request
|
|
498
|
-
* @param {string} path
|
|
499
|
-
* @param {string} [xSailPointExperimental]
|
|
500
|
-
* @param {
|
|
425
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
426
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
427
|
+
* @param {any} [requestBody]
|
|
501
428
|
* @param {*} [axiosOptions] Override http request option.
|
|
502
429
|
* @throws {RequiredError}
|
|
503
430
|
*/
|
|
@@ -511,18 +438,18 @@ export var DefaultApiFp = function (configuration) {
|
|
|
511
438
|
case 1:
|
|
512
439
|
localVarAxiosArgs = _d.sent();
|
|
513
440
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
514
|
-
localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
441
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['GenericApi.genericPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
515
442
|
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
516
443
|
}
|
|
517
444
|
});
|
|
518
445
|
});
|
|
519
446
|
},
|
|
520
447
|
/**
|
|
521
|
-
*
|
|
448
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
522
449
|
* @summary Generic PUT request
|
|
523
|
-
* @param {string} path
|
|
524
|
-
* @param {string} [xSailPointExperimental]
|
|
525
|
-
* @param {
|
|
450
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
451
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
452
|
+
* @param {any} [requestBody]
|
|
526
453
|
* @param {*} [axiosOptions] Override http request option.
|
|
527
454
|
* @throws {RequiredError}
|
|
528
455
|
*/
|
|
@@ -536,7 +463,7 @@ export var DefaultApiFp = function (configuration) {
|
|
|
536
463
|
case 1:
|
|
537
464
|
localVarAxiosArgs = _d.sent();
|
|
538
465
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
539
|
-
localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
466
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['GenericApi.genericPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
540
467
|
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
541
468
|
}
|
|
542
469
|
});
|
|
@@ -545,16 +472,16 @@ export var DefaultApiFp = function (configuration) {
|
|
|
545
472
|
};
|
|
546
473
|
};
|
|
547
474
|
/**
|
|
548
|
-
*
|
|
475
|
+
* GenericApi - factory interface
|
|
549
476
|
* @export
|
|
550
477
|
*/
|
|
551
|
-
export var
|
|
552
|
-
var localVarFp =
|
|
478
|
+
export var GenericApiFactory = function (configuration, basePath, axios) {
|
|
479
|
+
var localVarFp = GenericApiFp(configuration);
|
|
553
480
|
return {
|
|
554
481
|
/**
|
|
555
|
-
*
|
|
482
|
+
* Sends a DELETE request to any versioned API path.
|
|
556
483
|
* @summary Generic DELETE request
|
|
557
|
-
* @param {
|
|
484
|
+
* @param {GenericApiGenericDeleteRequest} requestParameters Request parameters.
|
|
558
485
|
* @param {*} [axiosOptions] Override http request option.
|
|
559
486
|
* @throws {RequiredError}
|
|
560
487
|
*/
|
|
@@ -562,19 +489,19 @@ export var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
562
489
|
return localVarFp.genericDelete(requestParameters.path, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
563
490
|
},
|
|
564
491
|
/**
|
|
565
|
-
*
|
|
492
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
566
493
|
* @summary Generic GET request
|
|
567
|
-
* @param {
|
|
494
|
+
* @param {GenericApiGenericGetRequest} requestParameters Request parameters.
|
|
568
495
|
* @param {*} [axiosOptions] Override http request option.
|
|
569
496
|
* @throws {RequiredError}
|
|
570
497
|
*/
|
|
571
498
|
genericGet: function (requestParameters, axiosOptions) {
|
|
572
|
-
return localVarFp.genericGet(requestParameters.path, requestParameters.limit, requestParameters.count, requestParameters.
|
|
499
|
+
return localVarFp.genericGet(requestParameters.path, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
573
500
|
},
|
|
574
501
|
/**
|
|
575
|
-
*
|
|
502
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
576
503
|
* @summary Generic PATCH request
|
|
577
|
-
* @param {
|
|
504
|
+
* @param {GenericApiGenericPatchRequest} requestParameters Request parameters.
|
|
578
505
|
* @param {*} [axiosOptions] Override http request option.
|
|
579
506
|
* @throws {RequiredError}
|
|
580
507
|
*/
|
|
@@ -582,9 +509,9 @@ export var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
582
509
|
return localVarFp.genericPatch(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
583
510
|
},
|
|
584
511
|
/**
|
|
585
|
-
*
|
|
512
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
586
513
|
* @summary Generic POST request
|
|
587
|
-
* @param {
|
|
514
|
+
* @param {GenericApiGenericPostRequest} requestParameters Request parameters.
|
|
588
515
|
* @param {*} [axiosOptions] Override http request option.
|
|
589
516
|
* @throws {RequiredError}
|
|
590
517
|
*/
|
|
@@ -592,9 +519,9 @@ export var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
592
519
|
return localVarFp.genericPost(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
593
520
|
},
|
|
594
521
|
/**
|
|
595
|
-
*
|
|
522
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
596
523
|
* @summary Generic PUT request
|
|
597
|
-
* @param {
|
|
524
|
+
* @param {GenericApiGenericPutRequest} requestParameters Request parameters.
|
|
598
525
|
* @param {*} [axiosOptions] Override http request option.
|
|
599
526
|
* @throws {RequiredError}
|
|
600
527
|
*/
|
|
@@ -604,76 +531,76 @@ export var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
604
531
|
};
|
|
605
532
|
};
|
|
606
533
|
/**
|
|
607
|
-
*
|
|
534
|
+
* GenericApi - object-oriented interface
|
|
608
535
|
* @export
|
|
609
|
-
* @class
|
|
536
|
+
* @class GenericApi
|
|
610
537
|
* @extends {BaseAPI}
|
|
611
538
|
*/
|
|
612
|
-
var
|
|
613
|
-
__extends(
|
|
614
|
-
function
|
|
539
|
+
var GenericApi = /** @class */ (function (_super) {
|
|
540
|
+
__extends(GenericApi, _super);
|
|
541
|
+
function GenericApi() {
|
|
615
542
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
616
543
|
}
|
|
617
544
|
/**
|
|
618
|
-
*
|
|
545
|
+
* Sends a DELETE request to any versioned API path.
|
|
619
546
|
* @summary Generic DELETE request
|
|
620
|
-
* @param {
|
|
547
|
+
* @param {GenericApiGenericDeleteRequest} requestParameters Request parameters.
|
|
621
548
|
* @param {*} [axiosOptions] Override http request option.
|
|
622
549
|
* @throws {RequiredError}
|
|
623
|
-
* @memberof
|
|
550
|
+
* @memberof GenericApi
|
|
624
551
|
*/
|
|
625
|
-
|
|
552
|
+
GenericApi.prototype.genericDelete = function (requestParameters, axiosOptions) {
|
|
626
553
|
var _this = this;
|
|
627
|
-
return
|
|
554
|
+
return GenericApiFp(this.configuration).genericDelete(requestParameters.path, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
628
555
|
};
|
|
629
556
|
/**
|
|
630
|
-
*
|
|
557
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
631
558
|
* @summary Generic GET request
|
|
632
|
-
* @param {
|
|
559
|
+
* @param {GenericApiGenericGetRequest} requestParameters Request parameters.
|
|
633
560
|
* @param {*} [axiosOptions] Override http request option.
|
|
634
561
|
* @throws {RequiredError}
|
|
635
|
-
* @memberof
|
|
562
|
+
* @memberof GenericApi
|
|
636
563
|
*/
|
|
637
|
-
|
|
564
|
+
GenericApi.prototype.genericGet = function (requestParameters, axiosOptions) {
|
|
638
565
|
var _this = this;
|
|
639
|
-
return
|
|
566
|
+
return GenericApiFp(this.configuration).genericGet(requestParameters.path, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
640
567
|
};
|
|
641
568
|
/**
|
|
642
|
-
*
|
|
569
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
643
570
|
* @summary Generic PATCH request
|
|
644
|
-
* @param {
|
|
571
|
+
* @param {GenericApiGenericPatchRequest} requestParameters Request parameters.
|
|
645
572
|
* @param {*} [axiosOptions] Override http request option.
|
|
646
573
|
* @throws {RequiredError}
|
|
647
|
-
* @memberof
|
|
574
|
+
* @memberof GenericApi
|
|
648
575
|
*/
|
|
649
|
-
|
|
576
|
+
GenericApi.prototype.genericPatch = function (requestParameters, axiosOptions) {
|
|
650
577
|
var _this = this;
|
|
651
|
-
return
|
|
578
|
+
return GenericApiFp(this.configuration).genericPatch(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
652
579
|
};
|
|
653
580
|
/**
|
|
654
|
-
*
|
|
581
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
655
582
|
* @summary Generic POST request
|
|
656
|
-
* @param {
|
|
583
|
+
* @param {GenericApiGenericPostRequest} requestParameters Request parameters.
|
|
657
584
|
* @param {*} [axiosOptions] Override http request option.
|
|
658
585
|
* @throws {RequiredError}
|
|
659
|
-
* @memberof
|
|
586
|
+
* @memberof GenericApi
|
|
660
587
|
*/
|
|
661
|
-
|
|
588
|
+
GenericApi.prototype.genericPost = function (requestParameters, axiosOptions) {
|
|
662
589
|
var _this = this;
|
|
663
|
-
return
|
|
590
|
+
return GenericApiFp(this.configuration).genericPost(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
664
591
|
};
|
|
665
592
|
/**
|
|
666
|
-
*
|
|
593
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
667
594
|
* @summary Generic PUT request
|
|
668
|
-
* @param {
|
|
595
|
+
* @param {GenericApiGenericPutRequest} requestParameters Request parameters.
|
|
669
596
|
* @param {*} [axiosOptions] Override http request option.
|
|
670
597
|
* @throws {RequiredError}
|
|
671
|
-
* @memberof
|
|
598
|
+
* @memberof GenericApi
|
|
672
599
|
*/
|
|
673
|
-
|
|
600
|
+
GenericApi.prototype.genericPut = function (requestParameters, axiosOptions) {
|
|
674
601
|
var _this = this;
|
|
675
|
-
return
|
|
602
|
+
return GenericApiFp(this.configuration).genericPut(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
676
603
|
};
|
|
677
|
-
return
|
|
604
|
+
return GenericApi;
|
|
678
605
|
}(BaseAPI));
|
|
679
|
-
export {
|
|
606
|
+
export { GenericApi };
|