purecloud-platform-client-v2 219.0.0 → 221.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 (92) hide show
  1. package/README.md +4 -4
  2. package/dist/node/purecloud-platform-client-v2.js +1378 -144
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1378 -144
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +495 -184
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +495 -184
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1596 -766
  9. package/package.json +2 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +4 -5
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +177 -1
  20. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +919 -0
  21. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ChatApi.js +7 -3
  23. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +71 -8
  26. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +4 -19
  33. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -3
  64. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/RoutingApi.js +19 -14
  66. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +33 -1
  69. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SettingsApi.js +65 -1
  71. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -3
  73. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -10
  76. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +3 -3
  80. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -3
  89. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -5564,7 +5564,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
5564
5564
  }).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
5565
5565
  },{"process/browser.js":43,"timers":53}],"platformClient":[function(require,module,exports){
5566
5566
  (function (global,Buffer,setImmediate){(function (){
5567
- 'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
5567
+ 'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return r;};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,r,e,n){return Object.defineProperty(t,r,{value:e,enumerable:!n,configurable:!n,writable:!n});}try{c({},"");}catch(t){c=function c(t,r,e){return t[r]=e;};}function h(r,e,n,o){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype);return c(a,"_invoke",function(r,e,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=d(u,n);if(c){if(c===f)continue;return c;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var h=s(r,e,n);if("normal"===h.type){if(o=n.done?4:2,h.arg===f)continue;return{value:h.arg,done:n.done};}"throw"===h.type&&(o=4,n.method="throw",n.arg=h.arg);}};}(r,n,new Context(o||[])),!0),a;}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)};}catch(t){return{type:"throw",arg:t};}}r.wrap=h;var f={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var l={};c(l,i,function(){return this;});var p=Object.getPrototypeOf,y=p&&p(p(x([])));y&&y!==e&&n.call(y,i)&&(l=y);var v=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(l);function g(t){["next","throw","return"].forEach(function(r){c(t,r,function(t){return this._invoke(r,t);});});}function AsyncIterator(t,r){function e(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"==_typeof(f)&&n.call(f,"__await")?r.resolve(f.__await).then(function(t){e("next",t,a,u);},function(t){e("throw",t,a,u);}):r.resolve(f).then(function(t){h.value=t,a(h);},function(t){return e("throw",t,a,u);});}u(c.arg);}var o;c(this,"_invoke",function(t,n){function i(){return new r(function(r,o){e(t,n,r,o);});}return o=o?o.then(i,i):i();},!0);}function d(r,e){var n=e.method,o=r.i[n];if(o===t)return e.delegate=null,"throw"===n&&r.i["return"]&&(e.method="return",e.arg=t,d(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=s(o,r.i,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var a=i.arg;return a?a.done?(e[r.r]=a.value,e.next=r.n,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f);}function w(t){this.tryEntries.push(t);}function m(r){var e=r[4]||{};e.type="normal",e.arg=t,r[4]=e;}function Context(t){this.tryEntries=[[-1]],t.forEach(w,this),this.reset(!0);}function x(r){if(null!=r){var e=r[i];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e;};return a.next=a;}}throw new TypeError(_typeof(r)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(v,"constructor",GeneratorFunctionPrototype),c(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=c(GeneratorFunctionPrototype,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name));},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,c(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t;},r.awrap=function(t){return{__await:t};},g(AsyncIterator.prototype),c(AsyncIterator.prototype,a,function(){return this;}),r.AsyncIterator=AsyncIterator,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next();});},g(v),c(v,u,"Generator"),c(v,i,function(){return this;}),c(v,"toString",function(){return"[object Generator]";}),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.unshift(n);return function t(){for(;e.length;)if((n=e.pop())in r)return t.value=n,t.done=!1,t;return t.done=!0,t;};},r.values=x,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(m),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(r){if(this.done)throw r;var e=this;function n(t){a.type="throw",a.arg=r,e.next=t;}for(var o=e.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],h=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!h)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<h)return n(h),!1;}}},abrupt:function abrupt(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break;}}o&&("break"===t||"continue"===t)&&o[0]<=r&&r<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=r,o?(this.method="next",this.next=o[2],f):this.complete(i);},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),f;},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e[2]===t)return this.complete(e[4],e[3]),m(e),f;}},"catch":function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e[0]===t){var n=e[4];if("throw"===n.type){var o=n.arg;m(e);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(r,e,n){return this.delegate={i:x(r),r:e,n:n},"next"===this.method&&(this.arg=t),f;}},r;}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
5568
5568
  // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
5569
5569
  function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
5570
5570
  return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
@@ -5583,7 +5583,7 @@ var versions={};var release={};var config={};function noop$1(){}var on=noop$1;va
5583
5583
  var performance=global$1.performance||{};var performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return new Date().getTime();};// generate timestamp or delta
5584
5584
  // see http://nodejs.org/api/process.html#process_process_hrtime
5585
5585
  function hrtime(previousTimestamp){var clocktime=performanceNow.call(performance)*1e-3;var seconds=Math.floor(clocktime);var nanoseconds=Math.floor(clocktime%1*1e9);if(previousTimestamp){seconds=seconds-previousTimestamp[0];nanoseconds=nanoseconds-previousTimestamp[1];if(nanoseconds<0){seconds--;nanoseconds+=1e9;}}return[seconds,nanoseconds];}var startTime=new Date();function uptime(){var currentTime=new Date();var dif=currentTime-startTime;return dif/1000;}var process={nextTick:nextTick,title:title,browser:browser,env:env,argv:argv,version:version,versions:versions,on:on,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform$2,release:release,config:config,uptime:uptime};function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};}// utils is a library of generic helper functions non-specific to axios
5586
- var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;var kindOf=function(cache){return function(thing){var str=toString$1.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase());};}(Object.create(null));var kindOfTest=function kindOfTest(type){type=type.toLowerCase();return function(thing){return kindOf(thing)===type;};};var typeOfTest=function typeOfTest(type){return function(thing){return _typeof(thing)===type;};};/**
5586
+ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;var iterator=Symbol.iterator,toStringTag=Symbol.toStringTag;var kindOf=function(cache){return function(thing){var str=toString$1.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase());};}(Object.create(null));var kindOfTest=function kindOfTest(type){type=type.toLowerCase();return function(thing){return kindOf(thing)===type;};};var typeOfTest=function typeOfTest(type){return function(thing){return _typeof(thing)===type;};};/**
5587
5587
  * Determine if a value is an Array
5588
5588
  *
5589
5589
  * @param {Object} val The value to test
@@ -5647,7 +5647,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
5647
5647
  * @param {*} val The value to test
5648
5648
  *
5649
5649
  * @returns {boolean} True if value is a plain Object, otherwise false
5650
- */var isPlainObject=function isPlainObject(val){if(kindOf(val)!=='object'){return false;}var prototype=getPrototypeOf(val);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(Symbol.toStringTag in val)&&!(Symbol.iterator in val);};/**
5650
+ */var isPlainObject=function isPlainObject(val){if(kindOf(val)!=='object'){return false;}var prototype=getPrototypeOf(val);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(toStringTag in val)&&!(iterator in val);};/**
5651
5651
  * Determine if a value is a Date
5652
5652
  *
5653
5653
  * @param {*} val The value to test
@@ -5793,7 +5793,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
5793
5793
  * @param {Function} fn - The function to call for each entry.
5794
5794
  *
5795
5795
  * @returns {void}
5796
- */var forEachEntry=function forEachEntry(obj,fn){var generator=obj&&obj[Symbol.iterator];var iterator=generator.call(obj);var result;while((result=iterator.next())&&!result.done){var pair=result.value;fn.call(obj,pair[0],pair[1]);}};/**
5796
+ */var forEachEntry=function forEachEntry(obj,fn){var generator=obj&&obj[iterator];var _iterator=generator.call(obj);var result;while((result=_iterator.next())&&!result.done){var pair=result.value;fn.call(obj,pair[0],pair[1]);}};/**
5797
5797
  * It takes a regular expression and a string, and returns an array of all the matches
5798
5798
  *
5799
5799
  * @param {string} regExp - The regular expression to match against.
@@ -5816,11 +5816,11 @@ if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return f
5816
5816
  * @param {unknown} thing - The thing to check.
5817
5817
  *
5818
5818
  * @returns {boolean}
5819
- */function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};// original code
5819
+ */function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};// original code
5820
5820
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
5821
5821
  var _setImmediate=function(setImmediateSupported,postMessageSupported){if(setImmediateSupported){return setImmediate;}return postMessageSupported?function(token,callbacks){_global.addEventListener("message",function(_ref7){var source=_ref7.source,data=_ref7.data;if(source===_global&&data===token){callbacks.length&&callbacks.shift()();}},false);return function(cb){callbacks.push(cb);_global.postMessage(token,"*");};}("axios@".concat(Math.random()),[]):function(cb){return setTimeout(cb);};}(typeof setImmediate==='function',isFunction(_global.postMessage));var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
5822
- var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
5823
- reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
5822
+ var isIterable=function isIterable(thing){return thing!=null&&isFunction(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
5823
+ reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
5824
5824
  // if there are two placeholders, than the two characters before it
5825
5825
  // represent one byte
5826
5826
  // if there is only one, then the three characters before it represent 2 bytes
@@ -6184,8 +6184,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
6184
6184
  * @param {String} rawHeaders Headers needing to be parsed
6185
6185
  *
6186
6186
  * @returns {Object} Headers parsed into an object
6187
- */var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
6188
- utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref10,key){var value=_ref10.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
6187
+ */var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isObject(header)&&utils$1.isIterable(header)){var obj={},dest,key;var _iterator3=_createForOfIteratorHelper(header),_step2;try{for(_iterator3.s();!(_step2=_iterator3.n()).done;){var entry=_step2.value;if(!utils$1.isArray(entry)){throw TypeError('Object iterator must return a key-value pair');}obj[key=entry[0]]=(dest=obj[key])?utils$1.isArray(dest)?[].concat(_toConsumableArray(dest),[entry[1]]):[dest,entry[1]]:entry[1];}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}setHeaders(obj,valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:"getSetCookie",value:function getSetCookie(){return this.get("set-cookie")||[];}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
6188
+ utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref0,key){var value=_ref0.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
6189
6189
  return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
6190
6190
  * Transform the data for a request or a response
6191
6191
  *
@@ -6263,7 +6263,7 @@ function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue
6263
6263
  function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url,newConfig.allowAbsoluteUrls),config.params,config.paramsSerializer);// HTTP basic authentication
6264
6264
  if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
6265
6265
  }else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
6266
- var _ref11=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref12=_toArray(_ref11),type=_ref12[0],tokens=_ref12.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
6266
+ var _ref1=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref10=_toArray(_ref1),type=_ref10[0],tokens=_ref10.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
6267
6267
  // This is only done if running in a standard browser environment.
6268
6268
  // Specifically not if we're in a web worker, or react-native.
6269
6269
  if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
@@ -6297,11 +6297,11 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
6297
6297
  if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventReducer(onUploadProgress);var _progressEventReducer4=_slicedToArray(_progressEventReducer3,2);uploadThrottled=_progressEventReducer4[0];flushUpload=_progressEventReducer4[1];request.upload.addEventListener('progress',uploadThrottled);request.upload.addEventListener('loadend',flushUpload);}if(_config.cancelToken||_config.signal){// Handle cancellation
6298
6298
  // eslint-disable-next-line func-names
6299
6299
  onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
6300
- request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(readStream(iterable));case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=12;break;}chunk=_step.value;return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator),"t0",9);case 9:_iteratorAbruptCompletion=false;_context2.next=4;break;case 12:_context2.next=18;break;case 14:_context2.prev=14;_context2.t1=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t1;case 18:_context2.prev=18;_context2.prev=19;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=23;break;}_context2.next=23;return _awaitAsyncGenerator(_iterator["return"]());case 23:_context2.prev=23;if(!_didIteratorError){_context2.next=26;break;}throw _iteratorError;case 26:return _context2.finish(23);case 27:return _context2.finish(18);case 28:case"end":return _context2.stop();}},_callee,null,[[2,14,18,28],[19,,23,27]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!stream[Symbol.asyncIterator]){_context3.next=3;break;}return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator),"t0",2);case 2:return _context3.abrupt("return");case 3:reader=stream.getReader();_context3.prev=4;case 5:_context3.next=7;return _awaitAsyncGenerator(reader.read());case 7:_yield$_awaitAsyncGen=_context3.sent;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.next=12;break;}return _context3.abrupt("break",16);case 12:_context3.next=14;return value;case 14:_context3.next=5;break;case 16:_context3.prev=16;_context3.next=19;return _awaitAsyncGenerator(reader.cancel());case 19:return _context3.finish(16);case 20:case"end":return _context3.stop();}},_callee2,null,[[4,,16,20]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return iterator.next();case 3:_yield$iterator$next=_context4.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.next=10;break;}_onFinish();controller.close();return _context4.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.next=19;break;case 15:_context4.prev=15;_context4.t0=_context4["catch"](0);_onFinish(_context4.t0);throw _context4.t0;case 19:case"end":return _context4.stop();}},_callee3,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
6301
- var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(str){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.t0=Uint8Array;_context5.next=3;return new Response(str).arrayBuffer();case 3:_context5.t1=_context5.sent;return _context5.abrupt("return",new _context5.t0(_context5.t1));case 5:case"end":return _context5.stop();}},_callee4);}));return function(_x4){return _ref13.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body){var _request;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(body==null)){_context6.next=2;break;}return _context6.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context6.next=4;break;}return _context6.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context6.next=9;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.next=8;return _request.arrayBuffer();case 8:return _context6.abrupt("return",_context6.sent.byteLength);case 9:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.next=11;break;}return _context6.abrupt("return",body.byteLength);case 11:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.next=16;break;}_context6.next=15;return encodeText(body);case 15:return _context6.abrupt("return",_context6.sent.byteLength);case 16:case"end":return _context6.stop();}},_callee5);}));return function getBodyLength(_x5){return _ref14.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(headers,body){var length;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context7.stop();}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref15.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref16=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref17,_ref18,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.prev=4;_context8.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context8.t0){_context8.next=11;break;}_context8.next=9;return resolveBodyLength(headers,data);case 9:_context8.t1=requestContentLength=_context8.sent;_context8.t0=_context8.t1!==0;case 11:if(!_context8.t0){_context8.next=15;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
6300
+ request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator2=_asyncIterator(readStream(iterable));case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator2.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=12;break;}chunk=_step.value;return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator),"t0",9);case 9:_iteratorAbruptCompletion=false;_context2.next=4;break;case 12:_context2.next=18;break;case 14:_context2.prev=14;_context2.t1=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t1;case 18:_context2.prev=18;_context2.prev=19;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.next=23;break;}_context2.next=23;return _awaitAsyncGenerator(_iterator2["return"]());case 23:_context2.prev=23;if(!_didIteratorError){_context2.next=26;break;}throw _iteratorError;case 26:return _context2.finish(23);case 27:return _context2.finish(18);case 28:case"end":return _context2.stop();}},_callee,null,[[2,14,18,28],[19,,23,27]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!stream[Symbol.asyncIterator]){_context3.next=3;break;}return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator),"t0",2);case 2:return _context3.abrupt("return");case 3:reader=stream.getReader();_context3.prev=4;case 5:_context3.next=7;return _awaitAsyncGenerator(reader.read());case 7:_yield$_awaitAsyncGen=_context3.sent;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.next=12;break;}return _context3.abrupt("break",16);case 12:_context3.next=14;return value;case 14:_context3.next=5;break;case 16:_context3.prev=16;_context3.next=19;return _awaitAsyncGenerator(reader.cancel());case 19:return _context3.finish(16);case 20:case"end":return _context3.stop();}},_callee2,null,[[4,,16,20]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return iterator.next();case 3:_yield$iterator$next=_context4.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.next=10;break;}_onFinish();controller.close();return _context4.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.next=19;break;case 15:_context4.prev=15;_context4.t0=_context4["catch"](0);_onFinish(_context4.t0);throw _context4.t0;case 19:case"end":return _context4.stop();}},_callee3,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
6301
+ var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(str){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.t0=Uint8Array;_context5.next=3;return new Response(str).arrayBuffer();case 3:_context5.t1=_context5.sent;return _context5.abrupt("return",new _context5.t0(_context5.t1));case 5:case"end":return _context5.stop();}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body){var _request;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(body==null)){_context6.next=2;break;}return _context6.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context6.next=4;break;}return _context6.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context6.next=9;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.next=8;return _request.arrayBuffer();case 8:return _context6.abrupt("return",_context6.sent.byteLength);case 9:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.next=11;break;}return _context6.abrupt("return",body.byteLength);case 11:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.next=16;break;}_context6.next=15;return encodeText(body);case 15:return _context6.abrupt("return",_context6.sent.byteLength);case 16:case"end":return _context6.stop();}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(headers,body){var length;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context7.stop();}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.prev=4;_context8.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context8.t0){_context8.next=11;break;}_context8.next=9;return resolveBodyLength(headers,data);case 9:_context8.t1=requestContentLength=_context8.sent;_context8.t0=_context8.t1!==0;case 11:if(!_context8.t0){_context8.next=15;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
6302
6302
  // see https://github.com/cloudflare/workerd/issues/902
6303
- isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref17=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref18=_slicedToArray(_ref17,2),_onProgress=_ref18[0],_flush=_ref18[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.next=26;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 26:responseData=_context8.sent;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context8.abrupt("return",_context8.sent);case 33:_context8.prev=33;_context8.t2=_context8["catch"](4);unsubscribe&&unsubscribe();if(!(_context8.t2&&_context8.t2.name==='TypeError'&&/fetch/i.test(_context8.t2.message))){_context8.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context8.t2.cause||_context8.t2});case 38:throw AxiosError.from(_context8.t2,_context8.t2&&_context8.t2.code,config,request);case 39:case"end":return _context8.stop();}},_callee7,null,[[4,33]]);}));return function(_x8){return _ref16.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
6304
- }Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref19){var _ref20=_slicedToArray(_ref19,2),id=_ref20[0],state=_ref20[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
6303
+ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref15=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref16=_slicedToArray(_ref15,2),_onProgress=_ref16[0],_flush=_ref16[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.next=26;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 26:responseData=_context8.sent;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context8.abrupt("return",_context8.sent);case 33:_context8.prev=33;_context8.t2=_context8["catch"](4);unsubscribe&&unsubscribe();if(!(_context8.t2&&_context8.t2.name==='TypeError'&&/Load failed|fetch/i.test(_context8.t2.message))){_context8.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context8.t2.cause||_context8.t2});case 38:throw AxiosError.from(_context8.t2,_context8.t2&&_context8.t2.code,config,request);case 39:case"end":return _context8.stop();}},_callee7,null,[[4,33]]);}));return function(_x8){return _ref14.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
6304
+ }Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref17){var _ref18=_slicedToArray(_ref17,2),id=_ref18[0],state=_ref18[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
6305
6305
  * Throws a `CanceledError` if cancellation has been requested.
6306
6306
  *
6307
6307
  * @param {Object} config The config that is to be used for the request
@@ -6316,7 +6316,7 @@ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url
6316
6316
  */function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
6317
6317
  config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
6318
6318
  response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
6319
- if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.8.4";var validators$1={};// eslint-disable-next-line func-names
6319
+ if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.9.0";var validators$1={};// eslint-disable-next-line func-names
6320
6320
  ['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
6321
6321
  * Transitional option validator
6322
6322
  *
@@ -6342,7 +6342,7 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
6342
6342
  * @param {Object} instanceConfig The default config for the instance
6343
6343
  *
6344
6344
  * @return {Axios} A new instance of Axios
6345
- */var Axios=/*#__PURE__*/function(){function Axios(instanceConfig){_classCallCheck(this,Axios);this.defaults=instanceConfig;this.interceptors={request:new InterceptorManager$1(),response:new InterceptorManager$1()};}/**
6345
+ */var Axios=/*#__PURE__*/function(){function Axios(instanceConfig){_classCallCheck(this,Axios);this.defaults=instanceConfig||{};this.interceptors={request:new InterceptorManager$1(),response:new InterceptorManager$1()};}/**
6346
6346
  * Dispatch a request
6347
6347
  *
6348
6348
  * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
@@ -6352,7 +6352,7 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
6352
6352
  */return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.prev=0;_context9.next=3;return this._request(configOrUrl,config);case 3:return _context9.abrupt("return",_context9.sent);case 6:_context9.prev=6;_context9.t0=_context9["catch"](0);if(_context9.t0 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
6353
6353
  stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context9.t0.stack){_context9.t0.stack=stack;// match without the 2 top stack lines
6354
6354
  }else if(stack&&!String(_context9.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context9.t0.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
6355
- }}throw _context9.t0;case 10:case"end":return _context9.stop();}},_callee8,this,[[0,6]]);}));function request(_x9,_x10){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/// Allow for axios('example/url'[, config]) a la fetch API
6355
+ }}throw _context9.t0;case 10:case"end":return _context9.stop();}},_callee8,this,[[0,6]]);}));function request(_x9,_x0){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/// Allow for axios('example/url'[, config]) a la fetch API
6356
6356
  if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else{config=configOrUrl||{};}config=mergeConfig(this.defaults,config);var _config2=config,transitional=_config2.transitional,paramsSerializer=_config2.paramsSerializer,headers=_config2.headers;if(transitional!==undefined){validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators["boolean"]),forcedJSONParsing:validators.transitional(validators["boolean"]),clarifyTimeoutError:validators.transitional(validators["boolean"])},false);}if(paramsSerializer!=null){if(utils$1.isFunction(paramsSerializer)){config.paramsSerializer={serialize:paramsSerializer};}else{validator.assertOptions(paramsSerializer,{encode:validators["function"],serialize:validators["function"]},true);}}// Set config.allowAbsoluteUrls
6357
6357
  if(config.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){config.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;}else{config.allowAbsoluteUrls=true;}validator.assertOptions(config,{baseUrl:validators.spelling('baseURL'),withXsrfToken:validators.spelling('withXSRFToken')},true);// Set config.method
6358
6358
  config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
@@ -6403,7 +6403,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
6403
6403
  * @param {*} payload The value to test
6404
6404
  *
6405
6405
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
6406
- */function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref21){var _ref22=_slicedToArray(_ref21,2),key=_ref22[0],value=_ref22[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
6406
+ */function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref19){var _ref20=_slicedToArray(_ref19,2),key=_ref20[0],value=_ref20[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
6407
6407
  * Create an instance of Axios
6408
6408
  *
6409
6409
  * @param {Object} defaultConfig The default config for the instance
@@ -6431,10 +6431,10 @@ var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function Abstra
6431
6431
  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
6432
6432
  },{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
6433
6433
  },{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
6434
- 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
6434
+ 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 _ref21=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(config){return _regeneratorRuntime().wrap(function _callee9$(_context0){while(1)switch(_context0.prev=_context0.next){case 0:_context0.next=2;return _this3.preHook(config);case 2:config=_context0.sent;return _context0.abrupt("return",config);case 4:case"end":return _context0.stop();}},_callee9);}));return function(_x1){return _ref21.apply(this,arguments);};}(),function(error){// Handle errors before the request is sent
6435
6435
  console.error('Request Pre-Hook Error:',error.message);return Promise.reject(error);});}if(this.postHook&&typeof this.postHook==='function'){// Response interceptor (for post-hooks)
6436
- 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
6437
- 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
6436
+ if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var _ref22=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(response){return _regeneratorRuntime().wrap(function _callee0$(_context1){while(1)switch(_context1.prev=_context1.next){case 0:_context1.next=2;return _this3.postHook(response);case 2:response=_context1.sent;return _context1.abrupt("return",response);case 4:case"end":return _context1.stop();}},_callee0);}));return function(_x10){return _ref22.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(error){return _regeneratorRuntime().wrap(function _callee1$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
6437
+ return _context10.abrupt("return",Promise.reject(error));case 2:case"end":return _context10.stop();}},_callee1);}));return function(_x11){return _ref23.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
6438
6438
  },{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:/**
6439
6439
  * Singleton getter
6440
6440
  */function get(){return Configuration.instance;}/**
@@ -6458,7 +6458,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
6458
6458
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
6459
6459
  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];}}}]);}();/**
6460
6460
  * @module purecloud-platform-client-v2/ApiClient
6461
- * @version 219.0.0
6461
+ * @version 221.0.0
6462
6462
  */var ApiClient=/*#__PURE__*/function(){/**
6463
6463
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
6464
6464
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -6499,7 +6499,7 @@ if(this.environment.startsWith('https://'))this.environment=this.environment.sub
6499
6499
  */this.defaultHeaders={};/**
6500
6500
  * The default HTTP timeout for all API calls.
6501
6501
  * @type {Number}
6502
- * @default 60000
6502
+ * @default 16000
6503
6503
  */this.timeout=16000;this.authData={};this.settingsPrefix='purecloud';// Transparently request a new access token when it expires (Code Authorization only)
6504
6504
  this.refreshInProgress=false;this.httpClient;this.proxyAgent;this.config=new Configuration();if(typeof window!=='undefined')window.ApiClient=this;}/**
6505
6505
  * @description If set to `true`, the response object will contain additional information about the HTTP response. When `false` (default) only the body object will be returned.
@@ -6660,35 +6660,35 @@ _this9._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/*
6660
6660
  * @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
6661
6661
  * @param {string} authCode - Authorization code
6662
6662
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
6663
- */},{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
6664
- _this10._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6663
+ */},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this0=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=_this0._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this0.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
6664
+ _this0._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6665
6665
  * @description Handles the response for code auth requests
6666
6666
  * @param {object} request - Authorization request object
6667
6667
  * @param {object} bodyParam - Input body data for authorization request
6668
6668
  * @param {function} resolve - Promise resolve callback
6669
6669
  * @param {function} reject - Promise reject callback
6670
- */},{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
6671
- _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
6672
- 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
6673
- resolve(_this11.authData);})["catch"](function(error){// Log error
6674
- 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);});}/**
6670
+ */},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this1=this;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));request.then(function(response){// Logging
6671
+ _this1.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this1.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6672
+ var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this1.setAccessToken(access_token);_this1.authData.refreshToken=refresh_token;_this1.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this1.authData.tokenExpiryTimeString=new Date(_this1.authData.tokenExpiryTime).toUTCString();// Return auth data
6673
+ resolve(_this1.authData);})["catch"](function(error){// Log error
6674
+ if(error.response){_this1.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
6675
6675
  * @description Utility function to create the request for auth requests
6676
6676
  * @param {string} encodedData - Base64 encoded client and clientSecret pair
6677
6677
  * @param {object} data - data to url form encode
6678
6678
  */},{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);}/**
6679
6679
  * @description Handles an expired access token. Only available in node apps.
6680
6680
  * @param {string} statusCode - The status code of a request
6681
- */},{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
6682
- _this12.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
6683
- _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();});}});}/**
6681
+ */},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this10=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this10.refreshInProgress){_this10.refreshInProgress=true;_this10.refreshCodeAuthorizationGrant(_this10.clientId,_this10.clientSecret,_this10.authData.refreshToken).then(function(){_this10.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
6682
+ _this10.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
6683
+ _this10._sleep(_this10.config.refresh_token_wait_max).then(function(){if(_this10.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this10.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
6684
6684
  * @description Sleeps for a defined length
6685
6685
  * @param {int} millis - Length to sleep in milliseconds
6686
6686
  */},{key:"_sleep",value:function _sleep(millis){return new Promise(function(resolve){return setTimeout(resolve,millis);});}/**
6687
6687
  * @description Loads token from storage, if enabled, and checks to ensure it works.
6688
- */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this13=this;return new Promise(function(resolve,reject){// Load from storage
6689
- _this13._loadSettings();// Check if there is a token to test
6690
- if(!_this13.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
6691
- _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);});});}/**
6688
+ */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this11=this;return new Promise(function(resolve,reject){// Load from storage
6689
+ _this11._loadSettings();// Check if there is a token to test
6690
+ if(!_this11.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
6691
+ _this11.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this11._saveSettings({accessToken:undefined});reject(error);});});}/**
6692
6692
  * @description Parses the URL hash, grabs the access token, and clears the hash. If no access token is found, no action is taken.
6693
6693
  */},{key:"_setValuesFromUrlHash",value:function _setValuesFromUrlHash(){// Check for window
6694
6694
  if(!(typeof window!=='undefined'&&window.location.hash))return;// Process hash string into object
@@ -6733,7 +6733,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
6733
6733
  * @param {String} path The path to append to the base URL.
6734
6734
  * @param {Object} pathParams The parameter values to append.
6735
6735
  * @returns {String} The encoded path with parameter values substituted.
6736
- */},{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;}/**
6736
+ */},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this12=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=_this12.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
6737
6737
  * Checks whether the given content type represents JSON.<br>
6738
6738
  * JSON content type examples:<br>
6739
6739
  * <ul>
@@ -6774,7 +6774,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
6774
6774
  * Applies authentication headers to the request.
6775
6775
  * @param {Object} request The axios request config object.
6776
6776
  * @param {Array.<String>} authNames An array of authentication method names.
6777
- */},{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));}});}/**
6777
+ */},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this13=this;authNames.forEach(function(authName){var auth=_this13.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=_this13.addHeaders(request.headers,data);}else{request.setParams(_this13.serialize(data));}}break;case'oauth2':if(auth.accessToken){request.headers=_this13.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
6778
6778
  * @description Sets the proxy agent axios will use for requests
6779
6779
  * @param {any} agent - The proxy agent
6780
6780
  */},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;var httpClient=this.getHttpClient();httpClient.setHttpsAgent(this.proxyAgent);}/**
@@ -6791,7 +6791,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
6791
6791
  * @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
6792
6792
  * constructor for a complex type.
6793
6793
  * @returns {Promise} A Promise object.
6794
- */},{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
6794
+ */},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this14=this;return new Promise(function(resolve,reject){sendRequest(_this14);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request=new HttpRequestOptions(url,httpMethod,null,that.serialize(queryParams),null,that.timeout);// apply authentications
6795
6795
  that.applyAuthToRequest(request,authNames);// set header parameters
6796
6796
  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
6797
6797
  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
@@ -6801,7 +6801,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
6801
6801
  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(){/**
6802
6802
  * AgentAssistants service.
6803
6803
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
6804
- * @version 219.0.0
6804
+ * @version 221.0.0
6805
6805
  *//**
6806
6806
  * Constructs a new AgentAssistantsApi.
6807
6807
  * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -6902,7 +6902,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
6902
6902
  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(){/**
6903
6903
  * AgentCopilot service.
6904
6904
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
6905
- * @version 219.0.0
6905
+ * @version 221.0.0
6906
6906
  *//**
6907
6907
  * Constructs a new AgentCopilotApi.
6908
6908
  * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -6924,7 +6924,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6924
6924
  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(){/**
6925
6925
  * AgentUI service.
6926
6926
  * @module purecloud-platform-client-v2/api/AgentUIApi
6927
- * @version 219.0.0
6927
+ * @version 221.0.0
6928
6928
  *//**
6929
6929
  * Constructs a new AgentUIApi.
6930
6930
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -6958,7 +6958,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
6958
6958
  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(){/**
6959
6959
  * Alerting service.
6960
6960
  * @module purecloud-platform-client-v2/api/AlertingApi
6961
- * @version 219.0.0
6961
+ * @version 221.0.0
6962
6962
  *//**
6963
6963
  * Constructs a new AlertingApi.
6964
6964
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -7047,7 +7047,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
7047
7047
  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(){/**
7048
7048
  * Analytics service.
7049
7049
  * @module purecloud-platform-client-v2/api/AnalyticsApi
7050
- * @version 219.0.0
7050
+ * @version 221.0.0
7051
7051
  *//**
7052
7052
  * Constructs a new AnalyticsApi.
7053
7053
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -7715,7 +7715,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7715
7715
  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(){/**
7716
7716
  * Architect service.
7717
7717
  * @module purecloud-platform-client-v2/api/ArchitectApi
7718
- * @version 219.0.0
7718
+ * @version 221.0.0
7719
7719
  *//**
7720
7720
  * Constructs a new ArchitectApi.
7721
7721
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -7986,7 +7986,6 @@ if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId"
7986
7986
  * Get an IVR IdentityResolutionConfig.
7987
7987
  *
7988
7988
  * @param {String} ivrId IVR id
7989
- * getArchitectIvrIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7990
7989
  */},{key:"getArchitectIvrIdentityresolution",value:function getArchitectIvrIdentityresolution(ivrId){// verify the required parameter 'ivrId' is set
7991
7990
  if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId" when calling getArchitectIvrIdentityresolution';}return this.apiClient.callApi('/api/v2/architect/ivrs/{ivrId}/identityresolution','GET',{'ivrId':ivrId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7992
7991
  * Get IVR configs.
@@ -7999,7 +7998,8 @@ if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId"
7999
7998
  * @param {String} opts.name Name of the IVR to filter by.
8000
7999
  * @param {String} opts.dnis The phone number of the IVR to filter by.
8001
8000
  * @param {String} opts.scheduleGroup The Schedule Group of the IVR to filter by.
8002
- */},{key:"getArchitectIvrs",value:function getArchitectIvrs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/architect/ivrs','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name'],'dnis':opts['dnis'],'scheduleGroup':opts['scheduleGroup']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8001
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
8002
+ */},{key:"getArchitectIvrs",value:function getArchitectIvrs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/architect/ivrs','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name'],'dnis':opts['dnis'],'scheduleGroup':opts['scheduleGroup'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8003
8003
  * Get a pageable list of basic ivr configuration information objects filterable by query parameters.
8004
8004
  *
8005
8005
  * @param {Object} opts Optional parameters
@@ -8100,7 +8100,7 @@ if(scheduleGroupId===undefined||scheduleGroupId===null){throw'Missing the requir
8100
8100
  * @param {Number} opts.pageNumber Page number (default to 1)
8101
8101
  * @param {Number} opts.pageSize Page size (default to 25)
8102
8102
  * @param {String} opts.sortBy Sort by (default to name)
8103
- * @param {String} opts.sortOrder Sort order (default to ASC)
8103
+ * @param {String} opts.sortOrder Sort order (default to asc)
8104
8104
  * @param {String} opts.name Name of the Schedule to filter by.
8105
8105
  * @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
8106
8106
  */},{key:"getArchitectSchedules",value:function getArchitectSchedules(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/architect/schedules','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8747,7 +8747,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8747
8747
  *
8748
8748
  * @param {String} ivrId IVR id
8749
8749
  * @param {Object} body
8750
- * putArchitectIvrIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8751
8750
  */},{key:"putArchitectIvrIdentityresolution",value:function putArchitectIvrIdentityresolution(ivrId,body){// verify the required parameter 'ivrId' is set
8752
8751
  if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';}// verify the required parameter 'body' is set
8753
8752
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';}return this.apiClient.callApi('/api/v2/architect/ivrs/{ivrId}/identityresolution','PUT',{'ivrId':ivrId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8847,7 +8846,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
8847
8846
  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(){/**
8848
8847
  * Audit service.
8849
8848
  * @module purecloud-platform-client-v2/api/AuditApi
8850
- * @version 219.0.0
8849
+ * @version 221.0.0
8851
8850
  *//**
8852
8851
  * Constructs a new AuditApi.
8853
8852
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -8897,7 +8896,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8897
8896
  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(){/**
8898
8897
  * Authorization service.
8899
8898
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8900
- * @version 219.0.0
8899
+ * @version 221.0.0
8901
8900
  *//**
8902
8901
  * Constructs a new AuthorizationApi.
8903
8902
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -9332,7 +9331,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
9332
9331
  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(){/**
9333
9332
  * Billing service.
9334
9333
  * @module purecloud-platform-client-v2/api/BillingApi
9335
- * @version 219.0.0
9334
+ * @version 221.0.0
9336
9335
  *//**
9337
9336
  * Constructs a new BillingApi.
9338
9337
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -9340,11 +9339,64 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9340
9339
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
9341
9340
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
9342
9341
  */function BillingApi(apiClient){_classCallCheck(this,BillingApi);this.apiClient=apiClient||ApiClient.instance;}/**
9342
+ * Get billing contract
9343
+ * Retrieve a single contract from the system.
9344
+ * @param {String} contractId The contract number.
9345
+ * getBillingContract is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9346
+ */return _createClass(BillingApi,[{key:"getBillingContract",value:function getBillingContract(contractId){// verify the required parameter 'contractId' is set
9347
+ if(contractId===undefined||contractId===null){throw'Missing the required parameter "contractId" when calling getBillingContract';}return this.apiClient.callApi('/api/v2/billing/contracts/{contractId}','GET',{'contractId':contractId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9348
+ * Get contract billing period
9349
+ * Fetch the billing information for a given Organization by billing period.
9350
+ * @param {String} contractId The contract number.
9351
+ * @param {String} billingPeriodId The Billing Period Id for the Org.
9352
+ * getBillingContractBillingperiod is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9353
+ */},{key:"getBillingContractBillingperiod",value:function getBillingContractBillingperiod(contractId,billingPeriodId){// verify the required parameter 'contractId' is set
9354
+ if(contractId===undefined||contractId===null){throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';}// verify the required parameter 'billingPeriodId' is set
9355
+ if(billingPeriodId===undefined||billingPeriodId===null){throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';}return this.apiClient.callApi('/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}','GET',{'contractId':contractId,'billingPeriodId':billingPeriodId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9356
+ * Get billing contracts
9357
+ * Retrieve a list of contracts stored in the system.
9358
+ * @param {Object} opts Optional parameters
9359
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
9360
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9361
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9362
+ * @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
9363
+ * @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
9364
+ * @param {Object} opts.status Filter by the status of contracts
9365
+ * @param {String} opts.externalNumber Filter by the unique external number.
9366
+ * getBillingContracts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9367
+ */},{key:"getBillingContracts",value:function getBillingContracts(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/billing/contracts','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'dateStart':opts['dateStart'],'dateEnd':opts['dateEnd'],'status':opts['status'],'externalNumber':opts['externalNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9368
+ * Get invoice document
9369
+ * Fetch the document for a specific invoice.
9370
+ * @param {String} invoiceId invoiceId
9371
+ * getBillingContractsInvoiceDocument is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9372
+ */},{key:"getBillingContractsInvoiceDocument",value:function getBillingContractsInvoiceDocument(invoiceId){// verify the required parameter 'invoiceId' is set
9373
+ if(invoiceId===undefined||invoiceId===null){throw'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceDocument';}return this.apiClient.callApi('/api/v2/billing/contracts/invoices/{invoiceId}/document','GET',{'invoiceId':invoiceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9374
+ * Get invoice lines
9375
+ * Fetch a list of all bills for the specified account.
9376
+ * @param {String} invoiceId invoiceId
9377
+ * @param {Object} opts Optional parameters
9378
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
9379
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9380
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9381
+ * getBillingContractsInvoiceLines is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9382
+ */},{key:"getBillingContractsInvoiceLines",value:function getBillingContractsInvoiceLines(invoiceId,opts){opts=opts||{};// verify the required parameter 'invoiceId' is set
9383
+ if(invoiceId===undefined||invoiceId===null){throw'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceLines';}return this.apiClient.callApi('/api/v2/billing/contracts/invoices/{invoiceId}/lines','GET',{'invoiceId':invoiceId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9384
+ * Get invoices
9385
+ * Retrieve a list of invoices stored in the system.
9386
+ * @param {Object} opts Optional parameters
9387
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
9388
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9389
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9390
+ * @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
9391
+ * @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
9392
+ * @param {Object} opts.paymentStatus Payment Status
9393
+ * getBillingContractsInvoices is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9394
+ */},{key:"getBillingContractsInvoices",value:function getBillingContractsInvoices(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/billing/contracts/invoices','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'dateStart':opts['dateStart'],'dateEnd':opts['dateEnd'],'paymentStatus':opts['paymentStatus']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9343
9395
  * Get a report of the billable license usages
9344
9396
  * Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If responses status is InProgress, wait a few seconds, then try the same request again.
9345
9397
  * @param {Date} startDate The period start date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
9346
9398
  * @param {Date} endDate The period end date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
9347
- */return _createClass(BillingApi,[{key:"getBillingReportsBillableusage",value:function getBillingReportsBillableusage(startDate,endDate){// verify the required parameter 'startDate' is set
9399
+ */},{key:"getBillingReportsBillableusage",value:function getBillingReportsBillableusage(startDate,endDate){// verify the required parameter 'startDate' is set
9348
9400
  if(startDate===undefined||startDate===null){throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';}// verify the required parameter 'endDate' is set
9349
9401
  if(endDate===undefined||endDate===null){throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';}return this.apiClient.callApi('/api/v2/billing/reports/billableusage','GET',{},{'startDate':startDate,'endDate':endDate},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9350
9402
  * Get the billing overview for an organization that is managed by a partner.
@@ -9353,10 +9405,258 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
9353
9405
  * @param {Object} opts Optional parameters
9354
9406
  * @param {Number} opts.billingPeriodIndex 0 for active period (overview data may change until period closes). 1 for prior completed billing period. 2 for two billing cycles prior, and so on. (default to 0)
9355
9407
  */},{key:"getBillingTrusteebillingoverviewTrustorOrgId",value:function getBillingTrusteebillingoverviewTrustorOrgId(trustorOrgId,opts){opts=opts||{};// verify the required parameter 'trustorOrgId' is set
9356
- 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(){/**
9408
+ 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 BusinessRulesApi=/*#__PURE__*/function(){/**
9409
+ * BusinessRules service.
9410
+ * @module purecloud-platform-client-v2/api/BusinessRulesApi
9411
+ * @version 221.0.0
9412
+ *//**
9413
+ * Constructs a new BusinessRulesApi.
9414
+ * @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
9415
+ * @class
9416
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
9417
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
9418
+ */function BusinessRulesApi(apiClient){_classCallCheck(this,BusinessRulesApi);this.apiClient=apiClient||ApiClient.instance;}/**
9419
+ * Delete a decision table
9420
+ *
9421
+ * @param {String} tableId Table ID
9422
+ * @param {Object} opts Optional parameters
9423
+ * @param {Boolean} opts.forceDelete Force delete decision table (under certain conditions) (default to false)
9424
+ * deleteBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9425
+ */return _createClass(BusinessRulesApi,[{key:"deleteBusinessrulesDecisiontable",value:function deleteBusinessrulesDecisiontable(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
9426
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','DELETE',{'tableId':tableId},{'forceDelete':opts['forceDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9427
+ * Delete a decision table version
9428
+ *
9429
+ * @param {String} tableId Table ID
9430
+ * @param {Number} tableVersion Table Version
9431
+ * deleteBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9432
+ */},{key:"deleteBusinessrulesDecisiontableVersion",value:function deleteBusinessrulesDecisiontableVersion(tableId,tableVersion){// verify the required parameter 'tableId' is set
9433
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
9434
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','DELETE',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9435
+ * Delete a decision table row
9436
+ *
9437
+ * @param {String} tableId Table ID
9438
+ * @param {Number} tableVersion Table Version
9439
+ * @param {String} rowId Row ID
9440
+ * deleteBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9441
+ */},{key:"deleteBusinessrulesDecisiontableVersionRow",value:function deleteBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId){// verify the required parameter 'tableId' is set
9442
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
9443
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
9444
+ if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling deleteBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','DELETE',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9445
+ * Delete a schema
9446
+ *
9447
+ * @param {String} schemaId Schema ID
9448
+ * deleteBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9449
+ */},{key:"deleteBusinessrulesSchema",value:function deleteBusinessrulesSchema(schemaId){// verify the required parameter 'schemaId' is set
9450
+ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling deleteBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','DELETE',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9451
+ * Get a decision table
9452
+ *
9453
+ * @param {String} tableId Table ID
9454
+ * getBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9455
+ */},{key:"getBusinessrulesDecisiontable",value:function getBusinessrulesDecisiontable(tableId){// verify the required parameter 'tableId' is set
9456
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','GET',{'tableId':tableId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9457
+ * Get a decision table version
9458
+ *
9459
+ * @param {String} tableId Table ID
9460
+ * @param {Number} tableVersion Table Version
9461
+ * getBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9462
+ */},{key:"getBusinessrulesDecisiontableVersion",value:function getBusinessrulesDecisiontableVersion(tableId,tableVersion){// verify the required parameter 'tableId' is set
9463
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
9464
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','GET',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9465
+ * Get a decision table row
9466
+ *
9467
+ * @param {String} tableId Table ID
9468
+ * @param {Number} tableVersion Table Version
9469
+ * @param {String} rowId Row ID
9470
+ * getBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9471
+ */},{key:"getBusinessrulesDecisiontableVersionRow",value:function getBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId){// verify the required parameter 'tableId' is set
9472
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
9473
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
9474
+ if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling getBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','GET',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9475
+ * Get a list of decision table rows.
9476
+ *
9477
+ * @param {String} tableId Table ID
9478
+ * @param {Number} tableVersion Table Version
9479
+ * @param {Object} opts Optional parameters
9480
+ * @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
9481
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
9482
+ * getBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9483
+ */},{key:"getBusinessrulesDecisiontableVersionRows",value:function getBusinessrulesDecisiontableVersionRows(tableId,tableVersion,opts){opts=opts||{};// verify the required parameter 'tableId' is set
9484
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'tableVersion' is set
9485
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRows';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows','GET',{'tableId':tableId,'tableVersion':tableVersion},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9486
+ * Get a list of decision table versions
9487
+ *
9488
+ * @param {String} tableId Table ID
9489
+ * @param {Object} opts Optional parameters
9490
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9491
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9492
+ * @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
9493
+ * getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9494
+ */},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
9495
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','GET',{'tableId':tableId},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9496
+ * Get a list of decision tables.
9497
+ *
9498
+ * @param {Object} opts Optional parameters
9499
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9500
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9501
+ * @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
9502
+ * getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9503
+ */},{key:"getBusinessrulesDecisiontables",value:function getBusinessrulesDecisiontables(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9504
+ * Search for decision tables.
9505
+ *
9506
+ * @param {Object} opts Optional parameters
9507
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
9508
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9509
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9510
+ * @param {String} opts.schemaId Search for decision tables that use the schema with this ID. Cannot be combined with name search. Search results will not be paginated if used.
9511
+ * @param {String} opts.name Search for decision tables with a name that contains the given search string. Search is case insensitive and will match any table that contains this string in any part of the name. Cannot be combined with schema search. Search results will not be paginated if used.
9512
+ * getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9513
+ */},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'schemaId':opts['schemaId'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9514
+ * Get a schema
9515
+ *
9516
+ * @param {String} schemaId Schema ID
9517
+ * getBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9518
+ */},{key:"getBusinessrulesSchema",value:function getBusinessrulesSchema(schemaId){// verify the required parameter 'schemaId' is set
9519
+ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9520
+ * Get a list of schemas.
9521
+ *
9522
+ * getBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9523
+ */},{key:"getBusinessrulesSchemas",value:function getBusinessrulesSchemas(){return this.apiClient.callApi('/api/v2/businessrules/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9524
+ * Get a specific named core type.
9525
+ *
9526
+ * @param {String} coreTypeName The core type's name
9527
+ * getBusinessrulesSchemasCoretype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9528
+ */},{key:"getBusinessrulesSchemasCoretype",value:function getBusinessrulesSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
9529
+ if(coreTypeName===undefined||coreTypeName===null){throw'Missing the required parameter "coreTypeName" when calling getBusinessrulesSchemasCoretype';}return this.apiClient.callApi('/api/v2/businessrules/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9530
+ * Get the core types from which all schemas are built.
9531
+ *
9532
+ * getBusinessrulesSchemasCoretypes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9533
+ */},{key:"getBusinessrulesSchemasCoretypes",value:function getBusinessrulesSchemasCoretypes(){return this.apiClient.callApi('/api/v2/businessrules/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9534
+ * Update a decision table
9535
+ *
9536
+ * @param {String} tableId Table ID
9537
+ * @param {Object} body Decision Table
9538
+ * patchBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9539
+ */},{key:"patchBusinessrulesDecisiontable",value:function patchBusinessrulesDecisiontable(tableId,body){// verify the required parameter 'tableId' is set
9540
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';}// verify the required parameter 'body' is set
9541
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','PATCH',{'tableId':tableId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9542
+ * Update a decision table version
9543
+ *
9544
+ * @param {String} tableId Table ID
9545
+ * @param {Number} tableVersion Table Version
9546
+ * @param {Object} body Decision Table
9547
+ * patchBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9548
+ */},{key:"patchBusinessrulesDecisiontableVersion",value:function patchBusinessrulesDecisiontableVersion(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
9549
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
9550
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'body' is set
9551
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','PATCH',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9552
+ * Update a decision table row
9553
+ *
9554
+ * @param {String} tableId Table ID
9555
+ * @param {Number} tableVersion Table Version
9556
+ * @param {String} rowId Row ID
9557
+ * @param {Object} body Update decision table row request
9558
+ * patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9559
+ */},{key:"patchBusinessrulesDecisiontableVersionRow",value:function patchBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
9560
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
9561
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
9562
+ if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'body' is set
9563
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','PATCH',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9564
+ * Execute a published decision table
9565
+ *
9566
+ * @param {String} tableId Table ID
9567
+ * @param {Object} body Decision Table
9568
+ * postBusinessrulesDecisiontableExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9569
+ */},{key:"postBusinessrulesDecisiontableExecute",value:function postBusinessrulesDecisiontableExecute(tableId,body){// verify the required parameter 'tableId' is set
9570
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';}// verify the required parameter 'body' is set
9571
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/execute','POST',{'tableId':tableId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9572
+ * Copy a decision table version
9573
+ *
9574
+ * @param {String} tableId Table ID
9575
+ * @param {Number} tableVersion Table Version
9576
+ * @param {Object} body Decision Table
9577
+ * postBusinessrulesDecisiontableVersionCopy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9578
+ */},{key:"postBusinessrulesDecisiontableVersionCopy",value:function postBusinessrulesDecisiontableVersionCopy(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
9579
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';}// verify the required parameter 'tableVersion' is set
9580
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';}// verify the required parameter 'body' is set
9581
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionCopy';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/copy','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9582
+ * Execute a decision table version
9583
+ *
9584
+ * @param {String} tableId Table ID
9585
+ * @param {Number} tableVersion Table Version
9586
+ * @param {Object} body Decision Table
9587
+ * postBusinessrulesDecisiontableVersionExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9588
+ */},{key:"postBusinessrulesDecisiontableVersionExecute",value:function postBusinessrulesDecisiontableVersionExecute(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
9589
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';}// verify the required parameter 'tableVersion' is set
9590
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';}// verify the required parameter 'body' is set
9591
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionExecute';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/execute','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9592
+ * Create a decision table row
9593
+ *
9594
+ * @param {String} tableId Table ID
9595
+ * @param {Number} tableVersion Table Version
9596
+ * @param {Object} body Create decision table row request
9597
+ * postBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9598
+ */},{key:"postBusinessrulesDecisiontableVersionRows",value:function postBusinessrulesDecisiontableVersionRows(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
9599
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'tableVersion' is set
9600
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'body' is set
9601
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRows';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9602
+ * Search for decision table rows
9603
+ *
9604
+ * @param {String} tableId Table ID
9605
+ * @param {Number} tableVersion Table Version
9606
+ * @param {Object} body Search decision table rows request
9607
+ * @param {Object} opts Optional parameters
9608
+ * @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
9609
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
9610
+ * postBusinessrulesDecisiontableVersionRowsSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9611
+ */},{key:"postBusinessrulesDecisiontableVersionRowsSearch",value:function postBusinessrulesDecisiontableVersionRowsSearch(tableId,tableVersion,body,opts){opts=opts||{};// verify the required parameter 'tableId' is set
9612
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';}// verify the required parameter 'tableVersion' is set
9613
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';}// verify the required parameter 'body' is set
9614
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsSearch';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/search','POST',{'tableId':tableId,'tableVersion':tableVersion},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9615
+ * Update the Business Rules Schema to the latest version for a given decision table version
9616
+ *
9617
+ * @param {String} tableId Table ID
9618
+ * @param {Number} tableVersion Table Version
9619
+ * postBusinessrulesDecisiontableVersionSync is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9620
+ */},{key:"postBusinessrulesDecisiontableVersionSync",value:function postBusinessrulesDecisiontableVersionSync(tableId,tableVersion){// verify the required parameter 'tableId' is set
9621
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';}// verify the required parameter 'tableVersion' is set
9622
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionSync';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/sync','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9623
+ * Create a new decision table version
9624
+ *
9625
+ * @param {String} tableId Table ID
9626
+ * postBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9627
+ */},{key:"postBusinessrulesDecisiontableVersions",value:function postBusinessrulesDecisiontableVersions(tableId){// verify the required parameter 'tableId' is set
9628
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','POST',{'tableId':tableId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9629
+ * Create a decision table
9630
+ *
9631
+ * @param {Object} body Decision Table
9632
+ * postBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9633
+ */},{key:"postBusinessrulesDecisiontables",value:function postBusinessrulesDecisiontables(body){// verify the required parameter 'body' is set
9634
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontables';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9635
+ * Create a schema
9636
+ *
9637
+ * @param {Object} body Schema
9638
+ * postBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9639
+ */},{key:"postBusinessrulesSchemas",value:function postBusinessrulesSchemas(body){// verify the required parameter 'body' is set
9640
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesSchemas';}return this.apiClient.callApi('/api/v2/businessrules/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9641
+ * Publish a decision table version
9642
+ *
9643
+ * @param {String} tableId Table ID
9644
+ * @param {Number} tableVersion Table Version
9645
+ * putBusinessrulesDecisiontableVersionPublish is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9646
+ */},{key:"putBusinessrulesDecisiontableVersionPublish",value:function putBusinessrulesDecisiontableVersionPublish(tableId,tableVersion){// verify the required parameter 'tableId' is set
9647
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';}// verify the required parameter 'tableVersion' is set
9648
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionPublish';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/publish','PUT',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9649
+ * Update a schema
9650
+ *
9651
+ * @param {String} schemaId Schema ID
9652
+ * @param {Object} body Data Schema
9653
+ * putBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9654
+ */},{key:"putBusinessrulesSchema",value:function putBusinessrulesSchema(schemaId,body){// verify the required parameter 'schemaId' is set
9655
+ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';}// verify the required parameter 'body' is set
9656
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
9357
9657
  * CarrierServices service.
9358
9658
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
9359
- * @version 219.0.0
9659
+ * @version 221.0.0
9360
9660
  *//**
9361
9661
  * Constructs a new CarrierServicesApi.
9362
9662
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -9376,7 +9676,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
9376
9676
  */},{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(){/**
9377
9677
  * Chat service.
9378
9678
  * @module purecloud-platform-client-v2/api/ChatApi
9379
- * @version 219.0.0
9679
+ * @version 221.0.0
9380
9680
  *//**
9381
9681
  * Constructs a new ChatApi.
9382
9682
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -9455,8 +9755,10 @@ if(participantJid===undefined||participantJid===null){throw'Missing the required
9455
9755
  * Get room participants in a room
9456
9756
  *
9457
9757
  * @param {String} roomJid roomJid
9458
- */},{key:"getChatsRoomParticipants",value:function getChatsRoomParticipants(roomJid){// verify the required parameter 'roomJid' is set
9459
- if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipants';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/participants','GET',{'roomJid':roomJid},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9758
+ * @param {Object} opts Optional parameters
9759
+ * @param {Boolean} opts.notify Whether to get users to notify
9760
+ */},{key:"getChatsRoomParticipants",value:function getChatsRoomParticipants(roomJid,opts){opts=opts||{};// verify the required parameter 'roomJid' is set
9761
+ if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipants';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/participants','GET',{'roomJid':roomJid},{'notify':opts['notify']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9460
9762
  * Get Chat Settings.
9461
9763
  *
9462
9764
  */},{key:"getChatsSettings",value:function getChatsSettings(){return this.apiClient.callApi('/api/v2/chats/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -9594,7 +9896,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9594
9896
  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(){/**
9595
9897
  * Coaching service.
9596
9898
  * @module purecloud-platform-client-v2/api/CoachingApi
9597
- * @version 219.0.0
9899
+ * @version 221.0.0
9598
9900
  *//**
9599
9901
  * Constructs a new CoachingApi.
9600
9902
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -9747,7 +10049,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9747
10049
  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(){/**
9748
10050
  * ContentManagement service.
9749
10051
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9750
- * @version 219.0.0
10052
+ * @version 221.0.0
9751
10053
  *//**
9752
10054
  * Constructs a new ContentManagementApi.
9753
10055
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -10029,7 +10331,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
10029
10331
  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(){/**
10030
10332
  * Conversations service.
10031
10333
  * @module purecloud-platform-client-v2/api/ConversationsApi
10032
- * @version 219.0.0
10334
+ * @version 221.0.0
10033
10335
  *//**
10034
10336
  * Constructs a new ConversationsApi.
10035
10337
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -10549,19 +10851,16 @@ if(cachedMediaItemId===undefined||cachedMediaItemId===null){throw'Missing the re
10549
10851
  * Get Facebook messaging integration identity resolution settings
10550
10852
  *
10551
10853
  * @param {String} integrationId Integration ID
10552
- * getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10553
10854
  */},{key:"getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
10554
10855
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10555
10856
  * Get an open messaging integration Identity Resolution settings
10556
10857
  *
10557
10858
  * @param {String} integrationId Integration ID
10558
- * getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10559
10859
  */},{key:"getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
10560
10860
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10561
10861
  * Get a whatsApp integration Identity Resolution settings
10562
10862
  *
10563
10863
  * @param {String} integrationId Integration ID
10564
- * getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10565
10864
  */},{key:"getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
10566
10865
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/whatsapp/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10567
10866
  * Get twitter oauth settings to patch an integration
@@ -10766,13 +11065,21 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10766
11065
  */},{key:"patchConversationSecureattributes",value:function patchConversationSecureattributes(conversationId,body){// verify the required parameter 'conversationId' is set
10767
11066
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';}// verify the required parameter 'body' is set
10768
11067
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationSecureattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/secureattributes','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11068
+ * Update agent's engagement for the summary.
11069
+ *
11070
+ * @param {String} conversationId Conversation ID
11071
+ * @param {String} summaryId Summary ID
11072
+ * @param {Object} opts Optional parameters
11073
+ * @param {Object} opts.body
11074
+ */},{key:"patchConversationSummaryEngagements",value:function patchConversationSummaryEngagements(conversationId,summaryId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
11075
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';}// verify the required parameter 'summaryId' is set
11076
+ if(summaryId===undefined||summaryId===null){throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements','PATCH',{'conversationId':conversationId,'summaryId':summaryId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
10769
11077
  * Update the feedback for the summary.
10770
11078
  *
10771
11079
  * @param {String} conversationId Conversation ID
10772
11080
  * @param {String} summaryId Summary ID
10773
11081
  * @param {Object} opts Optional parameters
10774
11082
  * @param {Object} opts.body
10775
- * patchConversationSummaryFeedback is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10776
11083
  */},{key:"patchConversationSummaryFeedback",value:function patchConversationSummaryFeedback(conversationId,summaryId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10777
11084
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';}// verify the required parameter 'summaryId' is set
10778
11085
  if(summaryId===undefined||summaryId===null){throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback','PATCH',{'conversationId':conversationId,'summaryId':summaryId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -11543,9 +11850,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11543
11850
  * See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage.
11544
11851
  * @param {String} conversationId conversationId
11545
11852
  * @param {String} communicationId communicationId
11853
+ * @deprecated
11546
11854
  */},{key:"postConversationsMessageCommunicationMessagesMedia",value:function postConversationsMessageCommunicationMessagesMedia(conversationId,communicationId){// verify the required parameter 'conversationId' is set
11547
11855
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';}// verify the required parameter 'communicationId' is set
11548
11856
  if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11857
+ * Create a URL to upload a message media file
11858
+ * See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage.
11859
+ * @param {String} conversationId conversationId
11860
+ * @param {String} communicationId communicationId
11861
+ * @param {Object} body request
11862
+ */},{key:"postConversationsMessageCommunicationMessagesMediaUploads",value:function postConversationsMessageCommunicationMessagesMediaUploads(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
11863
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'communicationId' is set
11864
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'body' is set
11865
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationMessagesMediaUploads';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/uploads','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11549
11866
  * Send message typing event
11550
11867
  * Send message typing event for existing conversation/communication.
11551
11868
  * @param {String} conversationId conversationId
@@ -11819,7 +12136,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11819
12136
  *
11820
12137
  * @param {String} integrationId Integration ID
11821
12138
  * @param {Object} body IdentityResolutionConfig
11822
- * putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11823
12139
  */},{key:"putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
11824
12140
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}// verify the required parameter 'body' is set
11825
12141
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -11827,7 +12143,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11827
12143
  *
11828
12144
  * @param {String} integrationId Integration ID
11829
12145
  * @param {Object} body
11830
- * putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11831
12146
  */},{key:"putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
11832
12147
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}// verify the required parameter 'body' is set
11833
12148
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -11835,7 +12150,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11835
12150
  *
11836
12151
  * @param {String} integrationId Integration ID
11837
12152
  * @param {Object} body
11838
- * putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11839
12153
  */},{key:"putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
11840
12154
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';}// verify the required parameter 'body' is set
11841
12155
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/whatsapp/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -11878,7 +12192,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
11878
12192
  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(){/**
11879
12193
  * DataExtensions service.
11880
12194
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
11881
- * @version 219.0.0
12195
+ * @version 221.0.0
11882
12196
  *//**
11883
12197
  * Constructs a new DataExtensionsApi.
11884
12198
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -11899,7 +12213,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
11899
12213
  */},{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(){/**
11900
12214
  * DataPrivacy service.
11901
12215
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
11902
- * @version 219.0.0
12216
+ * @version 221.0.0
11903
12217
  *//**
11904
12218
  * Constructs a new DataPrivacyApi.
11905
12219
  * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -11939,7 +12253,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11939
12253
  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(){/**
11940
12254
  * Downloads service.
11941
12255
  * @module purecloud-platform-client-v2/api/DownloadsApi
11942
- * @version 219.0.0
12256
+ * @version 221.0.0
11943
12257
  *//**
11944
12258
  * Constructs a new DownloadsApi.
11945
12259
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -11958,7 +12272,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11958
12272
  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(){/**
11959
12273
  * Emails service.
11960
12274
  * @module purecloud-platform-client-v2/api/EmailsApi
11961
- * @version 219.0.0
12275
+ * @version 221.0.0
11962
12276
  *//**
11963
12277
  * Constructs a new EmailsApi.
11964
12278
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -11987,7 +12301,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
11987
12301
  */},{key:"patchEmailsSettingsThreading",value:function patchEmailsSettingsThreading(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings/threading','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
11988
12302
  * EmployeeEngagement service.
11989
12303
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
11990
- * @version 219.0.0
12304
+ * @version 221.0.0
11991
12305
  *//**
11992
12306
  * Constructs a new EmployeeEngagementApi.
11993
12307
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -12025,7 +12339,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12025
12339
  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(){/**
12026
12340
  * Events service.
12027
12341
  * @module purecloud-platform-client-v2/api/EventsApi
12028
- * @version 219.0.0
12342
+ * @version 221.0.0
12029
12343
  *//**
12030
12344
  * Constructs a new EventsApi.
12031
12345
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -12050,7 +12364,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12050
12364
  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(){/**
12051
12365
  * ExternalContacts service.
12052
12366
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
12053
- * @version 219.0.0
12367
+ * @version 221.0.0
12054
12368
  *//**
12055
12369
  * Constructs a new ExternalContactsApi.
12056
12370
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -12298,7 +12612,6 @@ if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Miss
12298
12612
  * List the identifiers for an external organization
12299
12613
  *
12300
12614
  * @param {String} externalOrganizationId External Organization ID
12301
- * getExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12302
12615
  */},{key:"getExternalcontactsOrganizationIdentifiers",value:function getExternalcontactsOrganizationIdentifiers(externalOrganizationId){// verify the required parameter 'externalOrganizationId' is set
12303
12616
  if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers','GET',{'externalOrganizationId':externalOrganizationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12304
12617
  * Fetch a note for an external organization
@@ -12380,12 +12693,12 @@ if(coreTypeName===undefined||coreTypeName===null){throw'Missing the required par
12380
12693
  * @param {Array.<String>} opts.expand which fields, if any, to expand
12381
12694
  */},{key:"getExternalcontactsRelationship",value:function getExternalcontactsRelationship(relationshipId,opts){opts=opts||{};// verify the required parameter 'relationshipId' is set
12382
12695
  if(relationshipId===undefined||relationshipId===null){throw'Missing the required parameter "relationshipId" when calling getExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','GET',{'relationshipId':relationshipId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12383
- * Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned.
12696
+ * Look up contacts based on an attribute. Maximum of 25 values returned.
12384
12697
  *
12385
- * @param {String} lookupVal User supplied value to lookup contacts/externalOrganizations (supports email addresses, e164 phone numbers, Twitter screen names)
12698
+ * @param {String} lookupVal User supplied value to lookup contacts (supports email addresses, e164 phone numbers, Twitter screen names)
12386
12699
  * @param {Object} opts Optional parameters
12387
12700
  * @param {Array.<String>} opts.expand which field, if any, to expand
12388
- * @param {String} opts.divisionId Specifies which division to lookup contacts/externalOrganizations in, for the given lookup value (default to *)
12701
+ * @param {String} opts.divisionId Specifies which division to lookup contacts in, for the given lookup value (default to *)
12389
12702
  */},{key:"getExternalcontactsReversewhitepageslookup",value:function getExternalcontactsReversewhitepageslookup(lookupVal,opts){opts=opts||{};// verify the required parameter 'lookupVal' is set
12390
12703
  if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter "lookupVal" when calling getExternalcontactsReversewhitepageslookup';}return this.apiClient.callApi('/api/v2/externalcontacts/reversewhitepageslookup','GET',{},{'lookupVal':lookupVal,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'divisionId':opts['divisionId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12391
12704
  * Scan for external contacts using paging
@@ -12400,7 +12713,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
12400
12713
  * @param {Object} opts Optional parameters
12401
12714
  * @param {Number} opts.limit The number of contacts per page; must be between 10 and 200, default is 100
12402
12715
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
12403
- * getExternalcontactsScanContactsDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12404
12716
  */},{key:"getExternalcontactsScanContactsDivisionviewsAll",value:function getExternalcontactsScanContactsDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/contacts/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12405
12717
  * Scan for notes using paging
12406
12718
  *
@@ -12414,7 +12726,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
12414
12726
  * @param {Object} opts Optional parameters
12415
12727
  * @param {Number} opts.limit The number of notes per page; must be between 10 and 200, default is 100
12416
12728
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
12417
- * getExternalcontactsScanNotesDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12418
12729
  */},{key:"getExternalcontactsScanNotesDivisionviewsAll",value:function getExternalcontactsScanNotesDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/notes/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12419
12730
  * Scan for external organizations using paging
12420
12731
  *
@@ -12428,7 +12739,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
12428
12739
  * @param {Object} opts Optional parameters
12429
12740
  * @param {Number} opts.limit The number of organizations per page; must be between 10 and 200, default is 100
12430
12741
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
12431
- * getExternalcontactsScanOrganizationsDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12432
12742
  */},{key:"getExternalcontactsScanOrganizationsDivisionviewsAll",value:function getExternalcontactsScanOrganizationsDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/organizations/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12433
12743
  * Scan for relationships
12434
12744
  *
@@ -12442,7 +12752,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
12442
12752
  * @param {Object} opts Optional parameters
12443
12753
  * @param {Number} opts.limit The number of relationships per page; must be between 10 and 200, default is 100
12444
12754
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
12445
- * getExternalcontactsScanRelationshipsDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12446
12755
  */},{key:"getExternalcontactsScanRelationshipsDivisionviewsAll",value:function getExternalcontactsScanRelationshipsDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/relationships/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12447
12756
  * Claim or release identifiers for a contact
12448
12757
  *
@@ -12455,7 +12764,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12455
12764
  *
12456
12765
  * @param {String} externalOrganizationId External Organization ID
12457
12766
  * @param {Object} body ClaimRequest
12458
- * patchExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12459
12767
  */},{key:"patchExternalcontactsOrganizationIdentifiers",value:function patchExternalcontactsOrganizationIdentifiers(externalOrganizationId,body){// verify the required parameter 'externalOrganizationId' is set
12460
12768
  if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';}// verify the required parameter 'body' is set
12461
12769
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers','PATCH',{'externalOrganizationId':externalOrganizationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -12472,7 +12780,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12472
12780
  * Bulk fetch contacts across divisions
12473
12781
  *
12474
12782
  * @param {Object} body Contact ids
12475
- * postExternalcontactsBulkContactsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12476
12783
  */},{key:"postExternalcontactsBulkContactsDivisionviews",value:function postExternalcontactsBulkContactsDivisionviews(body){// verify the required parameter 'body' is set
12477
12784
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsDivisionviews';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/contacts/divisionviews','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12478
12785
  * Bulk Enrich Contacts - Run up to 10 Enrich operations per request
@@ -12480,7 +12787,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12480
12787
  * @param {Object} body Contact Enrich Requests
12481
12788
  * @param {Object} opts Optional parameters
12482
12789
  * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12483
- * postExternalcontactsBulkContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12484
12790
  */},{key:"postExternalcontactsBulkContactsEnrich",value:function postExternalcontactsBulkContactsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12485
12791
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/contacts/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12486
12792
  * Bulk remove contacts
@@ -12531,7 +12837,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12531
12837
  * Bulk fetch organizations across divisions
12532
12838
  *
12533
12839
  * @param {Object} body Organizations ids
12534
- * postExternalcontactsBulkOrganizationsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12535
12840
  */},{key:"postExternalcontactsBulkOrganizationsDivisionviews",value:function postExternalcontactsBulkOrganizationsDivisionviews(body){// verify the required parameter 'body' is set
12536
12841
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsDivisionviews';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/organizations/divisionviews','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12537
12842
  * Bulk enrich external organizations - Run up to 10 Enrich operations per request
@@ -12539,7 +12844,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12539
12844
  * @param {Object} body External Organization Enrich Requests
12540
12845
  * @param {Object} opts Optional parameters
12541
12846
  * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12542
- * postExternalcontactsBulkOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12543
12847
  */},{key:"postExternalcontactsBulkOrganizationsEnrich",value:function postExternalcontactsBulkOrganizationsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12544
12848
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/organizations/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12545
12849
  * Bulk remove organizations
@@ -12594,7 +12898,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12594
12898
  * @param {Object} body ContactEnrichRequest
12595
12899
  * @param {Object} opts Optional parameters
12596
12900
  * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12597
- * postExternalcontactsContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12598
12901
  */},{key:"postExternalcontactsContactsEnrich",value:function postExternalcontactsContactsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12599
12902
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12600
12903
  * Create bulk export
@@ -12605,7 +12908,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12605
12908
  * Merge up to 25 contacts into a new contact record
12606
12909
  * Merge operation may fail if the resulting mergeset exceeds our default limit of 52. The valueOverride field lets you override any of the Contact fields post-merge. If any Contact field is left null in `valueOverride`, it will be taken from the most recently-modified contact in the merge set. Exception for *phone/*email fields: Conflicting data will be moved to any other available phone/email fields in the merged contact.
12607
12910
  * @param {Object} body MergeRequest
12608
- * postExternalcontactsContactsMerge is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12609
12911
  */},{key:"postExternalcontactsContactsMerge",value:function postExternalcontactsContactsMerge(body){// verify the required parameter 'body' is set
12610
12912
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsMerge';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/merge','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12611
12913
  * Create a schema
@@ -12631,7 +12933,6 @@ if(identifier===undefined||identifier===null){throw'Missing the required paramet
12631
12933
  * @param {Object} identifier
12632
12934
  * @param {Object} opts Optional parameters
12633
12935
  * @param {Array.<String>} opts.expand which field, if any, to expand
12634
- * postExternalcontactsIdentifierlookupContacts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12635
12936
  */},{key:"postExternalcontactsIdentifierlookupContacts",value:function postExternalcontactsIdentifierlookupContacts(identifier,opts){opts=opts||{};// verify the required parameter 'identifier' is set
12636
12937
  if(identifier===undefined||identifier===null){throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupContacts';}return this.apiClient.callApi('/api/v2/externalcontacts/identifierlookup/contacts','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},identifier,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12637
12938
  * Fetch an external organization using an identifier type and value.
@@ -12639,7 +12940,6 @@ if(identifier===undefined||identifier===null){throw'Missing the required paramet
12639
12940
  * @param {Object} identifier
12640
12941
  * @param {Object} opts Optional parameters
12641
12942
  * @param {Array.<String>} opts.expand which field, if any, to expand
12642
- * postExternalcontactsIdentifierlookupOrganizations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12643
12943
  */},{key:"postExternalcontactsIdentifierlookupOrganizations",value:function postExternalcontactsIdentifierlookupOrganizations(identifier,opts){opts=opts||{};// verify the required parameter 'identifier' is set
12644
12944
  if(identifier===undefined||identifier===null){throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupOrganizations';}return this.apiClient.callApi('/api/v2/externalcontacts/identifierlookup/organizations','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},identifier,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12645
12945
  * Create CSV import job
@@ -12690,7 +12990,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12690
12990
  * @param {Object} body ExternalOrgEnrichRequest
12691
12991
  * @param {Object} opts Optional parameters
12692
12992
  * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12693
- * postExternalcontactsOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12694
12993
  */},{key:"postExternalcontactsOrganizationsEnrich",value:function postExternalcontactsOrganizationsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12695
12994
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12696
12995
  * Create a schema
@@ -12800,7 +13099,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
12800
13099
  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(){/**
12801
13100
  * Fax service.
12802
13101
  * @module purecloud-platform-client-v2/api/FaxApi
12803
- * @version 219.0.0
13102
+ * @version 221.0.0
12804
13103
  *//**
12805
13104
  * Constructs a new FaxApi.
12806
13105
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -12849,7 +13148,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12849
13148
  */},{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(){/**
12850
13149
  * Flows service.
12851
13150
  * @module purecloud-platform-client-v2/api/FlowsApi
12852
- * @version 219.0.0
13151
+ * @version 221.0.0
12853
13152
  *//**
12854
13153
  * Constructs a new FlowsApi.
12855
13154
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -12897,7 +13196,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12897
13196
  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(){/**
12898
13197
  * Gamification service.
12899
13198
  * @module purecloud-platform-client-v2/api/GamificationApi
12900
- * @version 219.0.0
13199
+ * @version 221.0.0
12901
13200
  *//**
12902
13201
  * Constructs a new GamificationApi.
12903
13202
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -13550,7 +13849,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13550
13849
  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(){/**
13551
13850
  * GeneralDataProtectionRegulation service.
13552
13851
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
13553
- * @version 219.0.0
13852
+ * @version 221.0.0
13554
13853
  *//**
13555
13854
  * Constructs a new GeneralDataProtectionRegulationApi.
13556
13855
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -13585,7 +13884,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
13585
13884
  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(){/**
13586
13885
  * Geolocation service.
13587
13886
  * @module purecloud-platform-client-v2/api/GeolocationApi
13588
- * @version 219.0.0
13887
+ * @version 221.0.0
13589
13888
  *//**
13590
13889
  * Constructs a new GeolocationApi.
13591
13890
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -13619,7 +13918,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
13619
13918
  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(){/**
13620
13919
  * Greetings service.
13621
13920
  * @module purecloud-platform-client-v2/api/GreetingsApi
13622
- * @version 219.0.0
13921
+ * @version 221.0.0
13623
13922
  *//**
13624
13923
  * Constructs a new GreetingsApi.
13625
13924
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -13726,7 +14025,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
13726
14025
  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(){/**
13727
14026
  * Groups service.
13728
14027
  * @module purecloud-platform-client-v2/api/GroupsApi
13729
- * @version 219.0.0
14028
+ * @version 221.0.0
13730
14029
  *//**
13731
14030
  * Constructs a new GroupsApi.
13732
14031
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -13859,7 +14158,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
13859
14158
  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(){/**
13860
14159
  * IdentityProvider service.
13861
14160
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
13862
- * @version 219.0.0
14161
+ * @version 221.0.0
13863
14162
  *//**
13864
14163
  * Constructs a new IdentityProviderApi.
13865
14164
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -14015,7 +14314,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14015
14314
  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(){/**
14016
14315
  * InfrastructureAsCode service.
14017
14316
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
14018
- * @version 219.0.0
14317
+ * @version 221.0.0
14019
14318
  *//**
14020
14319
  * Constructs a new InfrastructureAsCodeApi.
14021
14320
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -14069,7 +14368,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
14069
14368
  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(){/**
14070
14369
  * Integrations service.
14071
14370
  * @module purecloud-platform-client-v2/api/IntegrationsApi
14072
- * @version 219.0.0
14371
+ * @version 221.0.0
14073
14372
  *//**
14074
14373
  * Constructs a new IntegrationsApi.
14075
14374
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -14708,7 +15007,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
14708
15007
  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(){/**
14709
15008
  * Journey service.
14710
15009
  * @module purecloud-platform-client-v2/api/JourneyApi
14711
- * @version 219.0.0
15010
+ * @version 221.0.0
14712
15011
  *//**
14713
15012
  * Constructs a new JourneyApi.
14714
15013
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -15188,7 +15487,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
15188
15487
  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(){/**
15189
15488
  * Knowledge service.
15190
15489
  * @module purecloud-platform-client-v2/api/KnowledgeApi
15191
- * @version 219.0.0
15490
+ * @version 221.0.0
15192
15491
  *//**
15193
15492
  * Constructs a new KnowledgeApi.
15194
15493
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -16251,7 +16550,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
16251
16550
  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(){/**
16252
16551
  * LanguageUnderstanding service.
16253
16552
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
16254
- * @version 219.0.0
16553
+ * @version 221.0.0
16255
16554
  *//**
16256
16555
  * Constructs a new LanguageUnderstandingApi.
16257
16556
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -16510,7 +16809,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
16510
16809
  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(){/**
16511
16810
  * Languages service.
16512
16811
  * @module purecloud-platform-client-v2/api/LanguagesApi
16513
- * @version 219.0.0
16812
+ * @version 221.0.0
16514
16813
  *//**
16515
16814
  * Constructs a new LanguagesApi.
16516
16815
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -16565,7 +16864,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16565
16864
  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(){/**
16566
16865
  * Learning service.
16567
16866
  * @module purecloud-platform-client-v2/api/LearningApi
16568
- * @version 219.0.0
16867
+ * @version 221.0.0
16569
16868
  *//**
16570
16869
  * Constructs a new LearningApi.
16571
16870
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -16836,7 +17135,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
16836
17135
  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(){/**
16837
17136
  * License service.
16838
17137
  * @module purecloud-platform-client-v2/api/LicenseApi
16839
- * @version 219.0.0
17138
+ * @version 221.0.0
16840
17139
  *//**
16841
17140
  * Constructs a new LicenseApi.
16842
17141
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -16890,7 +17189,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
16890
17189
  */},{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(){/**
16891
17190
  * Locations service.
16892
17191
  * @module purecloud-platform-client-v2/api/LocationsApi
16893
- * @version 219.0.0
17192
+ * @version 221.0.0
16894
17193
  *//**
16895
17194
  * Constructs a new LocationsApi.
16896
17195
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -16949,7 +17248,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16949
17248
  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(){/**
16950
17249
  * LogCapture service.
16951
17250
  * @module purecloud-platform-client-v2/api/LogCaptureApi
16952
- * @version 219.0.0
17251
+ * @version 221.0.0
16953
17252
  *//**
16954
17253
  * Constructs a new LogCaptureApi.
16955
17254
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -16999,7 +17298,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16999
17298
  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(){/**
17000
17299
  * Messaging service.
17001
17300
  * @module purecloud-platform-client-v2/api/MessagingApi
17002
- * @version 219.0.0
17301
+ * @version 221.0.0
17003
17302
  *//**
17004
17303
  * Constructs a new MessagingApi.
17005
17304
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -17089,7 +17388,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17089
17388
  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(){/**
17090
17389
  * MobileDevices service.
17091
17390
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
17092
- * @version 219.0.0
17391
+ * @version 221.0.0
17093
17392
  *//**
17094
17393
  * Constructs a new MobileDevicesApi.
17095
17394
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -17128,7 +17427,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17128
17427
  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(){/**
17129
17428
  * Notifications service.
17130
17429
  * @module purecloud-platform-client-v2/api/NotificationsApi
17131
- * @version 219.0.0
17430
+ * @version 221.0.0
17132
17431
  *//**
17133
17432
  * Constructs a new NotificationsApi.
17134
17433
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -17185,7 +17484,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
17185
17484
  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(){/**
17186
17485
  * OAuth service.
17187
17486
  * @module purecloud-platform-client-v2/api/OAuthApi
17188
- * @version 219.0.0
17487
+ * @version 221.0.0
17189
17488
  *//**
17190
17489
  * Constructs a new OAuthApi.
17191
17490
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -17270,7 +17569,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
17270
17569
  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(){/**
17271
17570
  * Objects service.
17272
17571
  * @module purecloud-platform-client-v2/api/ObjectsApi
17273
- * @version 219.0.0
17572
+ * @version 221.0.0
17274
17573
  *//**
17275
17574
  * Constructs a new ObjectsApi.
17276
17575
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -17356,7 +17655,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
17356
17655
  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(){/**
17357
17656
  * OperationalEvents service.
17358
17657
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
17359
- * @version 219.0.0
17658
+ * @version 221.0.0
17360
17659
  *//**
17361
17660
  * Constructs a new OperationalEventsApi.
17362
17661
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -17387,7 +17686,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
17387
17686
  */},{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(){/**
17388
17687
  * Organization service.
17389
17688
  * @module purecloud-platform-client-v2/api/OrganizationApi
17390
- * @version 219.0.0
17689
+ * @version 221.0.0
17391
17690
  *//**
17392
17691
  * Constructs a new OrganizationApi.
17393
17692
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -17492,7 +17791,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17492
17791
  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(){/**
17493
17792
  * OrganizationAuthorization service.
17494
17793
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
17495
- * @version 219.0.0
17794
+ * @version 221.0.0
17496
17795
  *//**
17497
17796
  * Constructs a new OrganizationAuthorizationApi.
17498
17797
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -17826,7 +18125,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
17826
18125
  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(){/**
17827
18126
  * Outbound service.
17828
18127
  * @module purecloud-platform-client-v2/api/OutboundApi
17829
- * @version 219.0.0
18128
+ * @version 221.0.0
17830
18129
  *//**
17831
18130
  * Constructs a new OutboundApi.
17832
18131
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -18957,7 +19256,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18957
19256
  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(){/**
18958
19257
  * Presence service.
18959
19258
  * @module purecloud-platform-client-v2/api/PresenceApi
18960
- * @version 219.0.0
19259
+ * @version 221.0.0
18961
19260
  *//**
18962
19261
  * Constructs a new PresenceApi.
18963
19262
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -19130,7 +19429,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19130
19429
  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(){/**
19131
19430
  * ProcessAutomation service.
19132
19431
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
19133
- * @version 219.0.0
19432
+ * @version 221.0.0
19134
19433
  *//**
19135
19434
  * Constructs a new ProcessAutomationApi.
19136
19435
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -19193,7 +19492,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
19193
19492
  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(){/**
19194
19493
  * Quality service.
19195
19494
  * @module purecloud-platform-client-v2/api/QualityApi
19196
- * @version 219.0.0
19495
+ * @version 221.0.0
19197
19496
  *//**
19198
19497
  * Constructs a new QualityApi.
19199
19498
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -19671,7 +19970,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
19671
19970
  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(){/**
19672
19971
  * Recording service.
19673
19972
  * @module purecloud-platform-client-v2/api/RecordingApi
19674
- * @version 219.0.0
19973
+ * @version 221.0.0
19675
19974
  *//**
19676
19975
  * Constructs a new RecordingApi.
19677
19976
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -19840,7 +20139,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
19840
20139
  * @param {Object} opts Optional parameters
19841
20140
  * @param {Number} opts.pageSize Page size. Maximum is 100. (default to 25)
19842
20141
  * @param {Number} opts.pageNumber Page number (default to 1)
19843
- * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
20142
+ * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber. It is recommended to set it to false for improved performance.
19844
20143
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
19845
20144
  */},{key:"getRecordingJobFailedrecordings",value:function getRecordingJobFailedrecordings(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
19846
20145
  if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getRecordingJobFailedrecordings';}return this.apiClient.callApi('/api/v2/recording/jobs/{jobId}/failedrecordings','GET',{'jobId':jobId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'includeTotal':opts['includeTotal'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -19853,7 +20152,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
19853
20152
  * @param {Object} opts.state Filter by state
19854
20153
  * @param {Boolean} opts.showOnlyMyJobs Show only my jobs
19855
20154
  * @param {Object} opts.jobType Job Type (Can be left empty for both)
19856
- * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
20155
+ * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber. It is recommended to set it to false for improved performance.
19857
20156
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
19858
20157
  */},{key:"getRecordingJobs",value:function getRecordingJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recording/jobs','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'state':opts['state'],'showOnlyMyJobs':opts['showOnlyMyJobs'],'jobType':opts['jobType'],'includeTotal':opts['includeTotal'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19859
20158
  * Get the encryption key configurations
@@ -20070,7 +20369,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20070
20369
  */},{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(){/**
20071
20370
  * ResponseManagement service.
20072
20371
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
20073
- * @version 219.0.0
20372
+ * @version 221.0.0
20074
20373
  *//**
20075
20374
  * Constructs a new ResponseManagementApi.
20076
20375
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -20191,7 +20490,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
20191
20490
  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(){/**
20192
20491
  * Routing service.
20193
20492
  * @module purecloud-platform-client-v2/api/RoutingApi
20194
- * @version 219.0.0
20493
+ * @version 221.0.0
20195
20494
  *//**
20196
20495
  * Constructs a new RoutingApi.
20197
20496
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -20372,14 +20671,15 @@ if(domainId===undefined||domainId===null){throw'Missing the required parameter "
20372
20671
  *
20373
20672
  * @param {String} domainName email domain
20374
20673
  * @param {String} routeId route ID
20375
- */},{key:"getRoutingEmailDomainRoute",value:function getRoutingEmailDomainRoute(domainName,routeId){// verify the required parameter 'domainName' is set
20674
+ * @param {Object} opts Optional parameters
20675
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
20676
+ */},{key:"getRoutingEmailDomainRoute",value:function getRoutingEmailDomainRoute(domainName,routeId,opts){opts=opts||{};// verify the required parameter 'domainName' is set
20376
20677
  if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';}// verify the required parameter 'routeId' is set
20377
- if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRoute';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes/{routeId}','GET',{'domainName':domainName,'routeId':routeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20678
+ if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRoute';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes/{routeId}','GET',{'domainName':domainName,'routeId':routeId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20378
20679
  * Get a route identity resolution setting.
20379
20680
  *
20380
20681
  * @param {String} domainName email domain
20381
20682
  * @param {String} routeId route ID
20382
- * getRoutingEmailDomainRouteIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20383
20683
  */},{key:"getRoutingEmailDomainRouteIdentityresolution",value:function getRoutingEmailDomainRouteIdentityresolution(domainName,routeId){// verify the required parameter 'domainName' is set
20384
20684
  if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';}// verify the required parameter 'routeId' is set
20385
20685
  if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRouteIdentityresolution';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes/{routeId}/identityresolution','GET',{'domainName':domainName,'routeId':routeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -20390,8 +20690,9 @@ if(routeId===undefined||routeId===null){throw'Missing the required parameter "ro
20390
20690
  * @param {Number} opts.pageSize Page size (default to 25)
20391
20691
  * @param {Number} opts.pageNumber Page number (default to 1)
20392
20692
  * @param {String} opts.pattern Filter routes by the route's pattern property
20693
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
20393
20694
  */},{key:"getRoutingEmailDomainRoutes",value:function getRoutingEmailDomainRoutes(domainName,opts){opts=opts||{};// verify the required parameter 'domainName' is set
20394
- if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes','GET',{'domainName':domainName},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pattern':opts['pattern']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20695
+ if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes','GET',{'domainName':domainName},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pattern':opts['pattern'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20395
20696
  * Get domains
20396
20697
  *
20397
20698
  * @param {Object} opts Optional parameters
@@ -20487,8 +20788,10 @@ if(predictorId===undefined||predictorId===null){throw'Missing the required param
20487
20788
  * Get details about this queue.
20488
20789
  *
20489
20790
  * @param {String} queueId Queue ID
20490
- */},{key:"getRoutingQueue",value:function getRoutingQueue(queueId){// verify the required parameter 'queueId' is set
20491
- if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueue';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}','GET',{'queueId':queueId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20791
+ * @param {Object} opts Optional parameters
20792
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
20793
+ */},{key:"getRoutingQueue",value:function getRoutingQueue(queueId,opts){opts=opts||{};// verify the required parameter 'queueId' is set
20794
+ if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueue';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}','GET',{'queueId':queueId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20492
20795
  * Get an assistant associated with a queue.
20493
20796
  *
20494
20797
  * @param {String} queueId Queue ID
@@ -20518,7 +20821,6 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
20518
20821
  * Get Queue IdentityResolution Settings.
20519
20822
  *
20520
20823
  * @param {String} queueId Queue ID
20521
- * getRoutingQueueIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20522
20824
  */},{key:"getRoutingQueueIdentityresolution",value:function getRoutingQueueIdentityresolution(queueId){// verify the required parameter 'queueId' is set
20523
20825
  if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueueIdentityresolution';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}/identityresolution','GET',{'queueId':queueId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20524
20826
  * Get Estimated Wait Time
@@ -20586,7 +20888,8 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
20586
20888
  * @param {Array.<String>} opts.peerId Include only queues with the specified peer ID(s)
20587
20889
  * @param {String} opts.cannedResponseLibraryId Include only queues explicitly associated with the specified canned response library ID
20588
20890
  * @param {Boolean} opts.hasPeer Include only queues with a peer ID
20589
- */},{key:"getRoutingQueues",value:function getRoutingQueues(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/queues','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder'],'name':opts['name'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi'),'peerId':this.apiClient.buildCollectionParam(opts['peerId'],'multi'),'cannedResponseLibraryId':opts['cannedResponseLibraryId'],'hasPeer':opts['hasPeer']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20891
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
20892
+ */},{key:"getRoutingQueues",value:function getRoutingQueues(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/queues','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder'],'name':opts['name'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi'),'peerId':this.apiClient.buildCollectionParam(opts['peerId'],'multi'),'cannedResponseLibraryId':opts['cannedResponseLibraryId'],'hasPeer':opts['hasPeer'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20590
20893
  * Get a paged listing of simplified queue objects, filterable by name, queue ID(s), or division ID(s).
20591
20894
  *
20592
20895
  * @param {Object} opts Optional parameters
@@ -20692,7 +20995,6 @@ if(phoneNumberType===undefined||phoneNumberType===null){throw'Missing the requir
20692
20995
  * Get a SMS identity resolution settings.
20693
20996
  *
20694
20997
  * @param {String} addressId Address ID
20695
- * getRoutingSmsIdentityresolutionPhonenumber is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20696
20998
  */},{key:"getRoutingSmsIdentityresolutionPhonenumber",value:function getRoutingSmsIdentityresolutionPhonenumber(addressId){// verify the required parameter 'addressId' is set
20697
20999
  if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling getRoutingSmsIdentityresolutionPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}','GET',{'addressId':addressId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20698
21000
  * Get a phone number provisioned for SMS.
@@ -20716,7 +21018,8 @@ if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required p
20716
21018
  * @param {String} opts.language A language tag (which is sometimes referred to as a locale identifier) to use to localize country field and sort operations (default to en-US)
20717
21019
  * @param {String} opts.integrationId Filter on the Genesys Cloud integration id to which the phone number belongs to
20718
21020
  * @param {String} opts.supportedContentId Filter based on the supported content ID
20719
- */},{key:"getRoutingSmsPhonenumbers",value:function getRoutingSmsPhonenumbers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers','GET',{},{'phoneNumber':opts['phoneNumber'],'phoneNumberType':this.apiClient.buildCollectionParam(opts['phoneNumberType'],'multi'),'phoneNumberStatus':this.apiClient.buildCollectionParam(opts['phoneNumberStatus'],'multi'),'countryCode':this.apiClient.buildCollectionParam(opts['countryCode'],'multi'),'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'language':opts['language'],'integration.id':opts['integrationId'],'supportedContent.id':opts['supportedContentId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21021
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
21022
+ */},{key:"getRoutingSmsPhonenumbers",value:function getRoutingSmsPhonenumbers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers','GET',{},{'phoneNumber':opts['phoneNumber'],'phoneNumberType':this.apiClient.buildCollectionParam(opts['phoneNumberType'],'multi'),'phoneNumberStatus':this.apiClient.buildCollectionParam(opts['phoneNumberStatus'],'multi'),'countryCode':this.apiClient.buildCollectionParam(opts['countryCode'],'multi'),'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'language':opts['language'],'integration.id':opts['integrationId'],'supportedContent.id':opts['supportedContentId'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20720
21023
  * Get the user's Direct Routing Backup settings.
20721
21024
  *
20722
21025
  * @param {String} userId User ID
@@ -21137,7 +21440,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21137
21440
  * @param {String} domainName email domain
21138
21441
  * @param {String} routeId route ID
21139
21442
  * @param {Object} body
21140
- * putRoutingEmailDomainRouteIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21141
21443
  */},{key:"putRoutingEmailDomainRouteIdentityresolution",value:function putRoutingEmailDomainRouteIdentityresolution(domainName,routeId,body){// verify the required parameter 'domainName' is set
21142
21444
  if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';}// verify the required parameter 'routeId' is set
21143
21445
  if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';}// verify the required parameter 'body' is set
@@ -21165,7 +21467,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21165
21467
  *
21166
21468
  * @param {String} queueId Queue ID
21167
21469
  * @param {Object} body
21168
- * putRoutingQueueIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21169
21470
  */},{key:"putRoutingQueueIdentityresolution",value:function putRoutingQueueIdentityresolution(queueId,body){// verify the required parameter 'queueId' is set
21170
21471
  if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';}// verify the required parameter 'body' is set
21171
21472
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}/identityresolution','PUT',{'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -21183,7 +21484,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21183
21484
  *
21184
21485
  * @param {String} addressId Address ID
21185
21486
  * @param {Object} body
21186
- * putRoutingSmsIdentityresolutionPhonenumber is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21187
21487
  */},{key:"putRoutingSmsIdentityresolutionPhonenumber",value:function putRoutingSmsIdentityresolutionPhonenumber(addressId,body){// verify the required parameter 'addressId' is set
21188
21488
  if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';}// verify the required parameter 'body' is set
21189
21489
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}','PUT',{'addressId':addressId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -21238,7 +21538,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21238
21538
  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(){/**
21239
21539
  * SCIM service.
21240
21540
  * @module purecloud-platform-client-v2/api/SCIMApi
21241
- * @version 219.0.0
21541
+ * @version 221.0.0
21242
21542
  *//**
21243
21543
  * Constructs a new SCIMApi.
21244
21544
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -21463,7 +21763,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21463
21763
  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(){/**
21464
21764
  * ScreenRecording service.
21465
21765
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
21466
- * @version 219.0.0
21766
+ * @version 221.0.0
21467
21767
  *//**
21468
21768
  * Constructs a new ScreenRecordingApi.
21469
21769
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -21478,7 +21778,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21478
21778
  */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(){/**
21479
21779
  * Scripts service.
21480
21780
  * @module purecloud-platform-client-v2/api/ScriptsApi
21481
- * @version 219.0.0
21781
+ * @version 221.0.0
21482
21782
  *//**
21483
21783
  * Constructs a new ScriptsApi.
21484
21784
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -21547,6 +21847,16 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
21547
21847
  * @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
21548
21848
  * @param {String} opts.divisionIds Filters scripts to requested divisionIds
21549
21849
  */},{key:"getScriptsPublished",value:function getScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':opts['expand'],'name':opts['name'],'feature':opts['feature'],'flowId':opts['flowId'],'scriptDataVersion':opts['scriptDataVersion'],'divisionIds':opts['divisionIds']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21850
+ * Get the published variables
21851
+ *
21852
+ * @param {String} scriptId Script ID
21853
+ * @param {Object} opts Optional parameters
21854
+ * @param {Object} opts.input input
21855
+ * @param {Object} opts.output output
21856
+ * @param {Object} opts.type type
21857
+ * @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
21858
+ */},{key:"getScriptsPublishedDivisionviewVariables",value:function getScriptsPublishedDivisionviewVariables(scriptId,opts){opts=opts||{};// verify the required parameter 'scriptId' is set
21859
+ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "scriptId" when calling getScriptsPublishedDivisionviewVariables';}return this.apiClient.callApi('/api/v2/scripts/published/divisionviews/{scriptId}/variables','GET',{'scriptId':scriptId},{'input':opts['input'],'output':opts['output'],'type':opts['type'],'scriptDataVersion':opts['scriptDataVersion']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21550
21860
  * Get the published scripts metadata.
21551
21861
  *
21552
21862
  * @param {Object} opts Optional parameters
@@ -21614,7 +21924,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
21614
21924
  */},{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(){/**
21615
21925
  * Search service.
21616
21926
  * @module purecloud-platform-client-v2/api/SearchApi
21617
- * @version 219.0.0
21927
+ * @version 221.0.0
21618
21928
  *//**
21619
21929
  * Constructs a new SearchApi.
21620
21930
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -21786,7 +22096,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21786
22096
  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(){/**
21787
22097
  * Settings service.
21788
22098
  * @module purecloud-platform-client-v2/api/SettingsApi
21789
- * @version 219.0.0
22099
+ * @version 221.0.0
21790
22100
  *//**
21791
22101
  * Constructs a new SettingsApi.
21792
22102
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -21797,6 +22107,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21797
22107
  * Reset email threading settings to default
21798
22108
  *
21799
22109
  */return _createClass(SettingsApi,[{key:"deleteEmailsSettingsThreading",value:function deleteEmailsSettingsThreading(){return this.apiClient.callApi('/api/v2/emails/settings/threading','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22110
+ * Delete settings
22111
+ *
22112
+ */},{key:"deleteExternalcontactsSettings",value:function deleteExternalcontactsSettings(){return this.apiClient.callApi('/api/v2/externalcontacts/settings','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21800
22113
  * Delete agent auto answer settings
21801
22114
  *
21802
22115
  * @param {String} agentId The agent to apply the auto answer settings to
@@ -21808,6 +22121,9 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
21808
22121
  * Get email threading settings
21809
22122
  *
21810
22123
  */},{key:"getEmailsSettingsThreading",value:function getEmailsSettingsThreading(){return this.apiClient.callApi('/api/v2/emails/settings/threading','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22124
+ * Get settings
22125
+ *
22126
+ */},{key:"getExternalcontactsSettings",value:function getExternalcontactsSettings(){return this.apiClient.callApi('/api/v2/externalcontacts/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21811
22127
  * Get the execution history enabled setting.
21812
22128
  * Get the execution history enabled setting.
21813
22129
  */},{key:"getSettingsExecutiondata",value:function getSettingsExecutiondata(){return this.apiClient.callApi('/api/v2/settings/executiondata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -21838,6 +22154,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21838
22154
  */},{key:"patchUsersAgentuiAgentsAutoanswerAgentIdSettings",value:function patchUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId,body){// verify the required parameter 'agentId' is set
21839
22155
  if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';}// verify the required parameter 'body' is set
21840
22156
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PATCH',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22157
+ * Set settings
22158
+ *
22159
+ * @param {Object} opts Optional parameters
22160
+ * @param {Object} opts.body
22161
+ */},{key:"putExternalcontactsSettings",value:function putExternalcontactsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21841
22162
  * Set agent auto answer settings
21842
22163
  *
21843
22164
  * @param {String} agentId The agent to apply the auto answer settings to
@@ -21847,7 +22168,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
21847
22168
  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(){/**
21848
22169
  * SocialMedia service.
21849
22170
  * @module purecloud-platform-client-v2/api/SocialMediaApi
21850
- * @version 219.0.0
22171
+ * @version 221.0.0
21851
22172
  *//**
21852
22173
  * Constructs a new SocialMediaApi.
21853
22174
  * @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -22184,7 +22505,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22184
22505
  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(){/**
22185
22506
  * SpeechTextAnalytics service.
22186
22507
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
22187
- * @version 219.0.0
22508
+ * @version 221.0.0
22188
22509
  *//**
22189
22510
  * Constructs a new SpeechTextAnalyticsApi.
22190
22511
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -22393,13 +22714,11 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
22393
22714
  * @param {Object} opts Optional parameters
22394
22715
  * @param {String} opts.communicationId Communication id associated with the conversation. Please provide a valid communicationId when requesting non-email interactions.
22395
22716
  * @param {String} opts.recordingId Recording id associated with the communication. Please provide a valid recordingId when requesting voice interactions.
22396
- * getSpeechandtextanalyticsTranslationsLanguageConversation is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22397
22717
  */},{key:"getSpeechandtextanalyticsTranslationsLanguageConversation",value:function getSpeechandtextanalyticsTranslationsLanguageConversation(languageId,conversationId,opts){opts=opts||{};// verify the required parameter 'languageId' is set
22398
22718
  if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';}// verify the required parameter 'conversationId' is set
22399
22719
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/translations/languages/{languageId}/conversations/{conversationId}','GET',{'languageId':languageId,'conversationId':conversationId},{'communicationId':opts['communicationId'],'recordingId':opts['recordingId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22400
22720
  * Get supported translation languages
22401
22721
  *
22402
- * getSpeechandtextanalyticsTranslationsLanguages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22403
22722
  */},{key:"getSpeechandtextanalyticsTranslationsLanguages",value:function getSpeechandtextanalyticsTranslationsLanguages(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/translations/languages','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22404
22723
  * Patch Speech And Text Analytics Settings
22405
22724
  *
@@ -22507,7 +22826,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22507
22826
  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(){/**
22508
22827
  * Stations service.
22509
22828
  * @module purecloud-platform-client-v2/api/StationsApi
22510
- * @version 219.0.0
22829
+ * @version 221.0.0
22511
22830
  *//**
22512
22831
  * Constructs a new StationsApi.
22513
22832
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -22539,7 +22858,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
22539
22858
  */},{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(){/**
22540
22859
  * Suggest service.
22541
22860
  * @module purecloud-platform-client-v2/api/SuggestApi
22542
- * @version 219.0.0
22861
+ * @version 221.0.0
22543
22862
  *//**
22544
22863
  * Constructs a new SuggestApi.
22545
22864
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -22579,7 +22898,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22579
22898
  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(){/**
22580
22899
  * TaskManagement service.
22581
22900
  * @module purecloud-platform-client-v2/api/TaskManagementApi
22582
- * @version 219.0.0
22901
+ * @version 221.0.0
22583
22902
  *//**
22584
22903
  * Constructs a new TaskManagementApi.
22585
22904
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -22657,14 +22976,12 @@ if(workbinId===undefined||workbinId===null){throw'Missing the required parameter
22657
22976
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22658
22977
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22659
22978
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22660
- * getTaskmanagementWorkbinHistory is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22661
22979
  */},{key:"getTaskmanagementWorkbinHistory",value:function getTaskmanagementWorkbinHistory(workbinId,opts){opts=opts||{};// verify the required parameter 'workbinId' is set
22662
22980
  if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinHistory';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}/history','GET',{'workbinId':workbinId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22663
22981
  * Get a version of a workbin
22664
22982
  *
22665
22983
  * @param {String} workbinId Workbin ID
22666
22984
  * @param {Number} entityVersion Workbin version
22667
- * getTaskmanagementWorkbinVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22668
22985
  */},{key:"getTaskmanagementWorkbinVersion",value:function getTaskmanagementWorkbinVersion(workbinId,entityVersion){// verify the required parameter 'workbinId' is set
22669
22986
  if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';}// verify the required parameter 'entityVersion' is set
22670
22987
  if(entityVersion===undefined||entityVersion===null){throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkbinVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}/versions/{entityVersion}','GET',{'workbinId':workbinId,'entityVersion':entityVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22675,7 +22992,6 @@ if(entityVersion===undefined||entityVersion===null){throw'Missing the required p
22675
22992
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22676
22993
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22677
22994
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22678
- * getTaskmanagementWorkbinVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22679
22995
  */},{key:"getTaskmanagementWorkbinVersions",value:function getTaskmanagementWorkbinVersions(workbinId,opts){opts=opts||{};// verify the required parameter 'workbinId' is set
22680
22996
  if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}/versions','GET',{'workbinId':workbinId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22681
22997
  * Get a workitem
@@ -22692,7 +23008,6 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
22692
23008
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22693
23009
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22694
23010
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22695
- * getTaskmanagementWorkitemHistory is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22696
23011
  */},{key:"getTaskmanagementWorkitemHistory",value:function getTaskmanagementWorkitemHistory(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
22697
23012
  if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemHistory';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/history','GET',{'workitemId':workitemId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22698
23013
  * Get all wrapup codes added for the given user for a workitem.
@@ -22711,7 +23026,6 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
22711
23026
  *
22712
23027
  * @param {String} workitemId Workitem ID
22713
23028
  * @param {Number} entityVersion Workitem version
22714
- * getTaskmanagementWorkitemVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22715
23029
  */},{key:"getTaskmanagementWorkitemVersion",value:function getTaskmanagementWorkitemVersion(workitemId,entityVersion){// verify the required parameter 'workitemId' is set
22716
23030
  if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';}// verify the required parameter 'entityVersion' is set
22717
23031
  if(entityVersion===undefined||entityVersion===null){throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkitemVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/versions/{entityVersion}','GET',{'workitemId':workitemId,'entityVersion':entityVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22722,7 +23036,6 @@ if(entityVersion===undefined||entityVersion===null){throw'Missing the required p
22722
23036
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22723
23037
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22724
23038
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22725
- * getTaskmanagementWorkitemVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22726
23039
  */},{key:"getTaskmanagementWorkitemVersions",value:function getTaskmanagementWorkitemVersions(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
22727
23040
  if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/versions','GET',{'workitemId':workitemId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22728
23041
  * Get all wrapup codes added for all users for a workitem.
@@ -22864,7 +23177,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
22864
23177
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22865
23178
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22866
23179
  * @param {Array.<String>} opts.fields Comma-separated list of fields. The response will contain only versions created as a result of changes to these fields.
22867
- * getTaskmanagementWorktypeHistory is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22868
23180
  */},{key:"getTaskmanagementWorktypeHistory",value:function getTaskmanagementWorktypeHistory(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
22869
23181
  if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeHistory';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/history','GET',{'worktypeId':worktypeId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder'],'fields':this.apiClient.buildCollectionParam(opts['fields'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22870
23182
  * Get a status
@@ -22883,7 +23195,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
22883
23195
  *
22884
23196
  * @param {String} worktypeId Worktype id
22885
23197
  * @param {Number} entityVersion Worktype version
22886
- * getTaskmanagementWorktypeVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22887
23198
  */},{key:"getTaskmanagementWorktypeVersion",value:function getTaskmanagementWorktypeVersion(worktypeId,entityVersion){// verify the required parameter 'worktypeId' is set
22888
23199
  if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';}// verify the required parameter 'entityVersion' is set
22889
23200
  if(entityVersion===undefined||entityVersion===null){throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorktypeVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/versions/{entityVersion}','GET',{'worktypeId':worktypeId,'entityVersion':entityVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22894,7 +23205,6 @@ if(entityVersion===undefined||entityVersion===null){throw'Missing the required p
22894
23205
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22895
23206
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22896
23207
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22897
- * getTaskmanagementWorktypeVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22898
23208
  */},{key:"getTaskmanagementWorktypeVersions",value:function getTaskmanagementWorktypeVersions(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
22899
23209
  if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/versions','GET',{'worktypeId':worktypeId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22900
23210
  * Update the attributes of a workbin
@@ -23096,7 +23406,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
23096
23406
  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(){/**
23097
23407
  * Teams service.
23098
23408
  * @module purecloud-platform-client-v2/api/TeamsApi
23099
- * @version 219.0.0
23409
+ * @version 221.0.0
23100
23410
  *//**
23101
23411
  * Constructs a new TeamsApi.
23102
23412
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -23176,7 +23486,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23176
23486
  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(){/**
23177
23487
  * Telephony service.
23178
23488
  * @module purecloud-platform-client-v2/api/TelephonyApi
23179
- * @version 219.0.0
23489
+ * @version 221.0.0
23180
23490
  *//**
23181
23491
  * Constructs a new TelephonyApi.
23182
23492
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -23223,7 +23533,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
23223
23533
  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(){/**
23224
23534
  * TelephonyProvidersEdge service.
23225
23535
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
23226
- * @version 219.0.0
23536
+ * @version 221.0.0
23227
23537
  *//**
23228
23538
  * Constructs a new TelephonyProvidersEdgeApi.
23229
23539
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -24059,7 +24369,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
24059
24369
  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(){/**
24060
24370
  * Textbots service.
24061
24371
  * @module purecloud-platform-client-v2/api/TextbotsApi
24062
- * @version 219.0.0
24372
+ * @version 221.0.0
24063
24373
  *//**
24064
24374
  * Constructs a new TextbotsApi.
24065
24375
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -24072,8 +24382,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24072
24382
  * @param {Object} opts Optional parameters
24073
24383
  * @param {Array.<String>} opts.botType Bot types
24074
24384
  * @param {String} opts.botName Bot name
24075
- * @param {Array.<String>} opts.botId Bot IDs
24076
- * @param {Number} opts.pageSize The maximum results to return (default to 25)
24385
+ * @param {Array.<String>} opts.botId Bot IDs. Maximum of 50
24386
+ * @param {Number} opts.pageSize The maximum results to return. Maximum of 100 (default to 25)
24077
24387
  */return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
24078
24388
  * Issue a bot flow turn event
24079
24389
  * Send a turn event to an executing bot flow and produce the next action to take.
@@ -24094,7 +24404,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
24094
24404
  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(){/**
24095
24405
  * Tokens service.
24096
24406
  * @module purecloud-platform-client-v2/api/TokensApi
24097
- * @version 219.0.0
24407
+ * @version 221.0.0
24098
24408
  *//**
24099
24409
  * Constructs a new TokensApi.
24100
24410
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -24128,7 +24438,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
24128
24438
  */},{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(){/**
24129
24439
  * Uploads service.
24130
24440
  * @module purecloud-platform-client-v2/api/UploadsApi
24131
- * @version 219.0.0
24441
+ * @version 221.0.0
24132
24442
  *//**
24133
24443
  * Constructs a new UploadsApi.
24134
24444
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -24196,7 +24506,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24196
24506
  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(){/**
24197
24507
  * Usage service.
24198
24508
  * @module purecloud-platform-client-v2/api/UsageApi
24199
- * @version 219.0.0
24509
+ * @version 221.0.0
24200
24510
  *//**
24201
24511
  * Constructs a new UsageApi.
24202
24512
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -24250,7 +24560,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24250
24560
  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(){/**
24251
24561
  * UserRecordings service.
24252
24562
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
24253
- * @version 219.0.0
24563
+ * @version 221.0.0
24254
24564
  *//**
24255
24565
  * Constructs a new UserRecordingsApi.
24256
24566
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -24307,7 +24617,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
24307
24617
  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(){/**
24308
24618
  * Users service.
24309
24619
  * @module purecloud-platform-client-v2/api/UsersApi
24310
- * @version 219.0.0
24620
+ * @version 221.0.0
24311
24621
  *//**
24312
24622
  * Constructs a new UsersApi.
24313
24623
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -25034,7 +25344,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
25034
25344
  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(){/**
25035
25345
  * Utilities service.
25036
25346
  * @module purecloud-platform-client-v2/api/UtilitiesApi
25037
- * @version 219.0.0
25347
+ * @version 221.0.0
25038
25348
  *//**
25039
25349
  * Constructs a new UtilitiesApi.
25040
25350
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -25061,7 +25371,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25061
25371
  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(){/**
25062
25372
  * Voicemail service.
25063
25373
  * @module purecloud-platform-client-v2/api/VoicemailApi
25064
- * @version 219.0.0
25374
+ * @version 221.0.0
25065
25375
  *//**
25066
25376
  * Constructs a new VoicemailApi.
25067
25377
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -25223,7 +25533,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
25223
25533
  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(){/**
25224
25534
  * WebChat service.
25225
25535
  * @module purecloud-platform-client-v2/api/WebChatApi
25226
- * @version 219.0.0
25536
+ * @version 221.0.0
25227
25537
  *//**
25228
25538
  * Constructs a new WebChatApi.
25229
25539
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -25367,7 +25677,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25367
25677
  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(){/**
25368
25678
  * WebDeployments service.
25369
25679
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
25370
- * @version 219.0.0
25680
+ * @version 221.0.0
25371
25681
  *//**
25372
25682
  * Constructs a new WebDeploymentsApi.
25373
25683
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -25445,7 +25755,6 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25445
25755
  * Get a deployment identity resolution setting.
25446
25756
  *
25447
25757
  * @param {String} deploymentId The deployment ID
25448
- * getWebdeploymentsDeploymentIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
25449
25758
  */},{key:"getWebdeploymentsDeploymentIdentityresolution",value:function getWebdeploymentsDeploymentIdentityresolution(deploymentId){// verify the required parameter 'deploymentId' is set
25450
25759
  if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentIdentityresolution';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}/identityresolution','GET',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
25451
25760
  * Get deployments
@@ -25496,13 +25805,12 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
25496
25805
  *
25497
25806
  * @param {String} deploymentId The deployment ID
25498
25807
  * @param {Object} body
25499
- * putWebdeploymentsDeploymentIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
25500
25808
  */},{key:"putWebdeploymentsDeploymentIdentityresolution",value:function putWebdeploymentsDeploymentIdentityresolution(deploymentId,body){// verify the required parameter 'deploymentId' is set
25501
25809
  if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';}// verify the required parameter 'body' is set
25502
25810
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}/identityresolution','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
25503
25811
  * WebMessaging service.
25504
25812
  * @module purecloud-platform-client-v2/api/WebMessagingApi
25505
- * @version 219.0.0
25813
+ * @version 221.0.0
25506
25814
  *//**
25507
25815
  * Constructs a new WebMessagingApi.
25508
25816
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -25518,7 +25826,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25518
25826
  */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(){/**
25519
25827
  * Widgets service.
25520
25828
  * @module purecloud-platform-client-v2/api/WidgetsApi
25521
- * @version 219.0.0
25829
+ * @version 221.0.0
25522
25830
  *//**
25523
25831
  * Constructs a new WidgetsApi.
25524
25832
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -25558,7 +25866,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25558
25866
  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(){/**
25559
25867
  * WorkforceManagement service.
25560
25868
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
25561
- * @version 219.0.0
25869
+ * @version 221.0.0
25562
25870
  *//**
25563
25871
  * Constructs a new WorkforceManagementApi.
25564
25872
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -27379,7 +27687,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
27379
27687
  * </pre>
27380
27688
  * </p>
27381
27689
  * @module purecloud-platform-client-v2/index
27382
- * @version 219.0.0
27690
+ * @version 221.0.0
27383
27691
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
27384
27692
  * The ApiClient constructor.
27385
27693
  * @property {module:purecloud-platform-client-v2/ApiClient}
@@ -27414,6 +27722,9 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
27414
27722
  * The BillingApi service constructor.
27415
27723
  * @property {module:purecloud-platform-client-v2/api/BillingApi}
27416
27724
  */this.BillingApi=BillingApi;/**
27725
+ * The BusinessRulesApi service constructor.
27726
+ * @property {module:purecloud-platform-client-v2/api/BusinessRulesApi}
27727
+ */this.BusinessRulesApi=BusinessRulesApi;/**
27417
27728
  * The CarrierServicesApi service constructor.
27418
27729
  * @property {module:purecloud-platform-client-v2/api/CarrierServicesApi}
27419
27730
  */this.CarrierServicesApi=CarrierServicesApi;/**