purecloud-platform-client-v2 214.0.0 → 215.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +31 -3
  2. package/dist/node/purecloud-platform-client-v2.js +172 -82
  3. package/dist/web-amd/purecloud-platform-client-v2.js +172 -82
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +151 -136
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +161 -143
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +6 -0
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/AbstractHttpClient.js +29 -0
  11. package/src/purecloud-platform-client-v2/ApiClient.js +21 -1
  12. package/src/purecloud-platform-client-v2/DefaultHttpClient.js +41 -0
  13. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  93. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -3142,13 +3142,16 @@ function quote(s) {
3142
3142
  return $replace.call(String(s), /"/g, '"');
3143
3143
  }
3144
3144
 
3145
- function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
3146
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
3147
- function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
3148
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
3149
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
3150
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
3151
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
3145
+ function canTrustToString(obj) {
3146
+ return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
3147
+ }
3148
+ function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }
3149
+ function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }
3150
+ function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }
3151
+ function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }
3152
+ function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }
3153
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }
3154
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }
3152
3155
 
3153
3156
  // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
3154
3157
  function isSymbol(obj) {
@@ -6415,11 +6418,20 @@ axios.Cancel=axios.CanceledError;// Expose all/spread
6415
6418
  axios.all=function all(promises){return Promise.all(promises);};axios.spread=spread;// Expose isAxiosError
6416
6419
  axios.isAxiosError=isAxiosError;// Expose mergeConfig
6417
6420
  axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=function(thing){return formDataToJSON(utils$1.isHTMLForm(thing)?new FormData(thing):thing);};axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios["default"]=axios;// this module should only have a default export
6418
- var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function AbstractHttpClient(){_classCallCheck(this,AbstractHttpClient);this.timeout=16000;}return _createClass(AbstractHttpClient,[{key:"setTimeout",value:function setTimeout(timeout){if(timeout===null||timeout===undefined||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}},{key:"setHttpsAgent",value:function setHttpsAgent(httpsAgent){if(httpsAgent&&_typeof(httpsAgent)!=='object'){throw new Error("The 'httpsAgent' property must be an object");}this.httpsAgent=httpsAgent;}},{key:"request",value:function request(httpRequestOptions){throw new Error("method must be implemented");}}]);}();var HttpRequestOptions=/*#__PURE__*/function(){function HttpRequestOptions(url,method,headers,params,data,timeout){_classCallCheck(this,HttpRequestOptions);this.setUrl(url);this.setMethod(method);if(headers){this.setHeaders(headers);}if(params){this.setParams(params);}if(data){this.setData(data);}if(timeout!==null&&timeout!==undefined)this.setTimeout(timeout);else this.timeout=16000;}// Mandatory fields with validation
6421
+ var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function AbstractHttpClient(){_classCallCheck(this,AbstractHttpClient);this.timeout=16000;}return _createClass(AbstractHttpClient,[{key:"setTimeout",value:function setTimeout(timeout){if(timeout===null||timeout===undefined||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}},{key:"setHttpsAgent",value:function setHttpsAgent(httpsAgent){if(httpsAgent&&_typeof(httpsAgent)!=='object'){throw new Error("The 'httpsAgent' property must be an object");}this.httpsAgent=httpsAgent;}},{key:"request",value:function request(httpRequestOptions){throw new Error("method must be implemented");}},{key:"enableHooks",value:function enableHooks(){throw new Error("method must be implemented");}/**
6422
+ * Set a PreHook function that modifies the request config before execution.
6423
+ * @param {(config: object) => object | Promise<object> | void} hookFunction
6424
+ */},{key:"setPreHook",value:function setPreHook(hookFunction){if(typeof hookFunction!=="function"||hookFunction.length!==1){throw new Error("preHook must be a function that accepts (config)");}this.preHook=hookFunction;this.enableHooks();}/**
6425
+ * Set a PostHook function that processes the response or error after execution.
6426
+ * @param {(response: object | null, error: Error | null) => object | Promise<object> | void} hookFunction
6427
+ */},{key:"setPostHook",value:function setPostHook(hookFunction){if(typeof hookFunction!=="function"||hookFunction.length!==1){throw new Error("postHook must be a function that accepts (response)");}this.postHook=hookFunction;this.enableHooks();}}]);}();var HttpRequestOptions=/*#__PURE__*/function(){function HttpRequestOptions(url,method,headers,params,data,timeout){_classCallCheck(this,HttpRequestOptions);this.setUrl(url);this.setMethod(method);if(headers){this.setHeaders(headers);}if(params){this.setParams(params);}if(data){this.setData(data);}if(timeout!==null&&timeout!==undefined)this.setTimeout(timeout);else this.timeout=16000;}// Mandatory fields with validation
6419
6428
  return _createClass(HttpRequestOptions,[{key:"setUrl",value:function setUrl(url){if(!url)throw new Error("The 'url' property is required");this.url=url;}},{key:"setMethod",value:function setMethod(method){var validMethods=['GET','POST','PUT','DELETE','PATCH','OPTIONS','HEAD'];if(!method||!validMethods.includes(method.toUpperCase())){throw new Error("The 'method' property is invalid or missing");}this.method=method.toUpperCase();}},{key:"setData",value:function setData(data){if(data===undefined||data===null){throw new Error("The 'data' property is required");}this.data=data;}// Optional fields
6420
6429
  },{key:"setParams",value:function setParams(params){if(params&&_typeof(params)!=='object'){throw new Error("The 'params' property must be an object");}this.params=params;}// Optional fields
6421
6430
  },{key:"setHeaders",value:function setHeaders(headers){if(headers&&_typeof(headers)!=='object'){throw new Error("The 'headers' property must be an object");}this.headers=headers;}},{key:"setTimeout",value:function setTimeout(timeout){if(timeout===undefined||timeout===null||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}}]);}();// Default client is Axios
6422
- var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
6431
+ var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"enableHooks",value:function enableHooks(){var _this3=this;if(this.preHook&&typeof this.preHook==='function'){if(this.requestInterceptorId!==undefined){axios$1.interceptors.request.eject(this.requestInterceptorId);}this.requestInterceptorId=this._axiosInstance.interceptors.request.use(/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(config){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return _this3.preHook(config);case 2:config=_context10.sent;return _context10.abrupt("return",config);case 4:case"end":return _context10.stop();}},_callee9);}));return function(_x11){return _ref23.apply(this,arguments);};}(),function(error){// Handle errors before the request is sent
6432
+ console.error('Request Pre-Hook Error:',error.message);return Promise.reject(error);});}if(this.postHook&&typeof this.postHook==='function'){// Response interceptor (for post-hooks)
6433
+ if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(response){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return _this3.postHook(response);case 2:response=_context11.sent;return _context11.abrupt("return",response);case 4:case"end":return _context11.stop();}},_callee10);}));return function(_x12){return _ref24.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(error){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
6434
+ return _context12.abrupt("return",Promise.reject(error));case 2:case"end":return _context12.stop();}},_callee11);}));return function(_x13){return _ref25.apply(this,arguments);};}());}}},{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
6423
6435
  },{key:"toAxiosConfig",value:function toAxiosConfig(httpRequestOptions){if(!httpRequestOptions.url||!httpRequestOptions.method){throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");}var config={url:httpRequestOptions.url,method:httpRequestOptions.method};if(httpRequestOptions.params)config.params=httpRequestOptions.params;if(httpRequestOptions.headers)config.headers=httpRequestOptions.headers;if(httpRequestOptions.data)config.data=httpRequestOptions.data;if(this.timeout!=null&&this.timeout!=undefined)config.timeout=this.timeout;if(this.httpsAgent)config.httpsAgent=this.httpsAgent;return config;}}]);}(AbstractHttpClient);var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}return _createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);}();var Configuration=/*#__PURE__*/function(){function Configuration(){_classCallCheck(this,Configuration);if(!Configuration.instance){Configuration.instance=this;}if(typeof window!=='undefined'){this.configPath='';}else{var os=require('os');var path=require('path');this.configPath=path.join(os.homedir(),'.genesyscloudjavascript','config');}this.refresh_access_token=true;this.refresh_token_wait_max=10;this.live_reload_config=true;this.host;this.environment;this.basePath;this.authUrl;this.config;this.gateway=undefined;this.logger=new Logger();this.setEnvironment();this.liveLoadConfig();}return _createClass(Configuration,[{key:"instance",get:/**
6424
6436
  * Singleton getter
6425
6437
  */function get(){return Configuration.instance;}/**
@@ -6443,7 +6455,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
6443
6455
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
6444
6456
  if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfUrl",value:function getConfUrl(pathType,regionUrl){if(!this.gateway)return regionUrl;if(!this.gateway.host)return regionUrl;var url=this.gateway.protocol+'://'+this.gateway.host;if(this.gateway.port>-1)url=url+':'+this.gateway.port.toString();if(pathType==='login'){if(this.gateway.path_params_login){if(this.gateway.path_params_login.startsWith('/'))url=url+this.gateway.path_params_login;else url=url+'/'+this.gateway.path_params_login;}}else{if(this.gateway.path_params_api){if(this.gateway.path_params_api.startsWith('/'))url=url+this.gateway.path_params_api;else url=url+'/'+this.gateway.path_params_api;}}return url;}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
6445
6457
  * @module purecloud-platform-client-v2/ApiClient
6446
- * @version 214.0.0
6458
+ * @version 215.0.0
6447
6459
  */var ApiClient=/*#__PURE__*/function(){/**
6448
6460
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
6449
6461
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -6522,6 +6534,12 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
6522
6534
  * @param {string} keyPath - path for key
6523
6535
  * @param {string} caPath - path for public certs
6524
6536
  */},{key:"setMTLSCertificates",value:function setMTLSCertificates(certPath,keyPath,caPath){{throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");}}/**
6537
+ * @description Sets preHook functions for the httpClient
6538
+ * @param {string} preHook - method definition for prehook
6539
+ */},{key:"setPreHook",value:function setPreHook(preHook){var httpClient=this.getHttpClient();httpClient.setPreHook(preHook);}/**
6540
+ * @description Sets postHook functions for the httpClient
6541
+ * @param {string} postHook - method definition for posthook
6542
+ */},{key:"setPostHook",value:function setPostHook(postHook){var httpClient=this.getHttpClient();httpClient.setPostHook(postHook);}/**
6525
6543
  * @description Sets the certificate content if MTLS authentication is needed
6526
6544
  * @param {string} certContent - content for certs
6527
6545
  * @param {string} keyContent - content for key
@@ -6544,43 +6562,43 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
6544
6562
  * @param {string} opts.state - (optional) An arbitrary string to be passed back with the login response. Used for client apps to associate login responses with a request.
6545
6563
  * @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
6546
6564
  * @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
6547
- */},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this3=this;// Check for auth token in hash
6565
+ */},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this4=this;// Check for auth token in hash
6548
6566
  var hash=this._setValuesFromUrlHash();this.clientId=clientId;this.redirectUri=redirectUri;if(!opts)opts={};return new Promise(function(resolve,reject){// Abort if org and provider are not set together
6549
6567
  if(opts.org&&!opts.provider){reject(new Error('opts.provider must be set if opts.org is set'));}else if(opts.provider&&!opts.org){reject(new Error('opts.org must be set if opts.provider is set'));}// Abort on auth error
6550
- if(hash&&hash.error){hash.accessToken=undefined;_this3._saveSettings(hash);return reject(new Error("[".concat(hash.error,"] ").concat(hash.error_description)));}// Test token and proceed with login
6551
- _this3._testTokenAccess().then(function(){if(!_this3.authData.state&&opts.state)_this3.authData.state=opts.state;resolve(_this3.authData);})["catch"](function(error){var query={client_id:encodeURIComponent(_this3.clientId),redirect_uri:encodeURIComponent(_this3.redirectUri),response_type:'token'};if(opts.state)query.state=encodeURIComponent(opts.state);if(opts.org)query.org=encodeURIComponent(opts.org);if(opts.provider)query.provider=encodeURIComponent(opts.provider);var url=_this3._buildAuthUrl('oauth/authorize',query);window.location.replace(url);});});}/**
6568
+ if(hash&&hash.error){hash.accessToken=undefined;_this4._saveSettings(hash);return reject(new Error("[".concat(hash.error,"] ").concat(hash.error_description)));}// Test token and proceed with login
6569
+ _this4._testTokenAccess().then(function(){if(!_this4.authData.state&&opts.state)_this4.authData.state=opts.state;resolve(_this4.authData);})["catch"](function(error){var query={client_id:encodeURIComponent(_this4.clientId),redirect_uri:encodeURIComponent(_this4.redirectUri),response_type:'token'};if(opts.state)query.state=encodeURIComponent(opts.state);if(opts.org)query.org=encodeURIComponent(opts.org);if(opts.provider)query.provider=encodeURIComponent(opts.provider);var url=_this4._buildAuthUrl('oauth/authorize',query);window.location.replace(url);});});}/**
6552
6570
  * @description Initiates the client credentials login flow. Only available in node apps.
6553
6571
  * @param {string} clientId - The client ID of an OAuth Implicit Grant client
6554
6572
  * @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
6555
- */},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var _this4=this;this.clientId=clientId;var authHeader=Buffer.from("".concat(clientId,":").concat(clientSecret)).toString('base64');var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){// Block browsers from using client credentials
6556
- if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,'grant_type=client_credentials',_this4.timeout);var httpClient=_this4.getHttpClient();httpClient.request(requestOptions).then(function(response){// Logging
6557
- _this4.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,response.headers,{grant_type:'client_credentials'},undefined);_this4.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,undefined,{grant_type:'client_credentials'},undefined);// Save access token
6558
- _this4.setAccessToken(response.data['access_token']);// Set expiry time
6559
- _this4.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this4.authData.tokenExpiryTimeString=new Date(_this4.authData.tokenExpiryTime).toUTCString();// Return auth data
6560
- resolve(_this4.authData);})["catch"](function(error){// Log error
6561
- if(error.response){_this4.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,error.response.headers,{grant_type:'client_credentials'},error.response.data);}reject(error);});});}/**
6573
+ */},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var _this5=this;this.clientId=clientId;var authHeader=Buffer.from("".concat(clientId,":").concat(clientSecret)).toString('base64');var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){// Block browsers from using client credentials
6574
+ if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,'grant_type=client_credentials',_this5.timeout);var httpClient=_this5.getHttpClient();httpClient.request(requestOptions).then(function(response){// Logging
6575
+ _this5.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,response.headers,{grant_type:'client_credentials'},undefined);_this5.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,undefined,{grant_type:'client_credentials'},undefined);// Save access token
6576
+ _this5.setAccessToken(response.data['access_token']);// Set expiry time
6577
+ _this5.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this5.authData.tokenExpiryTimeString=new Date(_this5.authData.tokenExpiryTime).toUTCString();// Return auth data
6578
+ resolve(_this5.authData);})["catch"](function(error){// Log error
6579
+ if(error.response){_this5.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,error.response.headers,{grant_type:'client_credentials'},error.response.data);}reject(error);});});}/**
6562
6580
  * @description Initiates the Saml2Bearerflow. Only available in node apps.
6563
6581
  * @param {string} clientId - The client ID of an OAuth Implicit Grant client
6564
6582
  * @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
6565
6583
  * @param {string} orgName - The orgName of an OAuth Implicit Grant client
6566
6584
  * @param {string} assertion - The saml2bearer assertion
6567
- */},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var _this5=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The saml2bearer grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this5._formAuthRequest(encodedData,{grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion});request.proxy=_this5.proxy;var bodyParam={grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion};// Handle response
6585
+ */},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var _this6=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The saml2bearer grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this6._formAuthRequest(encodedData,{grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion});request.proxy=_this6.proxy;var bodyParam={grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion};// Handle response
6568
6586
  request.then(function(response){// Logging
6569
- _this5.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this5.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6570
- var access_token=response.data.access_token;_this5.setAccessToken(access_token);_this5.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this5.authData.tokenExpiryTimeString=new Date(_this5.authData.tokenExpiryTime).toUTCString();// Return auth data
6571
- resolve(_this5.authData);})["catch"](function(error){// Log error
6572
- if(error.response){_this5.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6587
+ _this6.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this6.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6588
+ var access_token=response.data.access_token;_this6.setAccessToken(access_token);_this6.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this6.authData.tokenExpiryTimeString=new Date(_this6.authData.tokenExpiryTime).toUTCString();// Return auth data
6589
+ resolve(_this6.authData);})["catch"](function(error){// Log error
6590
+ if(error.response){_this6.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6573
6591
  * @description Completes the PKCE Code Authorization.
6574
6592
  * @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
6575
6593
  * @param {string} codeVerifier - code verifier used to generate the code challenge
6576
6594
  * @param {string} authCode - Authorization code
6577
6595
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
6578
- */},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this6=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){var headers={'Content-Type':'application/x-www-form-urlencoded'};var data=qs__default["default"].stringify({grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri});var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,data,_this6.timeout);var httpClient=_this6.getHttpClient();var bodyParam={grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri};// Handle response
6596
+ */},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this7=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){var headers={'Content-Type':'application/x-www-form-urlencoded'};var data=qs__default["default"].stringify({grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri});var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,data,_this7.timeout);var httpClient=_this7.getHttpClient();var bodyParam={grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri};// Handle response
6579
6597
  httpClient.request(requestOptions).then(function(response){// Logging
6580
- _this6.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,response.headers,bodyParam,undefined);_this6.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,undefined,bodyParam,undefined);// Get access token from response
6581
- var access_token=response.data.access_token;_this6.setAccessToken(access_token);_this6.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this6.authData.tokenExpiryTimeString=new Date(_this6.authData.tokenExpiryTime).toUTCString();// Return auth data
6582
- resolve(_this6.authData);})["catch"](function(error){// Log error
6583
- if(error.response){_this6.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6598
+ _this7.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,response.headers,bodyParam,undefined);_this7.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,undefined,bodyParam,undefined);// Get access token from response
6599
+ var access_token=response.data.access_token;_this7.setAccessToken(access_token);_this7.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this7.authData.tokenExpiryTimeString=new Date(_this7.authData.tokenExpiryTime).toUTCString();// Return auth data
6600
+ resolve(_this7.authData);})["catch"](function(error){// Log error
6601
+ if(error.response){_this7.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6584
6602
  * @description Generate a random string used as PKCE Code Verifier - length = 43 to 128.
6585
6603
  * @param {number} nChar - code length
6586
6604
  */},{key:"generatePKCECodeVerifier",value:function generatePKCECodeVerifier(nChar){if(nChar<43||nChar>128){throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");}// Check for window
@@ -6599,23 +6617,23 @@ return reject(new Error("Code Challenge Error ".concat(error)));});});}}/**
6599
6617
  * @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
6600
6618
  * @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
6601
6619
  * @param {string} codeVerifier - (optional) code verifier used to generate the code challenge
6602
- */},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var _this7=this;// Need Local Storage or non null codeVerifier as parameter
6620
+ */},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var _this8=this;// Need Local Storage or non null codeVerifier as parameter
6603
6621
  if(!this.hasLocalStorage&&!codeVerifier){throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");}// Check for auth code in query
6604
6622
  var query=this._setValuesFromUrlQuery();this.clientId=clientId;this.redirectUri=redirectUri;this.codeVerifier=codeVerifier;if(!opts)opts={};return new Promise(function(resolve,reject){// Abort if org and provider are not set together
6605
6623
  if(opts.org&&!opts.provider){reject(new Error('opts.provider must be set if opts.org is set'));}else if(opts.provider&&!opts.org){reject(new Error('opts.org must be set if opts.provider is set'));}// Abort on auth error
6606
6624
  if(query&&query.error){// remove codeVerifier from session storage
6607
- if(_this7.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}// reset access token if any was stored
6608
- _this7._saveSettings({accessToken:undefined});return reject(new Error("[".concat(query.error,"] ").concat(query.error_description)));}// Get token on auth code
6609
- if(query&&query.code){if(!_this7.codeVerifier){// load codeVerifier from session storage
6610
- if(_this7.hasLocalStorage){_this7.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier");}}_this7.authorizePKCEGrant(_this7.clientId,_this7.codeVerifier,query.code,_this7.redirectUri).then(function(){// Do authenticated things
6611
- _this7._testTokenAccess().then(function(){if(!_this7.authData.state&&query.state)_this7.authData.state=query.state;// remove codeVerifier from session storage
6612
- if(_this7.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}resolve(_this7.authData);})["catch"](function(error){// Handle failure response
6613
- _this7._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6614
- if(_this7.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});})["catch"](function(error){// Handle failure response
6615
- _this7._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6616
- if(_this7.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});}else{// Test token (if previously stored) and proceed with login
6617
- _this7._testTokenAccess().then(function(){if(!_this7.authData.state&&opts.state)_this7.authData.state=opts.state;resolve(_this7.authData);})["catch"](function(error){if(!_this7.codeVerifier){_this7.codeVerifier=_this7.generatePKCECodeVerifier(128);// save codeVerifier in session storage
6618
- if(_this7.hasLocalStorage){sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",_this7.codeVerifier);}}_this7.computePKCECodeChallenge(_this7.codeVerifier).then(function(codeChallenge){var tokenQuery={client_id:encodeURIComponent(_this7.clientId),redirect_uri:encodeURIComponent(_this7.redirectUri),code_challenge:encodeURIComponent(codeChallenge),response_type:'code',code_challenge_method:'S256'};if(opts.state)tokenQuery.state=encodeURIComponent(opts.state);if(opts.org)tokenQuery.org=encodeURIComponent(opts.org);if(opts.provider)tokenQuery.provider=encodeURIComponent(opts.provider);var url=_this7._buildAuthUrl('oauth/authorize',tokenQuery);window.location.replace(url);})["catch"](function(err){return reject(new Error("[".concat(err.name,"]")));});});}});}/**
6625
+ if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}// reset access token if any was stored
6626
+ _this8._saveSettings({accessToken:undefined});return reject(new Error("[".concat(query.error,"] ").concat(query.error_description)));}// Get token on auth code
6627
+ if(query&&query.code){if(!_this8.codeVerifier){// load codeVerifier from session storage
6628
+ if(_this8.hasLocalStorage){_this8.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier");}}_this8.authorizePKCEGrant(_this8.clientId,_this8.codeVerifier,query.code,_this8.redirectUri).then(function(){// Do authenticated things
6629
+ _this8._testTokenAccess().then(function(){if(!_this8.authData.state&&query.state)_this8.authData.state=query.state;// remove codeVerifier from session storage
6630
+ if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}resolve(_this8.authData);})["catch"](function(error){// Handle failure response
6631
+ _this8._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6632
+ if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});})["catch"](function(error){// Handle failure response
6633
+ _this8._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6634
+ if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});}else{// Test token (if previously stored) and proceed with login
6635
+ _this8._testTokenAccess().then(function(){if(!_this8.authData.state&&opts.state)_this8.authData.state=opts.state;resolve(_this8.authData);})["catch"](function(error){if(!_this8.codeVerifier){_this8.codeVerifier=_this8.generatePKCECodeVerifier(128);// save codeVerifier in session storage
6636
+ if(_this8.hasLocalStorage){sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",_this8.codeVerifier);}}_this8.computePKCECodeChallenge(_this8.codeVerifier).then(function(codeChallenge){var tokenQuery={client_id:encodeURIComponent(_this8.clientId),redirect_uri:encodeURIComponent(_this8.redirectUri),code_challenge:encodeURIComponent(codeChallenge),response_type:'code',code_challenge_method:'S256'};if(opts.state)tokenQuery.state=encodeURIComponent(opts.state);if(opts.org)tokenQuery.org=encodeURIComponent(opts.org);if(opts.provider)tokenQuery.provider=encodeURIComponent(opts.provider);var url=_this8._buildAuthUrl('oauth/authorize',tokenQuery);window.location.replace(url);})["catch"](function(err){return reject(new Error("[".concat(err.name,"]")));});});}});}/**
6619
6637
  * @description Parses the URL Query, grabs the code, and clears the query param. If no code is found, no action is taken.
6620
6638
  */},{key:"_setValuesFromUrlQuery",value:function _setValuesFromUrlQuery(){// Check for window
6621
6639
  if(!(typeof window!=='undefined'&&window.location.search))return;// Process query string
@@ -6632,42 +6650,42 @@ document.body.scrollTop=scrollV;document.body.scrollLeft=scrollH;}return query;}
6632
6650
  * @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
6633
6651
  * @param {string} authCode - Authorization code
6634
6652
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
6635
- */},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var _this8=this;this.clientId=clientId;this.clientSecret=clientSecret;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this8._formAuthRequest(encodedData,{grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri});request.proxy=_this8.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri};// Handle response
6636
- _this8._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6653
+ */},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var _this9=this;this.clientId=clientId;this.clientSecret=clientSecret;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this9._formAuthRequest(encodedData,{grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri});request.proxy=_this9.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri};// Handle response
6654
+ _this9._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6637
6655
  * @description Requests a new access token for Code Authorization. Only available in node apps.
6638
6656
  * @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
6639
6657
  * @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
6640
6658
  * @param {string} authCode - Authorization code
6641
6659
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
6642
- */},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this9=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this9._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this9.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
6643
- _this9._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6660
+ */},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this10=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this10._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this10.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
6661
+ _this10._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6644
6662
  * @description Handles the response for code auth requests
6645
6663
  * @param {object} request - Authorization request object
6646
6664
  * @param {object} bodyParam - Input body data for authorization request
6647
6665
  * @param {function} resolve - Promise resolve callback
6648
6666
  * @param {function} reject - Promise reject callback
6649
- */},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this10=this;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));request.then(function(response){// Logging
6650
- _this10.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this10.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6651
- var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this10.setAccessToken(access_token);_this10.authData.refreshToken=refresh_token;_this10.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this10.authData.tokenExpiryTimeString=new Date(_this10.authData.tokenExpiryTime).toUTCString();// Return auth data
6652
- resolve(_this10.authData);})["catch"](function(error){// Log error
6653
- if(error.response){_this10.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
6667
+ */},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this11=this;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));request.then(function(response){// Logging
6668
+ _this11.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this11.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6669
+ var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this11.setAccessToken(access_token);_this11.authData.refreshToken=refresh_token;_this11.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this11.authData.tokenExpiryTimeString=new Date(_this11.authData.tokenExpiryTime).toUTCString();// Return auth data
6670
+ resolve(_this11.authData);})["catch"](function(error){// Log error
6671
+ if(error.response){_this11.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
6654
6672
  * @description Utility function to create the request for auth requests
6655
6673
  * @param {string} encodedData - Base64 encoded client and clientSecret pair
6656
6674
  * @param {object} data - data to url form encode
6657
6675
  */},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,qs__default["default"].stringify(data),this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
6658
6676
  * @description Handles an expired access token. Only available in node apps.
6659
6677
  * @param {string} statusCode - The status code of a request
6660
- */},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this11=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this11.refreshInProgress){_this11.refreshInProgress=true;_this11.refreshCodeAuthorizationGrant(_this11.clientId,_this11.clientSecret,_this11.authData.refreshToken).then(function(){_this11.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
6661
- _this11.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
6662
- _this11._sleep(_this11.config.refresh_token_wait_max).then(function(){if(_this11.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this11.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
6678
+ */},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this12=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this12.refreshInProgress){_this12.refreshInProgress=true;_this12.refreshCodeAuthorizationGrant(_this12.clientId,_this12.clientSecret,_this12.authData.refreshToken).then(function(){_this12.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
6679
+ _this12.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
6680
+ _this12._sleep(_this12.config.refresh_token_wait_max).then(function(){if(_this12.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this12.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
6663
6681
  * @description Sleeps for a defined length
6664
6682
  * @param {int} millis - Length to sleep in milliseconds
6665
6683
  */},{key:"_sleep",value:function _sleep(millis){return new Promise(function(resolve){return setTimeout(resolve,millis);});}/**
6666
6684
  * @description Loads token from storage, if enabled, and checks to ensure it works.
6667
- */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this12=this;return new Promise(function(resolve,reject){// Load from storage
6668
- _this12._loadSettings();// Check if there is a token to test
6669
- if(!_this12.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
6670
- _this12.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this12._saveSettings({accessToken:undefined});reject(error);});});}/**
6685
+ */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this13=this;return new Promise(function(resolve,reject){// Load from storage
6686
+ _this13._loadSettings();// Check if there is a token to test
6687
+ if(!_this13.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
6688
+ _this13.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this13._saveSettings({accessToken:undefined});reject(error);});});}/**
6671
6689
  * @description Parses the URL hash, grabs the access token, and clears the hash. If no access token is found, no action is taken.
6672
6690
  */},{key:"_setValuesFromUrlHash",value:function _setValuesFromUrlHash(){// Check for window
6673
6691
  if(!(typeof window!=='undefined'&&window.location.hash))return;// Process hash string into object
@@ -6712,7 +6730,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
6712
6730
  * @param {String} path The path to append to the base URL.
6713
6731
  * @param {Object} pathParams The parameter values to append.
6714
6732
  * @returns {String} The encoded path with parameter values substituted.
6715
- */},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this13=this;if(!path.match(/^\//)){path="/".concat(path);}var url=this.config.getConfUrl('api',this.config.basePath)+path;url=url.replace(/\{([\w-]+)\}/g,function(fullMatch,key){var value;if(pathParams.hasOwnProperty(key)){value=_this13.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
6733
+ */},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this14=this;if(!path.match(/^\//)){path="/".concat(path);}var url=this.config.getConfUrl('api',this.config.basePath)+path;url=url.replace(/\{([\w-]+)\}/g,function(fullMatch,key){var value;if(pathParams.hasOwnProperty(key)){value=_this14.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
6716
6734
  * Checks whether the given content type represents JSON.<br>
6717
6735
  * JSON content type examples:<br>
6718
6736
  * <ul>
@@ -6753,7 +6771,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
6753
6771
  * Applies authentication headers to the request.
6754
6772
  * @param {Object} request The axios request config object.
6755
6773
  * @param {Array.<String>} authNames An array of authentication method names.
6756
- */},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this14=this;authNames.forEach(function(authName){var auth=_this14.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this14.addHeaders(request.headers,data);}else{request.setParams(_this14.serialize(data));}}break;case'oauth2':if(auth.accessToken){request.headers=_this14.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
6774
+ */},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this15=this;authNames.forEach(function(authName){var auth=_this15.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this15.addHeaders(request.headers,data);}else{request.setParams(_this15.serialize(data));}}break;case'oauth2':if(auth.accessToken){request.headers=_this15.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
6757
6775
  * @description Sets the proxy agent axios will use for requests
6758
6776
  * @param {any} agent - The proxy agent
6759
6777
  */},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;var httpClient=this.getHttpClient();httpClient.setHttpsAgent(this.proxyAgent);}/**
@@ -6770,7 +6788,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
6770
6788
  * @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
6771
6789
  * constructor for a complex type.
6772
6790
  * @returns {Promise} A Promise object.
6773
- */},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this15=this;return new Promise(function(resolve,reject){sendRequest(_this15);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request=new HttpRequestOptions(url,httpMethod,null,that.serialize(queryParams),null,that.timeout);// apply authentications
6791
+ */},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this16=this;return new Promise(function(resolve,reject){sendRequest(_this16);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request=new HttpRequestOptions(url,httpMethod,null,that.serialize(queryParams),null,that.timeout);// apply authentications
6774
6792
  that.applyAuthToRequest(request,authNames);// set header parameters
6775
6793
  var defaultHeaders=that.defaultHeaders;var normalizedHeaderParams=that.normalizeParams(headerParams);request.headers=that.addHeaders(request.headers,defaultHeaders,normalizedHeaderParams);var contentType=that.jsonPreferredMime(contentTypes);if(contentType){request.headers['Content-Type']=contentType;}else if(!request.headers['Content-Type']){request.headers['Content-Type']='application/json';}if(contentType==='application/x-www-form-urlencoded'){request.setData(that.normalizeParams(formParams));}else if(contentType=='multipart/form-data'){var _formParams=that.normalizeParams(formParams);for(var key in _formParams){if(_formParams.hasOwnProperty(key)){// Looks like axios handles files and forms the same way
6776
6794
  var formData=new FormData();formData.set(key,_formParams[key]);request.setData(formData);}}}else if(bodyParam){request.setData(bodyParam);}var accept=that.jsonPreferredMime(accepts);if(accept){request.headers['Accept']=accept;}var httpClient=that.getHttpClient();httpClient.request(request).then(function(response){// Build response object
@@ -6780,7 +6798,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
6780
6798
  that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
6781
6799
  * AgentAssistants service.
6782
6800
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
6783
- * @version 214.0.0
6801
+ * @version 215.0.0
6784
6802
  *//**
6785
6803
  * Constructs a new AgentAssistantsApi.
6786
6804
  * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -6881,7 +6899,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
6881
6899
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','PUT',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
6882
6900
  * AgentCopilot service.
6883
6901
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
6884
- * @version 214.0.0
6902
+ * @version 215.0.0
6885
6903
  *//**
6886
6904
  * Constructs a new AgentCopilotApi.
6887
6905
  * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -6903,7 +6921,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6903
6921
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
6904
6922
  * AgentUI service.
6905
6923
  * @module purecloud-platform-client-v2/api/AgentUIApi
6906
- * @version 214.0.0
6924
+ * @version 215.0.0
6907
6925
  *//**
6908
6926
  * Constructs a new AgentUIApi.
6909
6927
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -6937,7 +6955,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
6937
6955
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
6938
6956
  * Alerting service.
6939
6957
  * @module purecloud-platform-client-v2/api/AlertingApi
6940
- * @version 214.0.0
6958
+ * @version 215.0.0
6941
6959
  *//**
6942
6960
  * Constructs a new AlertingApi.
6943
6961
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -7102,7 +7120,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
7102
7120
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
7103
7121
  * Analytics service.
7104
7122
  * @module purecloud-platform-client-v2/api/AnalyticsApi
7105
- * @version 214.0.0
7123
+ * @version 215.0.0
7106
7124
  *//**
7107
7125
  * Constructs a new AnalyticsApi.
7108
7126
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -7774,7 +7792,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7774
7792
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
7775
7793
  * Architect service.
7776
7794
  * @module purecloud-platform-client-v2/api/ArchitectApi
7777
- * @version 214.0.0
7795
+ * @version 215.0.0
7778
7796
  *//**
7779
7797
  * Constructs a new ArchitectApi.
7780
7798
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -8866,7 +8884,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
8866
8884
  if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
8867
8885
  * Audit service.
8868
8886
  * @module purecloud-platform-client-v2/api/AuditApi
8869
- * @version 214.0.0
8887
+ * @version 215.0.0
8870
8888
  *//**
8871
8889
  * Constructs a new AuditApi.
8872
8890
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -8916,7 +8934,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8916
8934
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
8917
8935
  * Authorization service.
8918
8936
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8919
- * @version 214.0.0
8937
+ * @version 215.0.0
8920
8938
  *//**
8921
8939
  * Constructs a new AuthorizationApi.
8922
8940
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -9239,7 +9257,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
9239
9257
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
9240
9258
  * Billing service.
9241
9259
  * @module purecloud-platform-client-v2/api/BillingApi
9242
- * @version 214.0.0
9260
+ * @version 215.0.0
9243
9261
  *//**
9244
9262
  * Constructs a new BillingApi.
9245
9263
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -9263,7 +9281,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
9263
9281
  if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
9264
9282
  * CarrierServices service.
9265
9283
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
9266
- * @version 214.0.0
9284
+ * @version 215.0.0
9267
9285
  *//**
9268
9286
  * Constructs a new CarrierServicesApi.
9269
9287
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -9283,7 +9301,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
9283
9301
  */},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
9284
9302
  * Chat service.
9285
9303
  * @module purecloud-platform-client-v2/api/ChatApi
9286
- * @version 214.0.0
9304
+ * @version 215.0.0
9287
9305
  *//**
9288
9306
  * Constructs a new ChatApi.
9289
9307
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -9508,7 +9526,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9508
9526
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
9509
9527
  * Coaching service.
9510
9528
  * @module purecloud-platform-client-v2/api/CoachingApi
9511
- * @version 214.0.0
9529
+ * @version 215.0.0
9512
9530
  *//**
9513
9531
  * Constructs a new CoachingApi.
9514
9532
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -9661,7 +9679,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9661
9679
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
9662
9680
  * ContentManagement service.
9663
9681
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9664
- * @version 214.0.0
9682
+ * @version 215.0.0
9665
9683
  *//**
9666
9684
  * Constructs a new ContentManagementApi.
9667
9685
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -9943,7 +9961,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
9943
9961
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
9944
9962
  * Conversations service.
9945
9963
  * @module purecloud-platform-client-v2/api/ConversationsApi
9946
- * @version 214.0.0
9964
+ * @version 215.0.0
9947
9965
  *//**
9948
9966
  * Constructs a new ConversationsApi.
9949
9967
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -11690,7 +11708,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
11690
11708
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
11691
11709
  * DataExtensions service.
11692
11710
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
11693
- * @version 214.0.0
11711
+ * @version 215.0.0
11694
11712
  *//**
11695
11713
  * Constructs a new DataExtensionsApi.
11696
11714
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -11711,7 +11729,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
11711
11729
  */},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
11712
11730
  * DataPrivacy service.
11713
11731
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
11714
- * @version 214.0.0
11732
+ * @version 215.0.0
11715
11733
  *//**
11716
11734
  * Constructs a new DataPrivacyApi.
11717
11735
  * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -11751,7 +11769,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11751
11769
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';}return this.apiClient.callApi('/api/v2/dataprivacy/maskingrules/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
11752
11770
  * Downloads service.
11753
11771
  * @module purecloud-platform-client-v2/api/DownloadsApi
11754
- * @version 214.0.0
11772
+ * @version 215.0.0
11755
11773
  *//**
11756
11774
  * Constructs a new DownloadsApi.
11757
11775
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -11770,7 +11788,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11770
11788
  if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
11771
11789
  * Emails service.
11772
11790
  * @module purecloud-platform-client-v2/api/EmailsApi
11773
- * @version 214.0.0
11791
+ * @version 215.0.0
11774
11792
  *//**
11775
11793
  * Constructs a new EmailsApi.
11776
11794
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -11788,7 +11806,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
11788
11806
  */},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
11789
11807
  * EmployeeEngagement service.
11790
11808
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
11791
- * @version 214.0.0
11809
+ * @version 215.0.0
11792
11810
  *//**
11793
11811
  * Constructs a new EmployeeEngagementApi.
11794
11812
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -11826,7 +11844,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11826
11844
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';}return this.apiClient.callApi('/api/v2/employeeengagement/recognitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
11827
11845
  * Events service.
11828
11846
  * @module purecloud-platform-client-v2/api/EventsApi
11829
- * @version 214.0.0
11847
+ * @version 215.0.0
11830
11848
  *//**
11831
11849
  * Constructs a new EventsApi.
11832
11850
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -11851,7 +11869,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11851
11869
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
11852
11870
  * ExternalContacts service.
11853
11871
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
11854
- * @version 214.0.0
11872
+ * @version 215.0.0
11855
11873
  *//**
11856
11874
  * Constructs a new ExternalContactsApi.
11857
11875
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -12443,7 +12461,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
12443
12461
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
12444
12462
  * Fax service.
12445
12463
  * @module purecloud-platform-client-v2/api/FaxApi
12446
- * @version 214.0.0
12464
+ * @version 215.0.0
12447
12465
  *//**
12448
12466
  * Constructs a new FaxApi.
12449
12467
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -12492,7 +12510,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12492
12510
  */},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
12493
12511
  * Flows service.
12494
12512
  * @module purecloud-platform-client-v2/api/FlowsApi
12495
- * @version 214.0.0
12513
+ * @version 215.0.0
12496
12514
  *//**
12497
12515
  * Constructs a new FlowsApi.
12498
12516
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -12540,7 +12558,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12540
12558
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
12541
12559
  * Gamification service.
12542
12560
  * @module purecloud-platform-client-v2/api/GamificationApi
12543
- * @version 214.0.0
12561
+ * @version 215.0.0
12544
12562
  *//**
12545
12563
  * Constructs a new GamificationApi.
12546
12564
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -13099,7 +13117,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13099
13117
  if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
13100
13118
  * GeneralDataProtectionRegulation service.
13101
13119
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
13102
- * @version 214.0.0
13120
+ * @version 215.0.0
13103
13121
  *//**
13104
13122
  * Constructs a new GeneralDataProtectionRegulationApi.
13105
13123
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -13134,7 +13152,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
13134
13152
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
13135
13153
  * Geolocation service.
13136
13154
  * @module purecloud-platform-client-v2/api/GeolocationApi
13137
- * @version 214.0.0
13155
+ * @version 215.0.0
13138
13156
  *//**
13139
13157
  * Constructs a new GeolocationApi.
13140
13158
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -13168,7 +13186,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
13168
13186
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
13169
13187
  * Greetings service.
13170
13188
  * @module purecloud-platform-client-v2/api/GreetingsApi
13171
- * @version 214.0.0
13189
+ * @version 215.0.0
13172
13190
  *//**
13173
13191
  * Constructs a new GreetingsApi.
13174
13192
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -13275,7 +13293,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
13275
13293
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
13276
13294
  * Groups service.
13277
13295
  * @module purecloud-platform-client-v2/api/GroupsApi
13278
- * @version 214.0.0
13296
+ * @version 215.0.0
13279
13297
  *//**
13280
13298
  * Constructs a new GroupsApi.
13281
13299
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -13408,7 +13426,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
13408
13426
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
13409
13427
  * IdentityProvider service.
13410
13428
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
13411
- * @version 214.0.0
13429
+ * @version 215.0.0
13412
13430
  *//**
13413
13431
  * Constructs a new IdentityProviderApi.
13414
13432
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -13564,7 +13582,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13564
13582
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
13565
13583
  * InfrastructureAsCode service.
13566
13584
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
13567
- * @version 214.0.0
13585
+ * @version 215.0.0
13568
13586
  *//**
13569
13587
  * Constructs a new InfrastructureAsCodeApi.
13570
13588
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -13618,7 +13636,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
13618
13636
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
13619
13637
  * Integrations service.
13620
13638
  * @module purecloud-platform-client-v2/api/IntegrationsApi
13621
- * @version 214.0.0
13639
+ * @version 215.0.0
13622
13640
  *//**
13623
13641
  * Constructs a new IntegrationsApi.
13624
13642
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -14248,7 +14266,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
14248
14266
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
14249
14267
  * Journey service.
14250
14268
  * @module purecloud-platform-client-v2/api/JourneyApi
14251
- * @version 214.0.0
14269
+ * @version 215.0.0
14252
14270
  *//**
14253
14271
  * Constructs a new JourneyApi.
14254
14272
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -14725,7 +14743,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
14725
14743
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
14726
14744
  * Knowledge service.
14727
14745
  * @module purecloud-platform-client-v2/api/KnowledgeApi
14728
- * @version 214.0.0
14746
+ * @version 215.0.0
14729
14747
  *//**
14730
14748
  * Constructs a new KnowledgeApi.
14731
14749
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -15795,7 +15813,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
15795
15813
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
15796
15814
  * LanguageUnderstanding service.
15797
15815
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
15798
- * @version 214.0.0
15816
+ * @version 215.0.0
15799
15817
  *//**
15800
15818
  * Constructs a new LanguageUnderstandingApi.
15801
15819
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -16054,7 +16072,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
16054
16072
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
16055
16073
  * Languages service.
16056
16074
  * @module purecloud-platform-client-v2/api/LanguagesApi
16057
- * @version 214.0.0
16075
+ * @version 215.0.0
16058
16076
  *//**
16059
16077
  * Constructs a new LanguagesApi.
16060
16078
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -16109,7 +16127,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16109
16127
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
16110
16128
  * Learning service.
16111
16129
  * @module purecloud-platform-client-v2/api/LearningApi
16112
- * @version 214.0.0
16130
+ * @version 215.0.0
16113
16131
  *//**
16114
16132
  * Constructs a new LearningApi.
16115
16133
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -16380,7 +16398,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
16380
16398
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
16381
16399
  * License service.
16382
16400
  * @module purecloud-platform-client-v2/api/LicenseApi
16383
- * @version 214.0.0
16401
+ * @version 215.0.0
16384
16402
  *//**
16385
16403
  * Constructs a new LicenseApi.
16386
16404
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -16434,7 +16452,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
16434
16452
  */},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
16435
16453
  * Locations service.
16436
16454
  * @module purecloud-platform-client-v2/api/LocationsApi
16437
- * @version 214.0.0
16455
+ * @version 215.0.0
16438
16456
  *//**
16439
16457
  * Constructs a new LocationsApi.
16440
16458
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -16493,7 +16511,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16493
16511
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
16494
16512
  * LogCapture service.
16495
16513
  * @module purecloud-platform-client-v2/api/LogCaptureApi
16496
- * @version 214.0.0
16514
+ * @version 215.0.0
16497
16515
  *//**
16498
16516
  * Constructs a new LogCaptureApi.
16499
16517
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -16543,7 +16561,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16543
16561
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
16544
16562
  * Messaging service.
16545
16563
  * @module purecloud-platform-client-v2/api/MessagingApi
16546
- * @version 214.0.0
16564
+ * @version 215.0.0
16547
16565
  *//**
16548
16566
  * Constructs a new MessagingApi.
16549
16567
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -16633,7 +16651,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16633
16651
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
16634
16652
  * MobileDevices service.
16635
16653
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
16636
- * @version 214.0.0
16654
+ * @version 215.0.0
16637
16655
  *//**
16638
16656
  * Constructs a new MobileDevicesApi.
16639
16657
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -16672,7 +16690,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16672
16690
  if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
16673
16691
  * Notifications service.
16674
16692
  * @module purecloud-platform-client-v2/api/NotificationsApi
16675
- * @version 214.0.0
16693
+ * @version 215.0.0
16676
16694
  *//**
16677
16695
  * Constructs a new NotificationsApi.
16678
16696
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -16729,7 +16747,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
16729
16747
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
16730
16748
  * OAuth service.
16731
16749
  * @module purecloud-platform-client-v2/api/OAuthApi
16732
- * @version 214.0.0
16750
+ * @version 215.0.0
16733
16751
  *//**
16734
16752
  * Constructs a new OAuthApi.
16735
16753
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -16814,7 +16832,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
16814
16832
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
16815
16833
  * Objects service.
16816
16834
  * @module purecloud-platform-client-v2/api/ObjectsApi
16817
- * @version 214.0.0
16835
+ * @version 215.0.0
16818
16836
  *//**
16819
16837
  * Constructs a new ObjectsApi.
16820
16838
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -16885,7 +16903,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
16885
16903
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
16886
16904
  * OperationalEvents service.
16887
16905
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
16888
- * @version 214.0.0
16906
+ * @version 215.0.0
16889
16907
  *//**
16890
16908
  * Constructs a new OperationalEventsApi.
16891
16909
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -16916,7 +16934,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
16916
16934
  */},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
16917
16935
  * Organization service.
16918
16936
  * @module purecloud-platform-client-v2/api/OrganizationApi
16919
- * @version 214.0.0
16937
+ * @version 215.0.0
16920
16938
  *//**
16921
16939
  * Constructs a new OrganizationApi.
16922
16940
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -17041,7 +17059,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17041
17059
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
17042
17060
  * OrganizationAuthorization service.
17043
17061
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
17044
- * @version 214.0.0
17062
+ * @version 215.0.0
17045
17063
  *//**
17046
17064
  * Constructs a new OrganizationAuthorizationApi.
17047
17065
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -17375,7 +17393,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
17375
17393
  if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
17376
17394
  * Outbound service.
17377
17395
  * @module purecloud-platform-client-v2/api/OutboundApi
17378
- * @version 214.0.0
17396
+ * @version 215.0.0
17379
17397
  *//**
17380
17398
  * Constructs a new OutboundApi.
17381
17399
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -18486,7 +18504,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18486
18504
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';}return this.apiClient.callApi('/api/v2/outbound/wrapupcodemappings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
18487
18505
  * Presence service.
18488
18506
  * @module purecloud-platform-client-v2/api/PresenceApi
18489
- * @version 214.0.0
18507
+ * @version 215.0.0
18490
18508
  *//**
18491
18509
  * Constructs a new PresenceApi.
18492
18510
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -18659,7 +18677,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18659
18677
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersPresencesBulk';}return this.apiClient.callApi('/api/v2/users/presences/bulk','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
18660
18678
  * ProcessAutomation service.
18661
18679
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
18662
- * @version 214.0.0
18680
+ * @version 215.0.0
18663
18681
  *//**
18664
18682
  * Constructs a new ProcessAutomationApi.
18665
18683
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -18722,7 +18740,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
18722
18740
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','PUT',{'triggerId':triggerId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
18723
18741
  * Quality service.
18724
18742
  * @module purecloud-platform-client-v2/api/QualityApi
18725
- * @version 214.0.0
18743
+ * @version 215.0.0
18726
18744
  *//**
18727
18745
  * Constructs a new QualityApi.
18728
18746
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -19201,7 +19219,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
19201
19219
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putQualitySurveysScorable';}return this.apiClient.callApi('/api/v2/quality/surveys/scorable','PUT',{},{'customerSurveyUrl':customerSurveyUrl},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
19202
19220
  * Recording service.
19203
19221
  * @module purecloud-platform-client-v2/api/RecordingApi
19204
- * @version 214.0.0
19222
+ * @version 215.0.0
19205
19223
  *//**
19206
19224
  * Constructs a new RecordingApi.
19207
19225
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -19613,7 +19631,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19613
19631
  */},{key:"putRecordingsDeletionprotection",value:function putRecordingsDeletionprotection(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/deletionprotection','PUT',{},{'protect':opts['protect']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
19614
19632
  * ResponseManagement service.
19615
19633
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
19616
- * @version 214.0.0
19634
+ * @version 215.0.0
19617
19635
  *//**
19618
19636
  * Constructs a new ResponseManagementApi.
19619
19637
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -19734,7 +19752,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
19734
19752
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';}return this.apiClient.callApi('/api/v2/responsemanagement/responseassets/{responseAssetId}','PUT',{'responseAssetId':responseAssetId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
19735
19753
  * Routing service.
19736
19754
  * @module purecloud-platform-client-v2/api/RoutingApi
19737
- * @version 214.0.0
19755
+ * @version 215.0.0
19738
19756
  *//**
19739
19757
  * Constructs a new RoutingApi.
19740
19758
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -20733,7 +20751,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
20733
20751
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/bulk','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
20734
20752
  * SCIM service.
20735
20753
  * @module purecloud-platform-client-v2/api/SCIMApi
20736
- * @version 214.0.0
20754
+ * @version 215.0.0
20737
20755
  *//**
20738
20756
  * Constructs a new SCIMApi.
20739
20757
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -20958,7 +20976,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
20958
20976
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putScimV2User';}return this.apiClient.callApi('/api/v2/scim/v2/users/{userId}','PUT',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},body,['PureCloud OAuth'],['application/scim+json','application/json'],['application/scim+json','application/json']);}}]);}();var ScreenRecordingApi=/*#__PURE__*/function(){/**
20959
20977
  * ScreenRecording service.
20960
20978
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
20961
- * @version 214.0.0
20979
+ * @version 215.0.0
20962
20980
  *//**
20963
20981
  * Constructs a new ScreenRecordingApi.
20964
20982
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -20973,7 +20991,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20973
20991
  */return _createClass(ScreenRecordingApi,[{key:"postScreenrecordingToken",value:function postScreenrecordingToken(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/screenrecording/token','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
20974
20992
  * Scripts service.
20975
20993
  * @module purecloud-platform-client-v2/api/ScriptsApi
20976
- * @version 214.0.0
20994
+ * @version 215.0.0
20977
20995
  *//**
20978
20996
  * Constructs a new ScriptsApi.
20979
20997
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -21109,7 +21127,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
21109
21127
  */},{key:"postScriptsPublished",value:function postScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','POST',{},{'scriptDataVersion':opts['scriptDataVersion']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
21110
21128
  * Search service.
21111
21129
  * @module purecloud-platform-client-v2/api/SearchApi
21112
- * @version 214.0.0
21130
+ * @version 215.0.0
21113
21131
  *//**
21114
21132
  * Constructs a new SearchApi.
21115
21133
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -21281,7 +21299,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21281
21299
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
21282
21300
  * Settings service.
21283
21301
  * @module purecloud-platform-client-v2/api/SettingsApi
21284
- * @version 214.0.0
21302
+ * @version 215.0.0
21285
21303
  *//**
21286
21304
  * Constructs a new SettingsApi.
21287
21305
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -21331,7 +21349,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
21331
21349
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
21332
21350
  * SocialMedia service.
21333
21351
  * @module purecloud-platform-client-v2/api/SocialMediaApi
21334
- * @version 214.0.0
21352
+ * @version 215.0.0
21335
21353
  *//**
21336
21354
  * Constructs a new SocialMediaApi.
21337
21355
  * @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -21596,7 +21614,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
21596
21614
  if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
21597
21615
  * SpeechTextAnalytics service.
21598
21616
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
21599
- * @version 214.0.0
21617
+ * @version 215.0.0
21600
21618
  *//**
21601
21619
  * Constructs a new SpeechTextAnalyticsApi.
21602
21620
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -21919,7 +21937,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
21919
21937
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','PUT',{'topicId':topicId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
21920
21938
  * Stations service.
21921
21939
  * @module purecloud-platform-client-v2/api/StationsApi
21922
- * @version 214.0.0
21940
+ * @version 215.0.0
21923
21941
  *//**
21924
21942
  * Constructs a new StationsApi.
21925
21943
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -21951,7 +21969,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
21951
21969
  */},{key:"getStations",value:function getStations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/stations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'name':opts['name'],'userSelectable':opts['userSelectable'],'webRtcUserId':opts['webRtcUserId'],'id':opts['id'],'lineAppearanceId':opts['lineAppearanceId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
21952
21970
  * Suggest service.
21953
21971
  * @module purecloud-platform-client-v2/api/SuggestApi
21954
- * @version 214.0.0
21972
+ * @version 215.0.0
21955
21973
  *//**
21956
21974
  * Constructs a new SuggestApi.
21957
21975
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -21991,7 +22009,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21991
22009
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','POST',{},{'profile':opts['profile']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
21992
22010
  * TaskManagement service.
21993
22011
  * @module purecloud-platform-client-v2/api/TaskManagementApi
21994
- * @version 214.0.0
22012
+ * @version 215.0.0
21995
22013
  *//**
21996
22014
  * Constructs a new TaskManagementApi.
21997
22015
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -22497,7 +22515,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
22497
22515
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
22498
22516
  * Teams service.
22499
22517
  * @module purecloud-platform-client-v2/api/TeamsApi
22500
- * @version 214.0.0
22518
+ * @version 215.0.0
22501
22519
  *//**
22502
22520
  * Constructs a new TeamsApi.
22503
22521
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -22577,7 +22595,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22577
22595
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTeamsSearch';}return this.apiClient.callApi('/api/v2/teams/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
22578
22596
  * Telephony service.
22579
22597
  * @module purecloud-platform-client-v2/api/TelephonyApi
22580
- * @version 214.0.0
22598
+ * @version 215.0.0
22581
22599
  *//**
22582
22600
  * Constructs a new TelephonyApi.
22583
22601
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -22624,7 +22642,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
22624
22642
  if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
22625
22643
  * TelephonyProvidersEdge service.
22626
22644
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
22627
- * @version 214.0.0
22645
+ * @version 215.0.0
22628
22646
  *//**
22629
22647
  * Constructs a new TelephonyProvidersEdgeApi.
22630
22648
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -23459,7 +23477,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
23459
23477
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}','PUT',{'trunkBaseSettingsId':trunkBaseSettingsId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
23460
23478
  * Textbots service.
23461
23479
  * @module purecloud-platform-client-v2/api/TextbotsApi
23462
- * @version 214.0.0
23480
+ * @version 215.0.0
23463
23481
  *//**
23464
23482
  * Constructs a new TextbotsApi.
23465
23483
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -23494,7 +23512,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
23494
23512
  if(postTextRequest===undefined||postTextRequest===null){throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';}return this.apiClient.callApi('/api/v2/textbots/bots/execute','POST',{},{},{},{},postTextRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
23495
23513
  * Tokens service.
23496
23514
  * @module purecloud-platform-client-v2/api/TokensApi
23497
- * @version 214.0.0
23515
+ * @version 215.0.0
23498
23516
  *//**
23499
23517
  * Constructs a new TokensApi.
23500
23518
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -23528,7 +23546,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
23528
23546
  */},{key:"putTokensTimeout",value:function putTokensTimeout(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/tokens/timeout','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
23529
23547
  * Uploads service.
23530
23548
  * @module purecloud-platform-client-v2/api/UploadsApi
23531
- * @version 214.0.0
23549
+ * @version 215.0.0
23532
23550
  *//**
23533
23551
  * Constructs a new UploadsApi.
23534
23552
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -23593,7 +23611,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23593
23611
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';}return this.apiClient.callApi('/api/v2/uploads/workforcemanagement/historicaldata/csv','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
23594
23612
  * Usage service.
23595
23613
  * @module purecloud-platform-client-v2/api/UsageApi
23596
- * @version 214.0.0
23614
+ * @version 215.0.0
23597
23615
  *//**
23598
23616
  * Constructs a new UsageApi.
23599
23617
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -23647,7 +23665,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23647
23665
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageSimplesearch';}return this.apiClient.callApi('/api/v2/usage/simplesearch','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
23648
23666
  * UserRecordings service.
23649
23667
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
23650
- * @version 214.0.0
23668
+ * @version 215.0.0
23651
23669
  *//**
23652
23670
  * Constructs a new UserRecordingsApi.
23653
23671
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -23704,7 +23722,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
23704
23722
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','PUT',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
23705
23723
  * Users service.
23706
23724
  * @module purecloud-platform-client-v2/api/UsersApi
23707
- * @version 214.0.0
23725
+ * @version 215.0.0
23708
23726
  *//**
23709
23727
  * Constructs a new UsersApi.
23710
23728
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -24431,7 +24449,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
24431
24449
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
24432
24450
  * Utilities service.
24433
24451
  * @module purecloud-platform-client-v2/api/UtilitiesApi
24434
- * @version 214.0.0
24452
+ * @version 215.0.0
24435
24453
  *//**
24436
24454
  * Constructs a new UtilitiesApi.
24437
24455
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -24458,7 +24476,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24458
24476
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCertificateDetails';}return this.apiClient.callApi('/api/v2/certificate/details','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
24459
24477
  * Voicemail service.
24460
24478
  * @module purecloud-platform-client-v2/api/VoicemailApi
24461
- * @version 214.0.0
24479
+ * @version 215.0.0
24462
24480
  *//**
24463
24481
  * Constructs a new VoicemailApi.
24464
24482
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -24620,7 +24638,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
24620
24638
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';}return this.apiClient.callApi('/api/v2/voicemail/userpolicies/{userId}','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
24621
24639
  * WebChat service.
24622
24640
  * @module purecloud-platform-client-v2/api/WebChatApi
24623
- * @version 214.0.0
24641
+ * @version 215.0.0
24624
24642
  *//**
24625
24643
  * Constructs a new WebChatApi.
24626
24644
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -24755,7 +24773,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24755
24773
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebchatSettings';}return this.apiClient.callApi('/api/v2/webchat/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
24756
24774
  * WebDeployments service.
24757
24775
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
24758
- * @version 214.0.0
24776
+ * @version 215.0.0
24759
24777
  *//**
24760
24778
  * Constructs a new WebDeploymentsApi.
24761
24779
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -24876,7 +24894,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
24876
24894
  if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
24877
24895
  * WebMessaging service.
24878
24896
  * @module purecloud-platform-client-v2/api/WebMessagingApi
24879
- * @version 214.0.0
24897
+ * @version 215.0.0
24880
24898
  *//**
24881
24899
  * Constructs a new WebMessagingApi.
24882
24900
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -24892,7 +24910,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
24892
24910
  */return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
24893
24911
  * Widgets service.
24894
24912
  * @module purecloud-platform-client-v2/api/WidgetsApi
24895
- * @version 214.0.0
24913
+ * @version 215.0.0
24896
24914
  *//**
24897
24915
  * Constructs a new WidgetsApi.
24898
24916
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -24927,7 +24945,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
24927
24945
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
24928
24946
  * WorkforceManagement service.
24929
24947
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
24930
- * @version 214.0.0
24948
+ * @version 215.0.0
24931
24949
  *//**
24932
24950
  * Constructs a new WorkforceManagementApi.
24933
24951
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -26733,7 +26751,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
26733
26751
  * </pre>
26734
26752
  * </p>
26735
26753
  * @module purecloud-platform-client-v2/index
26736
- * @version 214.0.0
26754
+ * @version 215.0.0
26737
26755
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
26738
26756
  * The ApiClient constructor.
26739
26757
  * @property {module:purecloud-platform-client-v2/ApiClient}