@sailpoint/api-client 2.2.6 → 2.2.7
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/esm/nerm/common.js +2 -2
- package/dist/esm/nermv2025/common.js +2 -2
- package/dist/esm/personal_access_tokens/api.js +79 -0
- 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/personal_access_tokens/api.d.ts +65 -0
- package/dist/personal_access_tokens/api.js +79 -0
- package/dist/personal_access_tokens/api.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/nerm/common.js
CHANGED
|
@@ -246,8 +246,8 @@ export var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH,
|
|
|
246
246
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
247
247
|
// not allow, which blocks the request outright.
|
|
248
248
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
249
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
250
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
249
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.7';
|
|
250
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.7";
|
|
251
251
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
252
252
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
253
253
|
}
|
|
@@ -246,8 +246,8 @@ export var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH,
|
|
|
246
246
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
247
247
|
// not allow, which blocks the request outright.
|
|
248
248
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
249
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
250
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
249
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.7';
|
|
250
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.7";
|
|
251
251
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
252
252
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
253
253
|
}
|
|
@@ -248,6 +248,40 @@ export var PersonalAccessTokensApiAxiosParamCreator = function (configuration) {
|
|
|
248
248
|
});
|
|
249
249
|
});
|
|
250
250
|
},
|
|
251
|
+
/**
|
|
252
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
253
|
+
* @summary Bulk update personal access tokens
|
|
254
|
+
* @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.
|
|
255
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
updateBulkPersonalAccessTokensV1: function (bulkUpdatePersonalAccessTokensRequest, axiosOptions) {
|
|
259
|
+
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
260
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
262
|
+
return __generator(this, function (_a) {
|
|
263
|
+
// verify required parameter 'bulkUpdatePersonalAccessTokensRequest' is not null or undefined
|
|
264
|
+
assertParamExists('updateBulkPersonalAccessTokensV1', 'bulkUpdatePersonalAccessTokensRequest', bulkUpdatePersonalAccessTokensRequest);
|
|
265
|
+
localVarPath = "/personal-access-tokens/v1/bulk-update";
|
|
266
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
267
|
+
if (configuration) {
|
|
268
|
+
baseOptions = configuration.baseOptions;
|
|
269
|
+
}
|
|
270
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
|
|
271
|
+
localVarHeaderParameter = {};
|
|
272
|
+
localVarQueryParameter = {};
|
|
273
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
274
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
277
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkUpdatePersonalAccessTokensRequest, localVarRequestOptions, configuration);
|
|
278
|
+
return [2 /*return*/, {
|
|
279
|
+
url: toPathString(localVarUrlObj),
|
|
280
|
+
axiosOptions: localVarRequestOptions,
|
|
281
|
+
}];
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
},
|
|
251
285
|
};
|
|
252
286
|
};
|
|
253
287
|
/**
|
|
@@ -351,6 +385,29 @@ export var PersonalAccessTokensApiFp = function (configuration) {
|
|
|
351
385
|
});
|
|
352
386
|
});
|
|
353
387
|
},
|
|
388
|
+
/**
|
|
389
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
390
|
+
* @summary Bulk update personal access tokens
|
|
391
|
+
* @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.
|
|
392
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
updateBulkPersonalAccessTokensV1: function (bulkUpdatePersonalAccessTokensRequest, axiosOptions) {
|
|
396
|
+
var _a, _b, _c;
|
|
397
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
398
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
399
|
+
return __generator(this, function (_d) {
|
|
400
|
+
switch (_d.label) {
|
|
401
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBulkPersonalAccessTokensV1(bulkUpdatePersonalAccessTokensRequest, axiosOptions)];
|
|
402
|
+
case 1:
|
|
403
|
+
localVarAxiosArgs = _d.sent();
|
|
404
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
405
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['PersonalAccessTokensApi.updateBulkPersonalAccessTokensV1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
406
|
+
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
},
|
|
354
411
|
};
|
|
355
412
|
};
|
|
356
413
|
/**
|
|
@@ -401,6 +458,16 @@ export var PersonalAccessTokensApiFactory = function (configuration, basePath, a
|
|
|
401
458
|
patchPersonalAccessTokenV1: function (requestParameters, axiosOptions) {
|
|
402
459
|
return localVarFp.patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
403
460
|
},
|
|
461
|
+
/**
|
|
462
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
463
|
+
* @summary Bulk update personal access tokens
|
|
464
|
+
* @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.
|
|
465
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
updateBulkPersonalAccessTokensV1: function (requestParameters, axiosOptions) {
|
|
469
|
+
return localVarFp.updateBulkPersonalAccessTokensV1(requestParameters.bulkUpdatePersonalAccessTokensRequest, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
470
|
+
},
|
|
404
471
|
};
|
|
405
472
|
};
|
|
406
473
|
/**
|
|
@@ -463,6 +530,18 @@ var PersonalAccessTokensApi = /** @class */ (function (_super) {
|
|
|
463
530
|
var _this = this;
|
|
464
531
|
return PersonalAccessTokensApiFp(this.configuration).patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
465
532
|
};
|
|
533
|
+
/**
|
|
534
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
535
|
+
* @summary Bulk update personal access tokens
|
|
536
|
+
* @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.
|
|
537
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
* @memberof PersonalAccessTokensApi
|
|
540
|
+
*/
|
|
541
|
+
PersonalAccessTokensApi.prototype.updateBulkPersonalAccessTokensV1 = function (requestParameters, axiosOptions) {
|
|
542
|
+
var _this = this;
|
|
543
|
+
return PersonalAccessTokensApiFp(this.configuration).updateBulkPersonalAccessTokensV1(requestParameters.bulkUpdatePersonalAccessTokensRequest, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
544
|
+
};
|
|
466
545
|
return PersonalAccessTokensApi;
|
|
467
546
|
}(BaseAPI));
|
|
468
547
|
export { PersonalAccessTokensApi };
|
package/dist/nerm/common.js
CHANGED
|
@@ -257,8 +257,8 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
257
257
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
258
258
|
// not allow, which blocks the request outright.
|
|
259
259
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
260
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
261
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
260
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.7';
|
|
261
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.7";
|
|
262
262
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
263
263
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
264
264
|
}
|
package/dist/nerm/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nerm/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,+BAAuC;AAEvC;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,IAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,IAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;;;;;yBACzG,CAAA,aAAa,IAAI,aAAa,CAAC,MAAM,CAAA,EAArC,wBAAqC;yBACT,CAAA,OAAO,aAAa,CAAC,MAAM,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AAC;wBAE9C,gBAAgB,yBAAO,SAAS,CAAC,YAAY,KAAE,GAAG,EAAE,CAAC,QAAQ,KAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,CAAA,CAAC,GAAG,SAAS,CAAC,GAAG,EAAE,OAAO,SAAA,GAAC,CAAC;wBAC9H,sBAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC,KAAK,CAAC,UAAC,KAAU;;gCAC1D,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,MAAK,IAAI,EAAE;oCAC9B,IAAM,KAAK,GAAQ,IAAI,KAAK,CAAC,MAAA,KAAK,CAAC,OAAO,mCAAI,oBAAoB,CAAC,CAAC;oCACpE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;oCACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;oCAC1B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API\n * The NERM API accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.6';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.6`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nerm/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,+BAAuC;AAEvC;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,IAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,IAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;;;;;yBACzG,CAAA,aAAa,IAAI,aAAa,CAAC,MAAM,CAAA,EAArC,wBAAqC;yBACT,CAAA,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU,CAAA,EAA1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BAAO,SAAS,CAAC,YAAY,KAAE,GAAG,EAAE,CAAC,QAAQ,KAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,CAAA,CAAC,GAAG,SAAS,CAAC,GAAG,EAAE,OAAO,SAAA,GAAC,CAAC;wBAC9H,sBAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC,KAAK,CAAC,UAAC,KAAU;;gCAC1D,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,MAAK,IAAI,EAAE;oCAC9B,IAAM,KAAK,GAAQ,IAAI,KAAK,CAAC,MAAA,KAAK,CAAC,OAAO,mCAAI,oBAAoB,CAAC,CAAC;oCACpE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;oCACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;oCAC1B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API\n * The NERM API accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.7';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.7`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|
package/dist/nermv2025/common.js
CHANGED
|
@@ -257,8 +257,8 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
257
257
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
258
258
|
// not allow, which blocks the request outright.
|
|
259
259
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
260
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
261
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
260
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.7';
|
|
261
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.7";
|
|
262
262
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
263
263
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
264
264
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nermv2025/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;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Q,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API v2025\n * The NERM API v2025 accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.6';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.6`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nermv2025/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;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AChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API v2025\n * The NERM API v2025 accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.7';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.7`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|
|
@@ -20,6 +20,25 @@ import { BaseAPI } from './base';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ArrayInner {
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Request body for bulk updating personal access tokens. A single JSON Patch document is applied to every personal access token referenced in `ids`.
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BulkUpdatePersonalAccessTokensRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface BulkUpdatePersonalAccessTokensRequest {
|
|
29
|
+
/**
|
|
30
|
+
* The IDs of the personal access tokens to update. All IDs must reference personal access tokens that exist in the current tenant. Duplicate and blank values are not allowed.
|
|
31
|
+
* @type {Set<string>}
|
|
32
|
+
* @memberof BulkUpdatePersonalAccessTokensRequest
|
|
33
|
+
*/
|
|
34
|
+
'ids': Set<string>;
|
|
35
|
+
/**
|
|
36
|
+
* A single [JSON Patch](https://tools.ietf.org/html/rfc6902) document that is applied identically to every personal access token referenced in `ids`. Only the following paths are allowed for bulk updates: * `/expirationDate` - Set (`replace`) or clear (`remove`) the token\'s expiration. * `/userAwareTokenNeverExpires` - Explicit acknowledgment required when clearing `expirationDate`. Any other path (for example `/name` or `/scope`) results in a `400` response.
|
|
37
|
+
* @type {Array<JsonPatchOperation>}
|
|
38
|
+
* @memberof BulkUpdatePersonalAccessTokensRequest
|
|
39
|
+
*/
|
|
40
|
+
'patch': Array<JsonPatchOperation>;
|
|
41
|
+
}
|
|
23
42
|
/**
|
|
24
43
|
* Object for specifying the name of a personal access token to create
|
|
25
44
|
* @export
|
|
@@ -379,6 +398,14 @@ export declare const PersonalAccessTokensApiAxiosParamCreator: (configuration?:
|
|
|
379
398
|
* @throws {RequiredError}
|
|
380
399
|
*/
|
|
381
400
|
patchPersonalAccessTokenV1: (id: string, jsonPatchOperation: Array<JsonPatchOperation>, axiosOptions?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
401
|
+
/**
|
|
402
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
403
|
+
* @summary Bulk update personal access tokens
|
|
404
|
+
* @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.
|
|
405
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
updateBulkPersonalAccessTokensV1: (bulkUpdatePersonalAccessTokensRequest: BulkUpdatePersonalAccessTokensRequest, axiosOptions?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
382
409
|
};
|
|
383
410
|
/**
|
|
384
411
|
* PersonalAccessTokensApi - functional programming interface
|
|
@@ -419,6 +446,14 @@ export declare const PersonalAccessTokensApiFp: (configuration?: Configuration)
|
|
|
419
446
|
* @throws {RequiredError}
|
|
420
447
|
*/
|
|
421
448
|
patchPersonalAccessTokenV1(id: string, jsonPatchOperation: Array<JsonPatchOperation>, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPersonalAccessTokenResponse>>;
|
|
449
|
+
/**
|
|
450
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
451
|
+
* @summary Bulk update personal access tokens
|
|
452
|
+
* @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.
|
|
453
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
updateBulkPersonalAccessTokensV1(bulkUpdatePersonalAccessTokensRequest: BulkUpdatePersonalAccessTokensRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetPersonalAccessTokenResponse>>>;
|
|
422
457
|
};
|
|
423
458
|
/**
|
|
424
459
|
* PersonalAccessTokensApi - factory interface
|
|
@@ -457,6 +492,14 @@ export declare const PersonalAccessTokensApiFactory: (configuration?: Configurat
|
|
|
457
492
|
* @throws {RequiredError}
|
|
458
493
|
*/
|
|
459
494
|
patchPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiPatchPersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<GetPersonalAccessTokenResponse>;
|
|
495
|
+
/**
|
|
496
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
497
|
+
* @summary Bulk update personal access tokens
|
|
498
|
+
* @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.
|
|
499
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
updateBulkPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<Array<GetPersonalAccessTokenResponse>>;
|
|
460
503
|
};
|
|
461
504
|
/**
|
|
462
505
|
* Request parameters for createPersonalAccessTokenV1 operation in PersonalAccessTokensApi.
|
|
@@ -522,6 +565,19 @@ export interface PersonalAccessTokensApiPatchPersonalAccessTokenV1Request {
|
|
|
522
565
|
*/
|
|
523
566
|
readonly jsonPatchOperation: Array<JsonPatchOperation>;
|
|
524
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* Request parameters for updateBulkPersonalAccessTokensV1 operation in PersonalAccessTokensApi.
|
|
570
|
+
* @export
|
|
571
|
+
* @interface PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request
|
|
572
|
+
*/
|
|
573
|
+
export interface PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request {
|
|
574
|
+
/**
|
|
575
|
+
* The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.
|
|
576
|
+
* @type {BulkUpdatePersonalAccessTokensRequest}
|
|
577
|
+
* @memberof PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1
|
|
578
|
+
*/
|
|
579
|
+
readonly bulkUpdatePersonalAccessTokensRequest: BulkUpdatePersonalAccessTokensRequest;
|
|
580
|
+
}
|
|
525
581
|
/**
|
|
526
582
|
* PersonalAccessTokensApi - object-oriented interface
|
|
527
583
|
* @export
|
|
@@ -565,4 +621,13 @@ export declare class PersonalAccessTokensApi extends BaseAPI {
|
|
|
565
621
|
* @memberof PersonalAccessTokensApi
|
|
566
622
|
*/
|
|
567
623
|
patchPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiPatchPersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccessTokenResponse, any>>;
|
|
624
|
+
/**
|
|
625
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
626
|
+
* @summary Bulk update personal access tokens
|
|
627
|
+
* @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.
|
|
628
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
* @memberof PersonalAccessTokensApi
|
|
631
|
+
*/
|
|
632
|
+
updateBulkPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request, axiosOptions?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccessTokenResponse[], any>>;
|
|
568
633
|
}
|
|
@@ -254,6 +254,40 @@ var PersonalAccessTokensApiAxiosParamCreator = function (configuration) {
|
|
|
254
254
|
});
|
|
255
255
|
});
|
|
256
256
|
},
|
|
257
|
+
/**
|
|
258
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
259
|
+
* @summary Bulk update personal access tokens
|
|
260
|
+
* @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.
|
|
261
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
updateBulkPersonalAccessTokensV1: function (bulkUpdatePersonalAccessTokensRequest, axiosOptions) {
|
|
265
|
+
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
266
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
268
|
+
return __generator(this, function (_a) {
|
|
269
|
+
// verify required parameter 'bulkUpdatePersonalAccessTokensRequest' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('updateBulkPersonalAccessTokensV1', 'bulkUpdatePersonalAccessTokensRequest', bulkUpdatePersonalAccessTokensRequest);
|
|
271
|
+
localVarPath = "/personal-access-tokens/v1/bulk-update";
|
|
272
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
273
|
+
if (configuration) {
|
|
274
|
+
baseOptions = configuration.baseOptions;
|
|
275
|
+
}
|
|
276
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
|
|
277
|
+
localVarHeaderParameter = {};
|
|
278
|
+
localVarQueryParameter = {};
|
|
279
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
280
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
281
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
282
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
283
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkUpdatePersonalAccessTokensRequest, localVarRequestOptions, configuration);
|
|
284
|
+
return [2 /*return*/, {
|
|
285
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
286
|
+
axiosOptions: localVarRequestOptions,
|
|
287
|
+
}];
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
},
|
|
257
291
|
};
|
|
258
292
|
};
|
|
259
293
|
exports.PersonalAccessTokensApiAxiosParamCreator = PersonalAccessTokensApiAxiosParamCreator;
|
|
@@ -358,6 +392,29 @@ var PersonalAccessTokensApiFp = function (configuration) {
|
|
|
358
392
|
});
|
|
359
393
|
});
|
|
360
394
|
},
|
|
395
|
+
/**
|
|
396
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
397
|
+
* @summary Bulk update personal access tokens
|
|
398
|
+
* @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.
|
|
399
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
updateBulkPersonalAccessTokensV1: function (bulkUpdatePersonalAccessTokensRequest, axiosOptions) {
|
|
403
|
+
var _a, _b, _c;
|
|
404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
405
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
406
|
+
return __generator(this, function (_d) {
|
|
407
|
+
switch (_d.label) {
|
|
408
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBulkPersonalAccessTokensV1(bulkUpdatePersonalAccessTokensRequest, axiosOptions)];
|
|
409
|
+
case 1:
|
|
410
|
+
localVarAxiosArgs = _d.sent();
|
|
411
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
412
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PersonalAccessTokensApi.updateBulkPersonalAccessTokensV1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
413
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
},
|
|
361
418
|
};
|
|
362
419
|
};
|
|
363
420
|
exports.PersonalAccessTokensApiFp = PersonalAccessTokensApiFp;
|
|
@@ -409,6 +466,16 @@ var PersonalAccessTokensApiFactory = function (configuration, basePath, axios) {
|
|
|
409
466
|
patchPersonalAccessTokenV1: function (requestParameters, axiosOptions) {
|
|
410
467
|
return localVarFp.patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
411
468
|
},
|
|
469
|
+
/**
|
|
470
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
471
|
+
* @summary Bulk update personal access tokens
|
|
472
|
+
* @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.
|
|
473
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
updateBulkPersonalAccessTokensV1: function (requestParameters, axiosOptions) {
|
|
477
|
+
return localVarFp.updateBulkPersonalAccessTokensV1(requestParameters.bulkUpdatePersonalAccessTokensRequest, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
478
|
+
},
|
|
412
479
|
};
|
|
413
480
|
};
|
|
414
481
|
exports.PersonalAccessTokensApiFactory = PersonalAccessTokensApiFactory;
|
|
@@ -472,6 +539,18 @@ var PersonalAccessTokensApi = /** @class */ (function (_super) {
|
|
|
472
539
|
var _this = this;
|
|
473
540
|
return (0, exports.PersonalAccessTokensApiFp)(this.configuration).patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
474
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.
|
|
544
|
+
* @summary Bulk update personal access tokens
|
|
545
|
+
* @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.
|
|
546
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
* @memberof PersonalAccessTokensApi
|
|
549
|
+
*/
|
|
550
|
+
PersonalAccessTokensApi.prototype.updateBulkPersonalAccessTokensV1 = function (requestParameters, axiosOptions) {
|
|
551
|
+
var _this = this;
|
|
552
|
+
return (0, exports.PersonalAccessTokensApiFp)(this.configuration).updateBulkPersonalAccessTokensV1(requestParameters.bulkUpdatePersonalAccessTokensRequest, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
553
|
+
};
|
|
475
554
|
return PersonalAccessTokensApi;
|
|
476
555
|
}(base_1.BaseAPI));
|
|
477
556
|
exports.PersonalAccessTokensApi = PersonalAccessTokensApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../personal_access_tokens/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,gDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,mCAA4N;AAE5N,aAAa;AACb,+BAAmG;AA4PtF,QAAA,wBAAwB,GAAG;IACpC,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACN,CAAC;AAqCX;;;;GAIG;AAEU,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACZ,CAAC;AA+BE,QAAA,gBAAgB,GAAG;IAC5B,QAAQ,EAAE,UAAU;CACd,CAAC;AAKX;;;GAGG;AACI,IAAM,wCAAwC,GAAG,UAAU,aAA6B;IAAvC,iBAyJvD;IAxJG,OAAO;QACH;;;;;;WAMG;QACH,2BAA2B,EAAE,U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C;QAArJ,iBAEC;QADG,OAAO,IAAA,iCAAyB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAC;IAC/K,CAAC;IAED;;;;;;;OAOG;IACI,4DAA0B,GAAjC,UAAkC,iBAAgF,EAAE,YAAoC;QAAxJ,iBAEC;QAFiC,kCAAA,EAAA,sBAAgF;QAC9G,OAAO,IAAA,iCAAyB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,0BAA0B,CAAC,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAC;IAC9M,CAAC;IAED;;;;;;;OAOG;IACI,4DAA0B,GAAjC,UAAkC,iBAA2E,EAAE,YAAoC;QAAnJ,iBAEC;QADG,OAAO,IAAA,iCAAyB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,0BAA0B,CAAC,iBAAiB,CAAC,EAAE,EAAE,iBAAiB,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAC;IACpN,CAAC;IACL,8BAAC;AAAD,CAAC,AAhDD,CAA6C,cAAO,GAgDnD;AAhDY,0DAAuB","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Identity Security Cloud API - Personal Access Tokens\n * 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.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';\n\n/**\n * \n * @export\n * @interface ArrayInner\n */\nexport interface ArrayInner {\n}\n/**\n * Object for specifying the name of a personal access token to create\n * @export\n * @interface CreatePersonalAccessTokenRequest\n */\nexport interface CreatePersonalAccessTokenRequest {\n /**\n * The name of the personal access token (PAT) to be created. Cannot be the same as another PAT owned by the user for whom this PAT is being created.\n * @type {string}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'name': string;\n /**\n * Scopes of the personal access token. If no scope is specified, the token will be created with the default scope \\\"sp:scopes:all\\\". This means the personal access token will have all the rights of the owner who created it.\n * @type {Array<string>}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'scope'?: Array<string> | null;\n /**\n * Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.\n * @type {number}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'accessTokenValiditySeconds'?: number | null;\n /**\n * Date and time, down to the millisecond, when this personal access token will expire. **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. **Valid Values (dependent on `userAwareTokenNeverExpires`):** * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (after the current date/time). There is no upper limit on how far in the future the expiration date can be set. `expirationDate` cannot be `null` in this case. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted.\n * @type {string}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'expirationDate'?: string | null;\n /**\n * Indicates that the user creating this Personal Access Token is aware of and acknowledges the security implications of creating a token that will never expire. When set to `true`, this flag confirms that the user understands the security risks associated with non-expiring tokens. **Security Awareness:** Setting this field to `true` serves as an explicit acknowledgment that the user creating the token understands: * Tokens that never expire pose a greater security risk if compromised * Non-expiring tokens should be used only when necessary and with appropriate security measures * Regular rotation and monitoring of non-expiring tokens is recommended **Required Validation:** If `expirationDate` is `null` or empty (not included in the request body), `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Behavior:** * When set to `true`: Indicates that the user acknowledges they are creating a token that will never expire. When `expirationDate` is `null` or empty, the token will never expire. * When set to `false` or not specified (and `expirationDate` is provided): The token will follow normal expiration rules based on the `expirationDate` field and `accessTokenValiditySeconds` setting.\n * @type {boolean}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'userAwareTokenNeverExpires'?: boolean | null;\n}\n/**\n * \n * @export\n * @interface CreatePersonalAccessTokenResponse\n */\nexport interface CreatePersonalAccessTokenResponse {\n /**\n * The ID of the personal access token (to be used as the username for Basic Auth).\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'id': string;\n /**\n * The secret of the personal access token (to be used as the password for Basic Auth).\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'secret': string;\n /**\n * Scopes of the personal access token.\n * @type {Array<string>}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'scope': Array<string> | null;\n /**\n * The name of the personal access token. Cannot be the same as other personal access tokens owned by a user.\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'name': string;\n /**\n * \n * @type {PatOwner}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'owner': PatOwner;\n /**\n * The date and time, down to the millisecond, when this personal access token was created.\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'created': string;\n /**\n * Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.\n * @type {number}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'accessTokenValiditySeconds': number;\n /**\n * Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date.\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'expirationDate': string;\n}\n/**\n * \n * @export\n * @interface ErrorMessageDto\n */\nexport interface ErrorMessageDto {\n /**\n * The locale for the message text, a BCP 47 language tag.\n * @type {string}\n * @memberof ErrorMessageDto\n */\n 'locale'?: string | null;\n /**\n * \n * @type {LocaleOrigin}\n * @memberof ErrorMessageDto\n */\n 'localeOrigin'?: LocaleOrigin | null;\n /**\n * Actual text of the error message in the indicated locale.\n * @type {string}\n * @memberof ErrorMessageDto\n */\n 'text'?: string;\n}\n\n\n/**\n * \n * @export\n * @interface ErrorResponseDto\n */\nexport interface ErrorResponseDto {\n /**\n * Fine-grained error code providing more detail of the error.\n * @type {string}\n * @memberof ErrorResponseDto\n */\n 'detailCode'?: string;\n /**\n * Unique tracking id for the error.\n * @type {string}\n * @memberof ErrorResponseDto\n */\n 'trackingId'?: string;\n /**\n * Generic localized reason for error\n * @type {Array<ErrorMessageDto>}\n * @memberof ErrorResponseDto\n */\n 'messages'?: Array<ErrorMessageDto>;\n /**\n * Plain-text descriptive reasons to provide additional detail to the text provided in the messages field\n * @type {Array<ErrorMessageDto>}\n * @memberof ErrorResponseDto\n */\n 'causes'?: Array<ErrorMessageDto>;\n}\n/**\n * \n * @export\n * @interface GetPersonalAccessTokenResponse\n */\nexport interface GetPersonalAccessTokenResponse {\n /**\n * The ID of the personal access token (to be used as the username for Basic Auth).\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'id': string;\n /**\n * The name of the personal access token. Cannot be the same as other personal access tokens owned by a user.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'name': string;\n /**\n * Scopes of the personal access token.\n * @type {Array<string>}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'scope': Array<string> | null;\n /**\n * \n * @type {PatOwner}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'owner': PatOwner;\n /**\n * The date and time, down to the millisecond, when this personal access token was created.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'created': string;\n /**\n * The date and time, down to the millisecond, when this personal access token was last used to generate an access token. This timestamp does not get updated on every PAT usage, but only once a day. This property can be useful for identifying which PATs are no longer actively used and can be removed.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'lastUsed'?: string | null;\n /**\n * If true, this token is managed by the SailPoint platform, and is not visible in the user interface. For example, Workflows will create managed personal access tokens for users who create workflows.\n * @type {boolean}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'managed'?: boolean;\n /**\n * Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.\n * @type {number}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'accessTokenValiditySeconds'?: number;\n /**\n * Date and time, down to the millisecond, when this personal access token will expire. **Important:** When `expirationDate` is `null` or empty, the token will never expire (and `userAwareTokenNeverExpires` will be `true`). When `expirationDate` is provided, this value must be a future date. There is no upper limit on how far in the future the expiration date can be set.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'expirationDate'?: string | null;\n /**\n * Indicates that the user who created or updated this Personal Access Token is aware of and acknowledges the security implications of creating a token that will never expire. When `true`, this flag confirms that the user understood the security risks associated with non-expiring tokens at the time of creation or update. **Security Awareness:** This field serves as a record that the user acknowledged: * Tokens that never expire pose a greater security risk if compromised * Non-expiring tokens should be used only when necessary and with appropriate security measures * Regular rotation and monitoring of non-expiring tokens is recommended **Behavior:** * When `true`: Indicates that the user acknowledged they were creating a token that will never expire. When `expirationDate` is `null`, the token will never expire. * When `false`: The token follows normal expiration rules based on the `expirationDate` field and `accessTokenValiditySeconds` setting.\n * @type {boolean}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'userAwareTokenNeverExpires'?: boolean;\n}\n/**\n * A JSONPatch Operation as defined by [RFC 6902 - JSON Patch](https://tools.ietf.org/html/rfc6902)\n * @export\n * @interface JsonPatchOperation\n */\nexport interface JsonPatchOperation {\n /**\n * The operation to be performed\n * @type {string}\n * @memberof JsonPatchOperation\n */\n 'op': JsonPatchOperationOpEnum;\n /**\n * A string JSON Pointer representing the target path to an element to be affected by the operation\n * @type {string}\n * @memberof JsonPatchOperation\n */\n 'path': string;\n /**\n * \n * @type {JsonPatchOperationValue}\n * @memberof JsonPatchOperation\n */\n 'value'?: JsonPatchOperationValue;\n}\n\nexport const JsonPatchOperationOpEnum = {\n Add: 'add',\n Remove: 'remove',\n Replace: 'replace',\n Move: 'move',\n Copy: 'copy',\n Test: 'test'\n} as const;\n\nexport type JsonPatchOperationOpEnum = typeof JsonPatchOperationOpEnum[keyof typeof JsonPatchOperationOpEnum];\n\n/**\n * @type JsonPatchOperationValue\n * The value to be used for the operation, required for \\\"add\\\" and \\\"replace\\\" operations\n * @export\n */\nexport type JsonPatchOperationValue = Array<ArrayInner> | boolean | number | object | string;\n\n/**\n * \n * @export\n * @interface ListPersonalAccessTokensV1401Response\n */\nexport interface ListPersonalAccessTokensV1401Response {\n /**\n * A message describing the error\n * @type {any}\n * @memberof ListPersonalAccessTokensV1401Response\n */\n 'error'?: any;\n}\n/**\n * \n * @export\n * @interface ListPersonalAccessTokensV1429Response\n */\nexport interface ListPersonalAccessTokensV1429Response {\n /**\n * A message describing the error\n * @type {any}\n * @memberof ListPersonalAccessTokensV1429Response\n */\n 'message'?: any;\n}\n/**\n * An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice.\n * @export\n * @enum {string}\n */\n\nexport const LocaleOrigin = {\n Default: 'DEFAULT',\n Request: 'REQUEST'\n} as const;\n\nexport type LocaleOrigin = typeof LocaleOrigin[keyof typeof LocaleOrigin];\n\n\n/**\n * Personal access token owner\\'s identity.\n * @export\n * @interface PatOwner\n */\nexport interface PatOwner {\n /**\n * Personal access token owner\\'s DTO type.\n * @type {string}\n * @memberof PatOwner\n */\n 'type'?: PatOwnerTypeEnum;\n /**\n * Personal access token owner\\'s identity ID.\n * @type {string}\n * @memberof PatOwner\n */\n 'id'?: string;\n /**\n * Personal access token owner\\'s human-readable display name.\n * @type {string}\n * @memberof PatOwner\n */\n 'name'?: string;\n}\n\nexport const PatOwnerTypeEnum = {\n Identity: 'IDENTITY'\n} as const;\n\nexport type PatOwnerTypeEnum = typeof PatOwnerTypeEnum[keyof typeof PatOwnerTypeEnum];\n\n\n/**\n * PersonalAccessTokensApi - axios parameter creator\n * @export\n */\nexport const PersonalAccessTokensApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {CreatePersonalAccessTokenRequest} createPersonalAccessTokenRequest Configuration for creating a personal access token, including name, scope, expiration settings, and user acknowledgment of never-expiring tokens. **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n createPersonalAccessTokenV1: async (createPersonalAccessTokenRequest: CreatePersonalAccessTokenRequest, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'createPersonalAccessTokenRequest' is not null or undefined\n assertParamExists('createPersonalAccessTokenV1', 'createPersonalAccessTokenRequest', createPersonalAccessTokenRequest)\n const localVarPath = `/personal-access-tokens/v1`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createPersonalAccessTokenRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {string} id The personal access token id\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n deletePersonalAccessTokenV1: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deletePersonalAccessTokenV1', 'id', id)\n const localVarPath = `/personal-access-tokens/v1/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {string} [ownerId] The identity ID of the owner whose personal access tokens should be listed. If \\"me\\", the caller should have the following right: \\'idn:my-personal-access-tokens:read\\' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: \\'idn:all-personal-access-tokens:read\\'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: \\'idn:managed-personal-access-tokens:read\\'\n * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n listPersonalAccessTokensV1: async (ownerId?: string, filters?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/personal-access-tokens/v1`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (ownerId !== undefined) {\n localVarQueryParameter['owner-id'] = ownerId;\n }\n\n if (filters !== undefined) {\n localVarQueryParameter['filters'] = filters;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {string} id The Personal Access Token id\n * @param {Array<JsonPatchOperation>} jsonPatchOperation A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope * expirationDate * userAwareTokenNeverExpires **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`. \n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n patchPersonalAccessTokenV1: async (id: string, jsonPatchOperation: Array<JsonPatchOperation>, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('patchPersonalAccessTokenV1', 'id', id)\n // verify required parameter 'jsonPatchOperation' is not null or undefined\n assertParamExists('patchPersonalAccessTokenV1', 'jsonPatchOperation', jsonPatchOperation)\n const localVarPath = `/personal-access-tokens/v1/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(jsonPatchOperation, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * PersonalAccessTokensApi - functional programming interface\n * @export\n */\nexport const PersonalAccessTokensApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = PersonalAccessTokensApiAxiosParamCreator(configuration)\n return {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {CreatePersonalAccessTokenRequest} createPersonalAccessTokenRequest Configuration for creating a personal access token, including name, scope, expiration settings, and user acknowledgment of never-expiring tokens. **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async createPersonalAccessTokenV1(createPersonalAccessTokenRequest: CreatePersonalAccessTokenRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePersonalAccessTokenResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createPersonalAccessTokenV1(createPersonalAccessTokenRequest, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.createPersonalAccessTokenV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {string} id The personal access token id\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async deletePersonalAccessTokenV1(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonalAccessTokenV1(id, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.deletePersonalAccessTokenV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {string} [ownerId] The identity ID of the owner whose personal access tokens should be listed. If \\"me\\", the caller should have the following right: \\'idn:my-personal-access-tokens:read\\' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: \\'idn:all-personal-access-tokens:read\\'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: \\'idn:managed-personal-access-tokens:read\\'\n * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async listPersonalAccessTokensV1(ownerId?: string, filters?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetPersonalAccessTokenResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listPersonalAccessTokensV1(ownerId, filters, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.listPersonalAccessTokensV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {string} id The Personal Access Token id\n * @param {Array<JsonPatchOperation>} jsonPatchOperation A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope * expirationDate * userAwareTokenNeverExpires **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`. \n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async patchPersonalAccessTokenV1(id: string, jsonPatchOperation: Array<JsonPatchOperation>, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPersonalAccessTokenResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.patchPersonalAccessTokenV1(id, jsonPatchOperation, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.patchPersonalAccessTokenV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * PersonalAccessTokensApi - factory interface\n * @export\n */\nexport const PersonalAccessTokensApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = PersonalAccessTokensApiFp(configuration)\n return {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {PersonalAccessTokensApiCreatePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n createPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiCreatePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<CreatePersonalAccessTokenResponse> {\n return localVarFp.createPersonalAccessTokenV1(requestParameters.createPersonalAccessTokenRequest, axiosOptions).then((request) => request(axios, basePath));\n },\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {PersonalAccessTokensApiDeletePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n deletePersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiDeletePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.deletePersonalAccessTokenV1(requestParameters.id, axiosOptions).then((request) => request(axios, basePath));\n },\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {PersonalAccessTokensApiListPersonalAccessTokensV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n listPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiListPersonalAccessTokensV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<Array<GetPersonalAccessTokenResponse>> {\n return localVarFp.listPersonalAccessTokensV1(requestParameters.ownerId, requestParameters.filters, axiosOptions).then((request) => request(axios, basePath));\n },\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {PersonalAccessTokensApiPatchPersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n patchPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiPatchPersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<GetPersonalAccessTokenResponse> {\n return localVarFp.patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for createPersonalAccessTokenV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiCreatePersonalAccessTokenV1Request\n */\nexport interface PersonalAccessTokensApiCreatePersonalAccessTokenV1Request {\n /**\n * Configuration for creating a personal access token, including name, scope, expiration settings, and user acknowledgment of never-expiring tokens. **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`.\n * @type {CreatePersonalAccessTokenRequest}\n * @memberof PersonalAccessTokensApiCreatePersonalAccessTokenV1\n */\n readonly createPersonalAccessTokenRequest: CreatePersonalAccessTokenRequest\n}\n\n/**\n * Request parameters for deletePersonalAccessTokenV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiDeletePersonalAccessTokenV1Request\n */\nexport interface PersonalAccessTokensApiDeletePersonalAccessTokenV1Request {\n /**\n * The personal access token id\n * @type {string}\n * @memberof PersonalAccessTokensApiDeletePersonalAccessTokenV1\n */\n readonly id: string\n}\n\n/**\n * Request parameters for listPersonalAccessTokensV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiListPersonalAccessTokensV1Request\n */\nexport interface PersonalAccessTokensApiListPersonalAccessTokensV1Request {\n /**\n * The identity ID of the owner whose personal access tokens should be listed. If \\"me\\", the caller should have the following right: \\'idn:my-personal-access-tokens:read\\' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: \\'idn:all-personal-access-tokens:read\\'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: \\'idn:managed-personal-access-tokens:read\\'\n * @type {string}\n * @memberof PersonalAccessTokensApiListPersonalAccessTokensV1\n */\n readonly ownerId?: string\n\n /**\n * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*\n * @type {string}\n * @memberof PersonalAccessTokensApiListPersonalAccessTokensV1\n */\n readonly filters?: string\n}\n\n/**\n * Request parameters for patchPersonalAccessTokenV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiPatchPersonalAccessTokenV1Request\n */\nexport interface PersonalAccessTokensApiPatchPersonalAccessTokenV1Request {\n /**\n * The Personal Access Token id\n * @type {string}\n * @memberof PersonalAccessTokensApiPatchPersonalAccessTokenV1\n */\n readonly id: string\n\n /**\n * A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope * expirationDate * userAwareTokenNeverExpires **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`. \n * @type {Array<JsonPatchOperation>}\n * @memberof PersonalAccessTokensApiPatchPersonalAccessTokenV1\n */\n readonly jsonPatchOperation: Array<JsonPatchOperation>\n}\n\n/**\n * PersonalAccessTokensApi - object-oriented interface\n * @export\n * @class PersonalAccessTokensApi\n * @extends {BaseAPI}\n */\nexport class PersonalAccessTokensApi extends BaseAPI {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {PersonalAccessTokensApiCreatePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public createPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiCreatePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).createPersonalAccessTokenV1(requestParameters.createPersonalAccessTokenRequest, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {PersonalAccessTokensApiDeletePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public deletePersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiDeletePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).deletePersonalAccessTokenV1(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {PersonalAccessTokensApiListPersonalAccessTokensV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public listPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiListPersonalAccessTokensV1Request = {}, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).listPersonalAccessTokensV1(requestParameters.ownerId, requestParameters.filters, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {PersonalAccessTokensApiPatchPersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public patchPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiPatchPersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n"]}
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../personal_access_tokens/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,gDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,mCAA4N;AAE5N,aAAa;AACb,+BAAmG;AA+QtF,QAAA,wBAAwB,GAAG;IACpC,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACN,CAAC;AAqCX;;;;GAIG;AAEU,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACZ,CAAC;AA+BE,QAAA,gBAAgB,GAAG;IAC5B,QAAQ,EAAE,UAAU;CACd,CAAC;AAKX;;;GAGG;AACI,IAAM,wCAAwC,GAAG,UAAU,aAA6B;IAAvC,iBA6LvD;IA5LG,OAAO;QACH;;;;;;WAMG;QACH,2BAA2B,EAAE,UAAO,gCAAkE,EAAE,YAAwC;YAAxC,6BAAA,EAAA,iBAAwC;;;;oBAC5I,wFAAwF;oBACxF,IAAA,0BAAiB,EAAC,6BAA6B,EAAE,kCAAkC,EAAE,g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AAkC,iBAA2E,EAAE,YAAoC;QAAnJ,iBAEC;QADG,OAAO,IAAA,iCAAyB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,0BAA0B,CAAC,iBAAiB,CAAC,EAAE,EAAE,iBAAiB,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAC;IACpN,CAAC;IAED;;;;;;;OAOG;IACI,kEAAgC,GAAvC,UAAwC,iBAAiF,EAAE,YAAoC;QAA/J,iBAEC;QADG,OAAO,IAAA,iCAAyB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gCAAgC,CAAC,iBAAiB,CAAC,qCAAqC,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAC;IACvN,CAAC;IACL,8BAAC;AAAD,CAAC,AA5DD,CAA6C,cAAO,GA4DnD;AA5DY,0DAAuB","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Identity Security Cloud API - Personal Access Tokens\n * 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.\n *\n * The version of the OpenAPI document: v1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';\n\n/**\n * \n * @export\n * @interface ArrayInner\n */\nexport interface ArrayInner {\n}\n/**\n * Request body for bulk updating personal access tokens. A single JSON Patch document is applied to every personal access token referenced in `ids`.\n * @export\n * @interface BulkUpdatePersonalAccessTokensRequest\n */\nexport interface BulkUpdatePersonalAccessTokensRequest {\n /**\n * The IDs of the personal access tokens to update. All IDs must reference personal access tokens that exist in the current tenant. Duplicate and blank values are not allowed.\n * @type {Set<string>}\n * @memberof BulkUpdatePersonalAccessTokensRequest\n */\n 'ids': Set<string>;\n /**\n * A single [JSON Patch](https://tools.ietf.org/html/rfc6902) document that is applied identically to every personal access token referenced in `ids`. Only the following paths are allowed for bulk updates: * `/expirationDate` - Set (`replace`) or clear (`remove`) the token\\'s expiration. * `/userAwareTokenNeverExpires` - Explicit acknowledgment required when clearing `expirationDate`. Any other path (for example `/name` or `/scope`) results in a `400` response.\n * @type {Array<JsonPatchOperation>}\n * @memberof BulkUpdatePersonalAccessTokensRequest\n */\n 'patch': Array<JsonPatchOperation>;\n}\n/**\n * Object for specifying the name of a personal access token to create\n * @export\n * @interface CreatePersonalAccessTokenRequest\n */\nexport interface CreatePersonalAccessTokenRequest {\n /**\n * The name of the personal access token (PAT) to be created. Cannot be the same as another PAT owned by the user for whom this PAT is being created.\n * @type {string}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'name': string;\n /**\n * Scopes of the personal access token. If no scope is specified, the token will be created with the default scope \\\"sp:scopes:all\\\". This means the personal access token will have all the rights of the owner who created it.\n * @type {Array<string>}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'scope'?: Array<string> | null;\n /**\n * Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.\n * @type {number}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'accessTokenValiditySeconds'?: number | null;\n /**\n * Date and time, down to the millisecond, when this personal access token will expire. **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. **Valid Values (dependent on `userAwareTokenNeverExpires`):** * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (after the current date/time). There is no upper limit on how far in the future the expiration date can be set. `expirationDate` cannot be `null` in this case. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted.\n * @type {string}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'expirationDate'?: string | null;\n /**\n * Indicates that the user creating this Personal Access Token is aware of and acknowledges the security implications of creating a token that will never expire. When set to `true`, this flag confirms that the user understands the security risks associated with non-expiring tokens. **Security Awareness:** Setting this field to `true` serves as an explicit acknowledgment that the user creating the token understands: * Tokens that never expire pose a greater security risk if compromised * Non-expiring tokens should be used only when necessary and with appropriate security measures * Regular rotation and monitoring of non-expiring tokens is recommended **Required Validation:** If `expirationDate` is `null` or empty (not included in the request body), `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Behavior:** * When set to `true`: Indicates that the user acknowledges they are creating a token that will never expire. When `expirationDate` is `null` or empty, the token will never expire. * When set to `false` or not specified (and `expirationDate` is provided): The token will follow normal expiration rules based on the `expirationDate` field and `accessTokenValiditySeconds` setting.\n * @type {boolean}\n * @memberof CreatePersonalAccessTokenRequest\n */\n 'userAwareTokenNeverExpires'?: boolean | null;\n}\n/**\n * \n * @export\n * @interface CreatePersonalAccessTokenResponse\n */\nexport interface CreatePersonalAccessTokenResponse {\n /**\n * The ID of the personal access token (to be used as the username for Basic Auth).\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'id': string;\n /**\n * The secret of the personal access token (to be used as the password for Basic Auth).\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'secret': string;\n /**\n * Scopes of the personal access token.\n * @type {Array<string>}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'scope': Array<string> | null;\n /**\n * The name of the personal access token. Cannot be the same as other personal access tokens owned by a user.\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'name': string;\n /**\n * \n * @type {PatOwner}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'owner': PatOwner;\n /**\n * The date and time, down to the millisecond, when this personal access token was created.\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'created': string;\n /**\n * Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.\n * @type {number}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'accessTokenValiditySeconds': number;\n /**\n * Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date.\n * @type {string}\n * @memberof CreatePersonalAccessTokenResponse\n */\n 'expirationDate': string;\n}\n/**\n * \n * @export\n * @interface ErrorMessageDto\n */\nexport interface ErrorMessageDto {\n /**\n * The locale for the message text, a BCP 47 language tag.\n * @type {string}\n * @memberof ErrorMessageDto\n */\n 'locale'?: string | null;\n /**\n * \n * @type {LocaleOrigin}\n * @memberof ErrorMessageDto\n */\n 'localeOrigin'?: LocaleOrigin | null;\n /**\n * Actual text of the error message in the indicated locale.\n * @type {string}\n * @memberof ErrorMessageDto\n */\n 'text'?: string;\n}\n\n\n/**\n * \n * @export\n * @interface ErrorResponseDto\n */\nexport interface ErrorResponseDto {\n /**\n * Fine-grained error code providing more detail of the error.\n * @type {string}\n * @memberof ErrorResponseDto\n */\n 'detailCode'?: string;\n /**\n * Unique tracking id for the error.\n * @type {string}\n * @memberof ErrorResponseDto\n */\n 'trackingId'?: string;\n /**\n * Generic localized reason for error\n * @type {Array<ErrorMessageDto>}\n * @memberof ErrorResponseDto\n */\n 'messages'?: Array<ErrorMessageDto>;\n /**\n * Plain-text descriptive reasons to provide additional detail to the text provided in the messages field\n * @type {Array<ErrorMessageDto>}\n * @memberof ErrorResponseDto\n */\n 'causes'?: Array<ErrorMessageDto>;\n}\n/**\n * \n * @export\n * @interface GetPersonalAccessTokenResponse\n */\nexport interface GetPersonalAccessTokenResponse {\n /**\n * The ID of the personal access token (to be used as the username for Basic Auth).\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'id': string;\n /**\n * The name of the personal access token. Cannot be the same as other personal access tokens owned by a user.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'name': string;\n /**\n * Scopes of the personal access token.\n * @type {Array<string>}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'scope': Array<string> | null;\n /**\n * \n * @type {PatOwner}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'owner': PatOwner;\n /**\n * The date and time, down to the millisecond, when this personal access token was created.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'created': string;\n /**\n * The date and time, down to the millisecond, when this personal access token was last used to generate an access token. This timestamp does not get updated on every PAT usage, but only once a day. This property can be useful for identifying which PATs are no longer actively used and can be removed.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'lastUsed'?: string | null;\n /**\n * If true, this token is managed by the SailPoint platform, and is not visible in the user interface. For example, Workflows will create managed personal access tokens for users who create workflows.\n * @type {boolean}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'managed'?: boolean;\n /**\n * Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.\n * @type {number}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'accessTokenValiditySeconds'?: number;\n /**\n * Date and time, down to the millisecond, when this personal access token will expire. **Important:** When `expirationDate` is `null` or empty, the token will never expire (and `userAwareTokenNeverExpires` will be `true`). When `expirationDate` is provided, this value must be a future date. There is no upper limit on how far in the future the expiration date can be set.\n * @type {string}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'expirationDate'?: string | null;\n /**\n * Indicates that the user who created or updated this Personal Access Token is aware of and acknowledges the security implications of creating a token that will never expire. When `true`, this flag confirms that the user understood the security risks associated with non-expiring tokens at the time of creation or update. **Security Awareness:** This field serves as a record that the user acknowledged: * Tokens that never expire pose a greater security risk if compromised * Non-expiring tokens should be used only when necessary and with appropriate security measures * Regular rotation and monitoring of non-expiring tokens is recommended **Behavior:** * When `true`: Indicates that the user acknowledged they were creating a token that will never expire. When `expirationDate` is `null`, the token will never expire. * When `false`: The token follows normal expiration rules based on the `expirationDate` field and `accessTokenValiditySeconds` setting.\n * @type {boolean}\n * @memberof GetPersonalAccessTokenResponse\n */\n 'userAwareTokenNeverExpires'?: boolean;\n}\n/**\n * A JSONPatch Operation as defined by [RFC 6902 - JSON Patch](https://tools.ietf.org/html/rfc6902)\n * @export\n * @interface JsonPatchOperation\n */\nexport interface JsonPatchOperation {\n /**\n * The operation to be performed\n * @type {string}\n * @memberof JsonPatchOperation\n */\n 'op': JsonPatchOperationOpEnum;\n /**\n * A string JSON Pointer representing the target path to an element to be affected by the operation\n * @type {string}\n * @memberof JsonPatchOperation\n */\n 'path': string;\n /**\n * \n * @type {JsonPatchOperationValue}\n * @memberof JsonPatchOperation\n */\n 'value'?: JsonPatchOperationValue;\n}\n\nexport const JsonPatchOperationOpEnum = {\n Add: 'add',\n Remove: 'remove',\n Replace: 'replace',\n Move: 'move',\n Copy: 'copy',\n Test: 'test'\n} as const;\n\nexport type JsonPatchOperationOpEnum = typeof JsonPatchOperationOpEnum[keyof typeof JsonPatchOperationOpEnum];\n\n/**\n * @type JsonPatchOperationValue\n * The value to be used for the operation, required for \\\"add\\\" and \\\"replace\\\" operations\n * @export\n */\nexport type JsonPatchOperationValue = Array<ArrayInner> | boolean | number | object | string;\n\n/**\n * \n * @export\n * @interface ListPersonalAccessTokensV1401Response\n */\nexport interface ListPersonalAccessTokensV1401Response {\n /**\n * A message describing the error\n * @type {any}\n * @memberof ListPersonalAccessTokensV1401Response\n */\n 'error'?: any;\n}\n/**\n * \n * @export\n * @interface ListPersonalAccessTokensV1429Response\n */\nexport interface ListPersonalAccessTokensV1429Response {\n /**\n * A message describing the error\n * @type {any}\n * @memberof ListPersonalAccessTokensV1429Response\n */\n 'message'?: any;\n}\n/**\n * An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice.\n * @export\n * @enum {string}\n */\n\nexport const LocaleOrigin = {\n Default: 'DEFAULT',\n Request: 'REQUEST'\n} as const;\n\nexport type LocaleOrigin = typeof LocaleOrigin[keyof typeof LocaleOrigin];\n\n\n/**\n * Personal access token owner\\'s identity.\n * @export\n * @interface PatOwner\n */\nexport interface PatOwner {\n /**\n * Personal access token owner\\'s DTO type.\n * @type {string}\n * @memberof PatOwner\n */\n 'type'?: PatOwnerTypeEnum;\n /**\n * Personal access token owner\\'s identity ID.\n * @type {string}\n * @memberof PatOwner\n */\n 'id'?: string;\n /**\n * Personal access token owner\\'s human-readable display name.\n * @type {string}\n * @memberof PatOwner\n */\n 'name'?: string;\n}\n\nexport const PatOwnerTypeEnum = {\n Identity: 'IDENTITY'\n} as const;\n\nexport type PatOwnerTypeEnum = typeof PatOwnerTypeEnum[keyof typeof PatOwnerTypeEnum];\n\n\n/**\n * PersonalAccessTokensApi - axios parameter creator\n * @export\n */\nexport const PersonalAccessTokensApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {CreatePersonalAccessTokenRequest} createPersonalAccessTokenRequest Configuration for creating a personal access token, including name, scope, expiration settings, and user acknowledgment of never-expiring tokens. **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n createPersonalAccessTokenV1: async (createPersonalAccessTokenRequest: CreatePersonalAccessTokenRequest, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'createPersonalAccessTokenRequest' is not null or undefined\n assertParamExists('createPersonalAccessTokenV1', 'createPersonalAccessTokenRequest', createPersonalAccessTokenRequest)\n const localVarPath = `/personal-access-tokens/v1`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createPersonalAccessTokenRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {string} id The personal access token id\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n deletePersonalAccessTokenV1: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deletePersonalAccessTokenV1', 'id', id)\n const localVarPath = `/personal-access-tokens/v1/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {string} [ownerId] The identity ID of the owner whose personal access tokens should be listed. If \\"me\\", the caller should have the following right: \\'idn:my-personal-access-tokens:read\\' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: \\'idn:all-personal-access-tokens:read\\'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: \\'idn:managed-personal-access-tokens:read\\'\n * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n listPersonalAccessTokensV1: async (ownerId?: string, filters?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/personal-access-tokens/v1`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (ownerId !== undefined) {\n localVarQueryParameter['owner-id'] = ownerId;\n }\n\n if (filters !== undefined) {\n localVarQueryParameter['filters'] = filters;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {string} id The Personal Access Token id\n * @param {Array<JsonPatchOperation>} jsonPatchOperation A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope * expirationDate * userAwareTokenNeverExpires **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`. \n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n patchPersonalAccessTokenV1: async (id: string, jsonPatchOperation: Array<JsonPatchOperation>, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('patchPersonalAccessTokenV1', 'id', id)\n // verify required parameter 'jsonPatchOperation' is not null or undefined\n assertParamExists('patchPersonalAccessTokenV1', 'jsonPatchOperation', jsonPatchOperation)\n const localVarPath = `/personal-access-tokens/v1/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(jsonPatchOperation, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n /**\n * This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.\n * @summary Bulk update personal access tokens\n * @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n updateBulkPersonalAccessTokensV1: async (bulkUpdatePersonalAccessTokensRequest: BulkUpdatePersonalAccessTokensRequest, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'bulkUpdatePersonalAccessTokensRequest' is not null or undefined\n assertParamExists('updateBulkPersonalAccessTokensV1', 'bulkUpdatePersonalAccessTokensRequest', bulkUpdatePersonalAccessTokensRequest)\n const localVarPath = `/personal-access-tokens/v1/bulk-update`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...axiosOptions};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(bulkUpdatePersonalAccessTokensRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n axiosOptions: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * PersonalAccessTokensApi - functional programming interface\n * @export\n */\nexport const PersonalAccessTokensApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = PersonalAccessTokensApiAxiosParamCreator(configuration)\n return {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {CreatePersonalAccessTokenRequest} createPersonalAccessTokenRequest Configuration for creating a personal access token, including name, scope, expiration settings, and user acknowledgment of never-expiring tokens. **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async createPersonalAccessTokenV1(createPersonalAccessTokenRequest: CreatePersonalAccessTokenRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePersonalAccessTokenResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createPersonalAccessTokenV1(createPersonalAccessTokenRequest, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.createPersonalAccessTokenV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {string} id The personal access token id\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async deletePersonalAccessTokenV1(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonalAccessTokenV1(id, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.deletePersonalAccessTokenV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {string} [ownerId] The identity ID of the owner whose personal access tokens should be listed. If \\"me\\", the caller should have the following right: \\'idn:my-personal-access-tokens:read\\' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: \\'idn:all-personal-access-tokens:read\\'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: \\'idn:managed-personal-access-tokens:read\\'\n * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async listPersonalAccessTokensV1(ownerId?: string, filters?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetPersonalAccessTokenResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listPersonalAccessTokensV1(ownerId, filters, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.listPersonalAccessTokensV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {string} id The Personal Access Token id\n * @param {Array<JsonPatchOperation>} jsonPatchOperation A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope * expirationDate * userAwareTokenNeverExpires **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`. \n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async patchPersonalAccessTokenV1(id: string, jsonPatchOperation: Array<JsonPatchOperation>, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPersonalAccessTokenResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.patchPersonalAccessTokenV1(id, jsonPatchOperation, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.patchPersonalAccessTokenV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.\n * @summary Bulk update personal access tokens\n * @param {BulkUpdatePersonalAccessTokensRequest} bulkUpdatePersonalAccessTokensRequest The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n async updateBulkPersonalAccessTokensV1(bulkUpdatePersonalAccessTokensRequest: BulkUpdatePersonalAccessTokensRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetPersonalAccessTokenResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateBulkPersonalAccessTokensV1(bulkUpdatePersonalAccessTokensRequest, axiosOptions);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PersonalAccessTokensApi.updateBulkPersonalAccessTokensV1']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * PersonalAccessTokensApi - factory interface\n * @export\n */\nexport const PersonalAccessTokensApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = PersonalAccessTokensApiFp(configuration)\n return {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {PersonalAccessTokensApiCreatePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n createPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiCreatePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<CreatePersonalAccessTokenResponse> {\n return localVarFp.createPersonalAccessTokenV1(requestParameters.createPersonalAccessTokenRequest, axiosOptions).then((request) => request(axios, basePath));\n },\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {PersonalAccessTokensApiDeletePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n deletePersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiDeletePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.deletePersonalAccessTokenV1(requestParameters.id, axiosOptions).then((request) => request(axios, basePath));\n },\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {PersonalAccessTokensApiListPersonalAccessTokensV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n listPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiListPersonalAccessTokensV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<Array<GetPersonalAccessTokenResponse>> {\n return localVarFp.listPersonalAccessTokensV1(requestParameters.ownerId, requestParameters.filters, axiosOptions).then((request) => request(axios, basePath));\n },\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {PersonalAccessTokensApiPatchPersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n patchPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiPatchPersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<GetPersonalAccessTokenResponse> {\n return localVarFp.patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(axios, basePath));\n },\n /**\n * This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.\n * @summary Bulk update personal access tokens\n * @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n */\n updateBulkPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<Array<GetPersonalAccessTokenResponse>> {\n return localVarFp.updateBulkPersonalAccessTokensV1(requestParameters.bulkUpdatePersonalAccessTokensRequest, axiosOptions).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for createPersonalAccessTokenV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiCreatePersonalAccessTokenV1Request\n */\nexport interface PersonalAccessTokensApiCreatePersonalAccessTokenV1Request {\n /**\n * Configuration for creating a personal access token, including name, scope, expiration settings, and user acknowledgment of never-expiring tokens. **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`.\n * @type {CreatePersonalAccessTokenRequest}\n * @memberof PersonalAccessTokensApiCreatePersonalAccessTokenV1\n */\n readonly createPersonalAccessTokenRequest: CreatePersonalAccessTokenRequest\n}\n\n/**\n * Request parameters for deletePersonalAccessTokenV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiDeletePersonalAccessTokenV1Request\n */\nexport interface PersonalAccessTokensApiDeletePersonalAccessTokenV1Request {\n /**\n * The personal access token id\n * @type {string}\n * @memberof PersonalAccessTokensApiDeletePersonalAccessTokenV1\n */\n readonly id: string\n}\n\n/**\n * Request parameters for listPersonalAccessTokensV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiListPersonalAccessTokensV1Request\n */\nexport interface PersonalAccessTokensApiListPersonalAccessTokensV1Request {\n /**\n * The identity ID of the owner whose personal access tokens should be listed. If \\"me\\", the caller should have the following right: \\'idn:my-personal-access-tokens:read\\' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: \\'idn:all-personal-access-tokens:read\\'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: \\'idn:managed-personal-access-tokens:read\\'\n * @type {string}\n * @memberof PersonalAccessTokensApiListPersonalAccessTokensV1\n */\n readonly ownerId?: string\n\n /**\n * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*\n * @type {string}\n * @memberof PersonalAccessTokensApiListPersonalAccessTokensV1\n */\n readonly filters?: string\n}\n\n/**\n * Request parameters for patchPersonalAccessTokenV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiPatchPersonalAccessTokenV1Request\n */\nexport interface PersonalAccessTokensApiPatchPersonalAccessTokenV1Request {\n /**\n * The Personal Access Token id\n * @type {string}\n * @memberof PersonalAccessTokensApiPatchPersonalAccessTokenV1\n */\n readonly id: string\n\n /**\n * A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope * expirationDate * userAwareTokenNeverExpires **Important:** See the endpoint description for validation rules regarding the relationship between `expirationDate` and `userAwareTokenNeverExpires`. \n * @type {Array<JsonPatchOperation>}\n * @memberof PersonalAccessTokensApiPatchPersonalAccessTokenV1\n */\n readonly jsonPatchOperation: Array<JsonPatchOperation>\n}\n\n/**\n * Request parameters for updateBulkPersonalAccessTokensV1 operation in PersonalAccessTokensApi.\n * @export\n * @interface PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request\n */\nexport interface PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request {\n /**\n * The IDs of the personal access tokens to update, along with a single JSON Patch document to apply to each of them.\n * @type {BulkUpdatePersonalAccessTokensRequest}\n * @memberof PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1\n */\n readonly bulkUpdatePersonalAccessTokensRequest: BulkUpdatePersonalAccessTokensRequest\n}\n\n/**\n * PersonalAccessTokensApi - object-oriented interface\n * @export\n * @class PersonalAccessTokensApi\n * @extends {BaseAPI}\n */\nexport class PersonalAccessTokensApi extends BaseAPI {\n /**\n * This creates a personal access token. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (not included in the request body), the token will never expire. **Required Validation:** If `expirationDate` is `null` or empty, `userAwareTokenNeverExpires` must be set to `true`. This is a required validation rule. The valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is `true` (or required to be `true`):** `expirationDate` can be `null` or omitted from the request body. When `expirationDate` is `null` or empty, the token will never expire. This creates a PAT that never expires and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is `null` or not included in the request body:** `userAwareTokenNeverExpires` must be set to `true` (required). The token will never expire. * **If `expirationDate` is provided and is not `null`:** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Create personal access token\n * @param {PersonalAccessTokensApiCreatePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public createPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiCreatePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).createPersonalAccessTokenV1(requestParameters.createPersonalAccessTokenRequest, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This deletes a personal access token.\n * @summary Delete personal access token\n * @param {PersonalAccessTokensApiDeletePersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public deletePersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiDeletePersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).deletePersonalAccessTokenV1(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This gets a collection of personal access tokens associated with the optional `owner-id`. query parameter. If the `owner-id` query parameter is omitted, all personal access tokens for a tenant will be retrieved, but the caller must have the \\'idn:all-personal-access-tokens:read\\' right.\n * @summary List personal access tokens\n * @param {PersonalAccessTokensApiListPersonalAccessTokensV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public listPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiListPersonalAccessTokensV1Request = {}, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).listPersonalAccessTokensV1(requestParameters.ownerId, requestParameters.filters, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This performs a targeted update to the field(s) of a Personal Access Token. Changing scopes for a Personal Access Token does not impact existing bearer tokens. You will need to create a new bearer token to have the new scopes. Please note that it can take up to 20 minutes for scope changes to be seen on new bearer tokens. **expirationDate and userAwareTokenNeverExpires Relationship:** **Important:** When `expirationDate` is `null` or empty (replaced to `null` or omitted from the patch request), the token will never expire. **Required Validation:** If `expirationDate` is being replaced to `null` or is empty, `userAwareTokenNeverExpires` must be set to `true` in the patch request. This is a required validation rule. When patching `expirationDate` and `userAwareTokenNeverExpires`, the valid values for `expirationDate` depend on the value provided for `userAwareTokenNeverExpires`: * **When `userAwareTokenNeverExpires` is being set to `true` (or required to be `true`):** `expirationDate` can be replaced to `null` or omitted from the patch request. When `expirationDate` is `null` or empty, the token will never expire. This sets the PAT to never expire and serves as an explicit acknowledgment that the user is aware of the security implications of creating a non-expiring token. * **When `userAwareTokenNeverExpires` is `false` or omitted:** `expirationDate` must be provided and must be a valid date-time string representing a future date (there is no upper limit). `expirationDate` cannot be `null` in this case. In this scenario, `userAwareTokenNeverExpires` can be omitted. **Validation Rules:** * **If `expirationDate` is being replaced to `null`:** `userAwareTokenNeverExpires` must also be present in the patch request with a value of `true` (required). The token will never expire. * **If `expirationDate` is not being replaced to `null` (i.e., set to a future date):** `userAwareTokenNeverExpires` can be omitted. **Security Considerations:** The `userAwareTokenNeverExpires` field is designed to ensure that users explicitly acknowledge the security implications of creating tokens that never expire. Setting this field to `true` indicates that the user understands the increased security risks and has made an informed decision to proceed. **Note:** The `userAwareTokenNeverExpires` field indicates that the user acknowledges they are creating a token that will never expire. It does not affect token behavior beyond indicating this acknowledgment.\n * @summary Patch personal access token\n * @param {PersonalAccessTokensApiPatchPersonalAccessTokenV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public patchPersonalAccessTokenV1(requestParameters: PersonalAccessTokensApiPatchPersonalAccessTokenV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).patchPersonalAccessTokenV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This applies a single [JSON Patch](https://tools.ietf.org/html/rfc6902) document to multiple personal access tokens (PATs) in the current tenant in one request. The same `patch` is applied to every token referenced in `ids`. Up to **25** tokens can be updated per request. This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the `idn:all-personal-access-tokens:update` right. API OAuth client credentials are not permitted to call this endpoint. Note: This operation is also accessible via `POST` to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses `Content-Type: application/json` (not `application/json-patch+json`). **Allowed patch paths** Only expiration-related paths may be modified in bulk: * `/expirationDate` - Set or clear the token\\'s expiration date. Any other path (for example `/name` or `/scope`) results in a `400` response. * `/userAwareTokenNeverExpires` - Explicit acknowledgment that the token will never expire. **expirationDate and userAwareTokenNeverExpires Relationship:** When clearing `expirationDate` (either by removing it or replacing it with `null`), `userAwareTokenNeverExpires` must also be set to `true` in the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. When `expirationDate` is set to a valid future date-time, `userAwareTokenNeverExpires` can be omitted. **Note:** `userAwareTokenNeverExpires` is stored internally and is not returned in the response.\n * @summary Bulk update personal access tokens\n * @param {PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request} requestParameters Request parameters.\n * @param {*} [axiosOptions] Override http request option.\n * @throws {RequiredError}\n * @memberof PersonalAccessTokensApi\n */\n public updateBulkPersonalAccessTokensV1(requestParameters: PersonalAccessTokensApiUpdateBulkPersonalAccessTokensV1Request, axiosOptions?: RawAxiosRequestConfig) {\n return PersonalAccessTokensApiFp(this.configuration).updateBulkPersonalAccessTokensV1(requestParameters.bulkUpdatePersonalAccessTokensRequest, axiosOptions).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n"]}
|