purecloud-platform-client-v2 222.0.0 → 224.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1863 -540
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1863 -540
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +745 -410
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +745 -410
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1681 -998
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AIStudioApi.js +387 -0
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +3 -2
  13. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +2 -2
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +4 -2
  18. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +52 -8
  22. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +327 -16
  27. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +89 -2
  40. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +176 -1
  44. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +2 -3
  52. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/RoutingApi.js +31 -1
  67. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +71 -8
  73. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +51 -1
  74. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TeamsApi.js +2 -2
  78. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +43 -2
  80. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UsersApi.js +31 -1
  86. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +2 -2
  88. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +524 -421
  93. 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/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
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 _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{var o=function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});};o("next",0),o("throw",1),o("return",2);}},_regeneratorDefine2(e,r,n,t);}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
@@ -6042,7 +6042,7 @@ token=removeBrackets(token);return!dots&&i?'['+token+']':token;}).join(dots?'.':
6042
6042
  formData=formData||new FormData();// eslint-disable-next-line no-param-reassign
6043
6043
  options=utils$1.toFlatObject(options,{metaTokens:true,dots:false,indexes:false},false,function defined(option,source){// eslint-disable-next-line no-eq-null,eqeqeq
6044
6044
  return!utils$1.isUndefined(source[option]);});var metaTokens=options.metaTokens;// eslint-disable-next-line no-use-before-define
6045
- var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=options.indexes;var _Blob=options.Blob||typeof Blob!=='undefined'&&Blob;var useBlob=_Blob&&utils$1.isSpecCompliantForm(formData);if(!utils$1.isFunction(visitor)){throw new TypeError('visitor must be a function');}function convertValue(value){if(value===null)return'';if(utils$1.isDate(value)){return value.toISOString();}if(!useBlob&&utils$1.isBlob(value)){throw new AxiosError('Blob is not supported. Use a Buffer instead.');}if(utils$1.isArrayBuffer(value)||utils$1.isTypedArray(value)){return useBlob&&typeof Blob==='function'?new Blob([value]):Buffer.from(value);}return value;}/**
6045
+ var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=options.indexes;var _Blob=options.Blob||typeof Blob!=='undefined'&&Blob;var useBlob=_Blob&&utils$1.isSpecCompliantForm(formData);if(!utils$1.isFunction(visitor)){throw new TypeError('visitor must be a function');}function convertValue(value){if(value===null)return'';if(utils$1.isDate(value)){return value.toISOString();}if(utils$1.isBoolean(value)){return value.toString();}if(!useBlob&&utils$1.isBlob(value)){throw new AxiosError('Blob is not supported. Use a Buffer instead.');}if(utils$1.isArrayBuffer(value)||utils$1.isTypedArray(value)){return useBlob&&typeof Blob==='function'?new Blob([value]):Buffer.from(value);}return value;}/**
6046
6046
  * Default visitor.
6047
6047
  *
6048
6048
  * @param {*} value
@@ -6297,10 +6297,10 @@ 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,_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
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__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));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__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},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__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Response(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_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__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(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,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.n){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.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;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 4: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'));_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
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.n=5;return fetch(request,fetchOptions);case 5:response=_context8.v;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.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;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 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));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
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
  *
@@ -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.9.0";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.10.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
  *
@@ -6349,10 +6349,10 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
6349
6349
  * @param {?Object} config
6350
6350
  *
6351
6351
  * @returns {Promise} The Promise to be fulfilled
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
- stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context9.t0.stack){_context9.t0.stack=stack;// match without the 2 top stack lines
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,_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
6352
+ */return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(configOrUrl,config){var dummy,stack,_t8;return _regenerator().w(function(_context9){while(1)switch(_context9.n){case 0:_context9.p=0;_context9.n=1;return this._request(configOrUrl,config);case 1:return _context9.a(2,_context9.v);case 2:_context9.p=2;_t8=_context9.v;if(_t8 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
6353
+ stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_t8.stack){_t8.stack=stack;// match without the 2 top stack lines
6354
+ }else if(stack&&!String(_t8.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_t8.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
6355
+ }}throw _t8;case 3:return _context9.a(2);}},_callee8,this,[[0,2]]);}));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
@@ -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 _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
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__*/_regenerator().m(function _callee9(config){return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:_context0.n=1;return _this3.preHook(config);case 1:config=_context0.v;return _context0.a(2,config);}},_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 _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
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__*/_regenerator().m(function _callee0(response){return _regenerator().w(function(_context1){while(1)switch(_context1.n){case 0:_context1.n=1;return _this3.postHook(response);case 1:response=_context1.v;return _context1.a(2,response);}},_callee0);}));return function(_x10){return _ref22.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(error){return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
6437
+ return _context10.a(2,Promise.reject(error));}},_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 222.0.0
6461
+ * @version 224.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
@@ -6798,10 +6798,116 @@ var formData=new FormData();formData.set(key,_formParams[key]);request.setData(f
6798
6798
  var data=that.returnExtended===true?{status:response.status,statusText:response.statusText,headers:response.headers,body:response.data,text:response.text,error:null}:response.data?response.data:response.text;// Debug logging
6799
6799
  that.config.logger.log('trace',response.status,httpMethod,url,request.headers,response.headers,bodyParam,undefined);that.config.logger.log('debug',response.status,httpMethod,url,request.headers,undefined,bodyParam,undefined);// Resolve promise
6800
6800
  resolve(data);})["catch"](function(error){var data=error;if(error.response&&error.response.status==401&&that.config.refresh_access_token&&that.authData.refreshToken&&that.authData.refreshToken!==""){that._handleExpiredAccessToken().then(function(){sendRequest(that);})["catch"](function(err){reject(err);});}else if(error.response){// Log error
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(){/**
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 AIStudioApi=/*#__PURE__*/function(){/**
6802
+ * AIStudio service.
6803
+ * @module purecloud-platform-client-v2/api/AIStudioApi
6804
+ * @version 224.0.0
6805
+ *//**
6806
+ * Constructs a new AIStudioApi.
6807
+ * @alias module:purecloud-platform-client-v2/api/AIStudioApi
6808
+ * @class
6809
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
6810
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
6811
+ */function AIStudioApi(apiClient){_classCallCheck(this,AIStudioApi);this.apiClient=apiClient||ApiClient.instance;}/**
6812
+ * Start the deletion of a guide.
6813
+ *
6814
+ * @param {String} guideId Guide ID
6815
+ * deleteGuideJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6816
+ */return _createClass(AIStudioApi,[{key:"deleteGuideJobs",value:function deleteGuideJobs(guideId){// verify the required parameter 'guideId' is set
6817
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling deleteGuideJobs';}return this.apiClient.callApi('/api/v2/guides/{guideId}/jobs','DELETE',{'guideId':guideId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6818
+ * Get guide.
6819
+ *
6820
+ * @param {String} guideId Guide ID
6821
+ * getGuide is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6822
+ */},{key:"getGuide",value:function getGuide(guideId){// verify the required parameter 'guideId' is set
6823
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuide';}return this.apiClient.callApi('/api/v2/guides/{guideId}','GET',{'guideId':guideId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6824
+ * Get the specified guide deletion job.
6825
+ *
6826
+ * @param {String} guideId Guide ID
6827
+ * @param {String} jobId jobId
6828
+ * getGuideJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6829
+ */},{key:"getGuideJob",value:function getGuideJob(guideId,jobId){// verify the required parameter 'guideId' is set
6830
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuideJob';}// verify the required parameter 'jobId' is set
6831
+ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getGuideJob';}return this.apiClient.callApi('/api/v2/guides/{guideId}/jobs/{jobId}','GET',{'guideId':guideId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6832
+ * Get a guide version.
6833
+ *
6834
+ * @param {String} guideId Guide ID
6835
+ * @param {String} versionId Version ID
6836
+ * getGuideVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6837
+ */},{key:"getGuideVersion",value:function getGuideVersion(guideId,versionId){// verify the required parameter 'guideId' is set
6838
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuideVersion';}// verify the required parameter 'versionId' is set
6839
+ if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling getGuideVersion';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}','GET',{'guideId':guideId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6840
+ * Get the status of the publishing job for this guide version.
6841
+ *
6842
+ * @param {String} guideId Guide ID
6843
+ * @param {String} versionId Version ID
6844
+ * @param {String} jobId jobId
6845
+ * getGuideVersionJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6846
+ */},{key:"getGuideVersionJob",value:function getGuideVersionJob(guideId,versionId,jobId){// verify the required parameter 'guideId' is set
6847
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuideVersionJob';}// verify the required parameter 'versionId' is set
6848
+ if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling getGuideVersionJob';}// verify the required parameter 'jobId' is set
6849
+ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getGuideVersionJob';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}/jobs/{jobId}','GET',{'guideId':guideId,'versionId':versionId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6850
+ * Get all guides.
6851
+ *
6852
+ * @param {Object} opts Optional parameters
6853
+ * @param {String} opts.name Filter by matching name - case insensitive.
6854
+ * @param {String} opts.nameContains Filter by name contains - case insensitive.
6855
+ * @param {Object} opts.status Filter by status.
6856
+ * @param {Object} opts.sortBy Sort by. Default value dateModified. (default to dateModified)
6857
+ * @param {Object} opts.sortOrder Sort Order. Default value desc. (default to desc)
6858
+ * @param {Number} opts.pageNumber Page number. (default to 1)
6859
+ * @param {Number} opts.pageSize Page size. The maximum page size is 100. (default to 25)
6860
+ * getGuides is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6861
+ */},{key:"getGuides",value:function getGuides(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/guides','GET',{},{'name':opts['name'],'nameContains':opts['nameContains'],'status':opts['status'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6862
+ * Get the status of the guide content generation job.
6863
+ *
6864
+ * @param {String} jobId jobId
6865
+ * getGuidesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6866
+ */},{key:"getGuidesJob",value:function getGuidesJob(jobId){// verify the required parameter 'jobId' is set
6867
+ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getGuidesJob';}return this.apiClient.callApi('/api/v2/guides/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6868
+ * Update a guide version.
6869
+ *
6870
+ * @param {String} guideId Guide ID
6871
+ * @param {String} versionId Version ID
6872
+ * @param {Object} body
6873
+ * patchGuideVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6874
+ */},{key:"patchGuideVersion",value:function patchGuideVersion(guideId,versionId,body){// verify the required parameter 'guideId' is set
6875
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling patchGuideVersion';}// verify the required parameter 'versionId' is set
6876
+ if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling patchGuideVersion';}// verify the required parameter 'body' is set
6877
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchGuideVersion';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}','PATCH',{'guideId':guideId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6878
+ * Start the publishing of a guide version.
6879
+ *
6880
+ * @param {String} guideId Guide ID
6881
+ * @param {String} versionId Version ID
6882
+ * @param {Object} body
6883
+ * postGuideVersionJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6884
+ */},{key:"postGuideVersionJobs",value:function postGuideVersionJobs(guideId,versionId,body){// verify the required parameter 'guideId' is set
6885
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';}// verify the required parameter 'versionId' is set
6886
+ if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';}// verify the required parameter 'body' is set
6887
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuideVersionJobs';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}/jobs','POST',{'guideId':guideId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6888
+ * Create a guide version.
6889
+ *
6890
+ * @param {String} guideId Guide ID
6891
+ * @param {Object} opts Optional parameters
6892
+ * @param {Object} opts.body
6893
+ * postGuideVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6894
+ */},{key:"postGuideVersions",value:function postGuideVersions(guideId,opts){opts=opts||{};// verify the required parameter 'guideId' is set
6895
+ if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling postGuideVersions';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions','POST',{'guideId':guideId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
6896
+ * Create a guide.
6897
+ *
6898
+ * @param {Object} body
6899
+ * postGuides is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6900
+ */},{key:"postGuides",value:function postGuides(body){// verify the required parameter 'body' is set
6901
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuides';}return this.apiClient.callApi('/api/v2/guides','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6902
+ * Start a guide content generation job.
6903
+ *
6904
+ * @param {Object} body
6905
+ * postGuidesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6906
+ */},{key:"postGuidesJobs",value:function postGuidesJobs(body){// verify the required parameter 'body' is set
6907
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuidesJobs';}return this.apiClient.callApi('/api/v2/guides/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
6802
6908
  * AgentAssistants service.
6803
6909
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
6804
- * @version 222.0.0
6910
+ * @version 224.0.0
6805
6911
  *//**
6806
6912
  * Constructs a new AgentAssistantsApi.
6807
6913
  * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -6862,7 +6968,8 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6862
6968
  * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
6863
6969
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
6864
6970
  * @param {String} opts.name Return the assistant by the given name.
6865
- */},{key:"getAssistants",value:function getAssistants(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/assistants','GET',{},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6971
+ * @param {Object} opts.expand Which fields, if any, to expand
6972
+ */},{key:"getAssistants",value:function getAssistants(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/assistants','GET',{},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'name':opts['name'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6866
6973
  * Get all queues assigned to any assistant.
6867
6974
  *
6868
6975
  * @param {Object} opts Optional parameters
@@ -6902,7 +7009,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
6902
7009
  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
7010
  * AgentCopilot service.
6904
7011
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
6905
- * @version 222.0.0
7012
+ * @version 224.0.0
6906
7013
  *//**
6907
7014
  * Constructs a new AgentCopilotApi.
6908
7015
  * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -6924,7 +7031,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6924
7031
  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
7032
  * AgentUI service.
6926
7033
  * @module purecloud-platform-client-v2/api/AgentUIApi
6927
- * @version 222.0.0
7034
+ * @version 224.0.0
6928
7035
  *//**
6929
7036
  * Constructs a new AgentUIApi.
6930
7037
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -6958,7 +7065,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
6958
7065
  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
7066
  * Alerting service.
6960
7067
  * @module purecloud-platform-client-v2/api/AlertingApi
6961
- * @version 222.0.0
7068
+ * @version 224.0.0
6962
7069
  *//**
6963
7070
  * Constructs a new AlertingApi.
6964
7071
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -7047,7 +7154,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
7047
7154
  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
7155
  * Analytics service.
7049
7156
  * @module purecloud-platform-client-v2/api/AnalyticsApi
7050
- * @version 222.0.0
7157
+ * @version 224.0.0
7051
7158
  *//**
7052
7159
  * Constructs a new AnalyticsApi.
7053
7160
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -7443,7 +7550,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7443
7550
  * @param {Object} body query
7444
7551
  */},{key:"postAnalyticsAgentcopilotsAggregatesQuery",value:function postAnalyticsAgentcopilotsAggregatesQuery(body){// verify the required parameter 'body' is set
7445
7552
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7446
- * Count agents by segment type
7553
+ * Count agents by different groupings
7447
7554
  *
7448
7555
  * @param {Object} body query
7449
7556
  */},{key:"postAnalyticsAgentsStatusCounts",value:function postAnalyticsAgentsStatusCounts(body){// verify the required parameter 'body' is set
@@ -7715,7 +7822,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7715
7822
  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
7823
  * Architect service.
7717
7824
  * @module purecloud-platform-client-v2/api/ArchitectApi
7718
- * @version 222.0.0
7825
+ * @version 224.0.0
7719
7826
  *//**
7720
7827
  * Constructs a new ArchitectApi.
7721
7828
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -7941,7 +8048,7 @@ if(emergencyGroupId===undefined||emergencyGroupId===null){throw'Missing the requ
7941
8048
  * @param {String} opts.name Name of the Emergency Group to filter by.
7942
8049
  */},{key:"getArchitectEmergencygroups",value:function getArchitectEmergencygroups(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/architect/emergencygroups','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7943
8050
  * Get a pageable list of basic emergency group objects filterable by query parameters.
7944
- * This returns emergency groups consisting of name and division. If one or more IDs are specified, the search will fetch flow outcomes that match the given ID(s) and not use any additional supplied query parameters in the search.
8051
+ * This returns emergency groups consisting of name and division. If one or more IDs are specified, the search will fetch emergency groups that match the given ID(s) and not use any additional supplied query parameters in the search.
7945
8052
  * @param {Object} opts Optional parameters
7946
8053
  * @param {Number} opts.pageNumber Page number (default to 1)
7947
8054
  * @param {Number} opts.pageSize Page size (default to 25)
@@ -8564,6 +8671,7 @@ if(promptId===undefined||promptId===null){throw'Missing the required parameter "
8564
8671
  *
8565
8672
  * @param {String} promptId Prompt ID
8566
8673
  * @param {String} languageCode Language
8674
+ * postArchitectPromptResourceUploads is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8567
8675
  */},{key:"postArchitectPromptResourceUploads",value:function postArchitectPromptResourceUploads(promptId,languageCode){// verify the required parameter 'promptId' is set
8568
8676
  if(promptId===undefined||promptId===null){throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';}// verify the required parameter 'languageCode' is set
8569
8677
  if(languageCode===undefined||languageCode===null){throw'Missing the required parameter "languageCode" when calling postArchitectPromptResourceUploads';}return this.apiClient.callApi('/api/v2/architect/prompts/{promptId}/resources/{languageCode}/uploads','POST',{'promptId':promptId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8598,6 +8706,7 @@ if(promptId===undefined||promptId===null){throw'Missing the required parameter "
8598
8706
  *
8599
8707
  * @param {String} promptId Prompt ID
8600
8708
  * @param {String} languageCode Language
8709
+ * postArchitectSystempromptResourceUploads is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8601
8710
  */},{key:"postArchitectSystempromptResourceUploads",value:function postArchitectSystempromptResourceUploads(promptId,languageCode){// verify the required parameter 'promptId' is set
8602
8711
  if(promptId===undefined||promptId===null){throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';}// verify the required parameter 'languageCode' is set
8603
8712
  if(languageCode===undefined||languageCode===null){throw'Missing the required parameter "languageCode" when calling postArchitectSystempromptResourceUploads';}return this.apiClient.callApi('/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}/uploads','POST',{'promptId':promptId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8847,7 +8956,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
8847
8956
  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
8957
  * Audit service.
8849
8958
  * @module purecloud-platform-client-v2/api/AuditApi
8850
- * @version 222.0.0
8959
+ * @version 224.0.0
8851
8960
  *//**
8852
8961
  * Constructs a new AuditApi.
8853
8962
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -8897,7 +9006,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8897
9006
  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
9007
  * Authorization service.
8899
9008
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8900
- * @version 222.0.0
9009
+ * @version 224.0.0
8901
9010
  *//**
8902
9011
  * Constructs a new AuthorizationApi.
8903
9012
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -9332,7 +9441,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
9332
9441
  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
9442
  * Billing service.
9334
9443
  * @module purecloud-platform-client-v2/api/BillingApi
9335
- * @version 222.0.0
9444
+ * @version 224.0.0
9336
9445
  *//**
9337
9446
  * Constructs a new BillingApi.
9338
9447
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -9409,7 +9518,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
9409
9518
  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(){/**
9410
9519
  * BusinessRules service.
9411
9520
  * @module purecloud-platform-client-v2/api/BusinessRulesApi
9412
- * @version 222.0.0
9521
+ * @version 224.0.0
9413
9522
  *//**
9414
9523
  * Constructs a new BusinessRulesApi.
9415
9524
  * @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
@@ -9489,7 +9598,7 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
9489
9598
  * @param {String} tableId Table ID
9490
9599
  * @param {Object} opts Optional parameters
9491
9600
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9492
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9601
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
9493
9602
  * @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.
9494
9603
  * getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9495
9604
  */},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
@@ -9498,20 +9607,22 @@ if(tableId===undefined||tableId===null){throw'Missing the required parameter "ta
9498
9607
  *
9499
9608
  * @param {Object} opts Optional parameters
9500
9609
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9501
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9610
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
9502
9611
  * @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.
9503
9612
  * getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9504
9613
  */},{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']);}/**
9505
9614
  * Search for decision tables.
9506
9615
  *
9507
9616
  * @param {Object} opts Optional parameters
9508
- * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
9509
9617
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9510
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9618
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
9511
9619
  * @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.
9512
9620
  * @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.
9621
+ * @param {Boolean} opts.withPublishedVersion Filters results to only decision tables that have at least one version in Published status
9622
+ * @param {Array.<String>} opts.expand Fields to expand in response
9623
+ * @param {Array.<String>} opts.ids Decision table IDs to search for
9513
9624
  * getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9514
- */},{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']);}/**
9625
+ */},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'schemaId':opts['schemaId'],'name':opts['name'],'withPublishedVersion':opts['withPublishedVersion'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'ids':this.apiClient.buildCollectionParam(opts['ids'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9515
9626
  * Get a schema
9516
9627
  *
9517
9628
  * @param {String} schemaId Schema ID
@@ -9550,12 +9661,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9550
9661
  if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
9551
9662
  if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'body' is set
9552
9663
  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']);}/**
9553
- * Update a decision table row
9664
+ * Partially update a decision table row. Will be deprecated, we should use PUT request.
9554
9665
  *
9555
9666
  * @param {String} tableId Table ID
9556
9667
  * @param {Number} tableVersion Table Version
9557
9668
  * @param {String} rowId Row ID
9558
- * @param {Object} body Update decision table row request
9669
+ * @param {Object} body Partially update decision table row request
9670
+ * @deprecated
9559
9671
  * patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9560
9672
  */},{key:"patchBusinessrulesDecisiontableVersionRow",value:function patchBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
9561
9673
  if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
@@ -9647,6 +9759,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9647
9759
  */},{key:"putBusinessrulesDecisiontableVersionPublish",value:function putBusinessrulesDecisiontableVersionPublish(tableId,tableVersion){// verify the required parameter 'tableId' is set
9648
9760
  if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';}// verify the required parameter 'tableVersion' is set
9649
9761
  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']);}/**
9762
+ * Full update a decision table row
9763
+ *
9764
+ * @param {String} tableId Table ID
9765
+ * @param {Number} tableVersion Table Version
9766
+ * @param {String} rowId Row ID
9767
+ * @param {Object} body Full update decision table row request
9768
+ * putBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9769
+ */},{key:"putBusinessrulesDecisiontableVersionRow",value:function putBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
9770
+ if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
9771
+ if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
9772
+ if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'body' is set
9773
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','PUT',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9650
9774
  * Update a schema
9651
9775
  *
9652
9776
  * @param {String} schemaId Schema ID
@@ -9657,7 +9781,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
9657
9781
  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(){/**
9658
9782
  * CarrierServices service.
9659
9783
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
9660
- * @version 222.0.0
9784
+ * @version 224.0.0
9661
9785
  *//**
9662
9786
  * Constructs a new CarrierServicesApi.
9663
9787
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -9677,7 +9801,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
9677
9801
  */},{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(){/**
9678
9802
  * Chat service.
9679
9803
  * @module purecloud-platform-client-v2/api/ChatApi
9680
- * @version 222.0.0
9804
+ * @version 224.0.0
9681
9805
  *//**
9682
9806
  * Constructs a new ChatApi.
9683
9807
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -9897,7 +10021,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9897
10021
  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(){/**
9898
10022
  * Coaching service.
9899
10023
  * @module purecloud-platform-client-v2/api/CoachingApi
9900
- * @version 222.0.0
10024
+ * @version 224.0.0
9901
10025
  *//**
9902
10026
  * Constructs a new CoachingApi.
9903
10027
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -10050,7 +10174,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10050
10174
  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(){/**
10051
10175
  * ContentManagement service.
10052
10176
  * @module purecloud-platform-client-v2/api/ContentManagementApi
10053
- * @version 222.0.0
10177
+ * @version 224.0.0
10054
10178
  *//**
10055
10179
  * Constructs a new ContentManagementApi.
10056
10180
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -10332,7 +10456,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
10332
10456
  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(){/**
10333
10457
  * Conversations service.
10334
10458
  * @module purecloud-platform-client-v2/api/ConversationsApi
10335
- * @version 222.0.0
10459
+ * @version 224.0.0
10336
10460
  *//**
10337
10461
  * Constructs a new ConversationsApi.
10338
10462
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -10463,6 +10587,27 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
10463
10587
  * @param {String} conversationId conversation ID
10464
10588
  */},{key:"getConversation",value:function getConversation(conversationId){// verify the required parameter 'conversationId' is set
10465
10589
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversation';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10590
+ * Get message
10591
+ *
10592
+ * @param {String} conversationId conversationId
10593
+ * @param {String} communicationId communicationId
10594
+ * @param {String} messageId messageId
10595
+ * getConversationCommunicationInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10596
+ */},{key:"getConversationCommunicationInternalmessage",value:function getConversationCommunicationInternalmessage(conversationId,communicationId,messageId){// verify the required parameter 'conversationId' is set
10597
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'communicationId' is set
10598
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'messageId' is set
10599
+ if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getConversationCommunicationInternalmessage';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages/{messageId}','GET',{'conversationId':conversationId,'communicationId':communicationId,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10600
+ * Get messages for communication
10601
+ *
10602
+ * @param {String} conversationId conversationId
10603
+ * @param {String} communicationId communicationId
10604
+ * @param {Object} opts Optional parameters
10605
+ * @param {Number} opts.pageSize Indicates maximum number of results in response. Default page size is 25 results. The maximum page size is 200. (default to 25)
10606
+ * @param {Number} opts.pageNumber Page number (default to 1)
10607
+ * getConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10608
+ */},{key:"getConversationCommunicationInternalmessages",value:function getConversationCommunicationInternalmessages(conversationId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10609
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
10610
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages','GET',{'conversationId':conversationId,'communicationId':communicationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10466
10611
  * Fetch info on a secure session
10467
10612
  *
10468
10613
  * @param {String} conversationId conversation ID
@@ -10539,7 +10684,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
10539
10684
  * @param {String} participantId participantId
10540
10685
  * @param {String} communicationId communicationId
10541
10686
  * @param {Object} opts Optional parameters
10542
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10687
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10543
10688
  */},{key:"getConversationsCallParticipantCommunicationWrapup",value:function getConversationsCallParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10544
10689
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
10545
10690
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
@@ -10549,7 +10694,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
10549
10694
  * @param {String} conversationId conversationId
10550
10695
  * @param {String} participantId participantId
10551
10696
  * @param {Object} opts Optional parameters
10552
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10697
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10553
10698
  */},{key:"getConversationsCallParticipantWrapup",value:function getConversationsCallParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10554
10699
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';}// verify the required parameter 'participantId' is set
10555
10700
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -10571,7 +10716,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
10571
10716
  * @param {String} participantId participantId
10572
10717
  * @param {String} communicationId communicationId
10573
10718
  * @param {Object} opts Optional parameters
10574
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10719
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10575
10720
  */},{key:"getConversationsCallbackParticipantCommunicationWrapup",value:function getConversationsCallbackParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10576
10721
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
10577
10722
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
@@ -10581,7 +10726,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
10581
10726
  * @param {String} conversationId conversationId
10582
10727
  * @param {String} participantId participantId
10583
10728
  * @param {Object} opts Optional parameters
10584
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10729
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10585
10730
  */},{key:"getConversationsCallbackParticipantWrapup",value:function getConversationsCallbackParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10586
10731
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';}// verify the required parameter 'participantId' is set
10587
10732
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -10640,7 +10785,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
10640
10785
  * @param {String} participantId participantId
10641
10786
  * @param {String} communicationId communicationId
10642
10787
  * @param {Object} opts Optional parameters
10643
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10788
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10644
10789
  * @deprecated
10645
10790
  */},{key:"getConversationsChatParticipantCommunicationWrapup",value:function getConversationsChatParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10646
10791
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
@@ -10651,7 +10796,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
10651
10796
  * @param {String} conversationId conversationId
10652
10797
  * @param {String} participantId participantId
10653
10798
  * @param {Object} opts Optional parameters
10654
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10799
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10655
10800
  * @deprecated
10656
10801
  */},{key:"getConversationsChatParticipantWrapup",value:function getConversationsChatParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10657
10802
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';}// verify the required parameter 'participantId' is set
@@ -10679,7 +10824,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
10679
10824
  * @param {String} participantId participantId
10680
10825
  * @param {String} communicationId communicationId
10681
10826
  * @param {Object} opts Optional parameters
10682
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10827
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10683
10828
  * @deprecated
10684
10829
  */},{key:"getConversationsCobrowsesessionParticipantCommunicationWrapup",value:function getConversationsCobrowsesessionParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10685
10830
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
@@ -10690,7 +10835,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
10690
10835
  * @param {String} conversationId conversationId
10691
10836
  * @param {String} participantId participantId
10692
10837
  * @param {Object} opts Optional parameters
10693
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10838
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10694
10839
  * @deprecated
10695
10840
  */},{key:"getConversationsCobrowsesessionParticipantWrapup",value:function getConversationsCobrowsesessionParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10696
10841
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';}// verify the required parameter 'participantId' is set
@@ -10734,7 +10879,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
10734
10879
  * @param {String} participantId participantId
10735
10880
  * @param {String} communicationId communicationId
10736
10881
  * @param {Object} opts Optional parameters
10737
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10882
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10738
10883
  */},{key:"getConversationsEmailParticipantCommunicationWrapup",value:function getConversationsEmailParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10739
10884
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
10740
10885
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
@@ -10744,7 +10889,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
10744
10889
  * @param {String} conversationId conversationId
10745
10890
  * @param {String} participantId participantId
10746
10891
  * @param {Object} opts Optional parameters
10747
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10892
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10748
10893
  */},{key:"getConversationsEmailParticipantWrapup",value:function getConversationsEmailParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10749
10894
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';}// verify the required parameter 'participantId' is set
10750
10895
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -10763,6 +10908,16 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
10763
10908
  * Get active email conversations for the logged in user
10764
10909
  *
10765
10910
  */},{key:"getConversationsEmails",value:function getConversationsEmails(){return this.apiClient.callApi('/api/v2/conversations/emails','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10911
+ * Get internal message conversation
10912
+ *
10913
+ * @param {String} conversationId conversationId
10914
+ * getConversationsInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10915
+ */},{key:"getConversationsInternalmessage",value:function getConversationsInternalmessage(conversationId){// verify the required parameter 'conversationId' is set
10916
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsInternalmessage';}return this.apiClient.callApi('/api/v2/conversations/internalmessages/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10917
+ * Get active internal message conversations for the logged in user
10918
+ *
10919
+ * getConversationsInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10920
+ */},{key:"getConversationsInternalmessages",value:function getConversationsInternalmessages(){return this.apiClient.callApi('/api/v2/conversations/internalmessages','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10766
10921
  * Get the encryption key configurations
10767
10922
  *
10768
10923
  * @param {String} keyconfigurationsId Key Configurations Id
@@ -10807,7 +10962,7 @@ if(messageId===undefined||messageId===null){throw'Missing the required parameter
10807
10962
  * @param {String} participantId participantId
10808
10963
  * @param {String} communicationId communicationId
10809
10964
  * @param {Object} opts Optional parameters
10810
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10965
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10811
10966
  */},{key:"getConversationsMessageParticipantCommunicationWrapup",value:function getConversationsMessageParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10812
10967
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
10813
10968
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
@@ -10817,7 +10972,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
10817
10972
  * @param {String} conversationId conversationId
10818
10973
  * @param {String} participantId participantId
10819
10974
  * @param {Object} opts Optional parameters
10820
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
10975
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
10821
10976
  */},{key:"getConversationsMessageParticipantWrapup",value:function getConversationsMessageParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10822
10977
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';}// verify the required parameter 'participantId' is set
10823
10978
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -10870,6 +11025,11 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
10870
11025
  * @param {String} integrationId Integration ID
10871
11026
  */},{key:"getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
10872
11027
  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']);}/**
11028
+ * Get X (Formally Twitter) messaging integration identity resolution settings
11029
+ *
11030
+ * @param {String} integrationId Integration Id
11031
+ */},{key:"getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
11032
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10873
11033
  * Get a whatsApp integration Identity Resolution settings
10874
11034
  *
10875
11035
  * @param {String} integrationId Integration ID
@@ -11009,7 +11169,7 @@ if(supportedContentId===undefined||supportedContentId===null){throw'Missing the
11009
11169
  * @param {String} participantId participantId
11010
11170
  * @param {String} communicationId communicationId
11011
11171
  * @param {Object} opts Optional parameters
11012
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
11172
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
11013
11173
  * @deprecated
11014
11174
  */},{key:"getConversationsScreenshareParticipantCommunicationWrapup",value:function getConversationsScreenshareParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
11015
11175
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
@@ -11024,7 +11184,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
11024
11184
  * @param {String} participantId participantId
11025
11185
  * @param {String} communicationId communicationId
11026
11186
  * @param {Object} opts Optional parameters
11027
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
11187
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
11028
11188
  */},{key:"getConversationsSocialParticipantCommunicationWrapup",value:function getConversationsSocialParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
11029
11189
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
11030
11190
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
@@ -11041,7 +11201,7 @@ if(conferenceId===undefined||conferenceId===null){throw'Missing the required par
11041
11201
  * @param {String} participantId participantId
11042
11202
  * @param {String} communicationId communicationId
11043
11203
  * @param {Object} opts Optional parameters
11044
- * @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
11204
+ * @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
11045
11205
  */},{key:"getConversationsVideoParticipantCommunicationWrapup",value:function getConversationsVideoParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
11046
11206
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
11047
11207
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
@@ -11483,6 +11643,16 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
11483
11643
  * @param {String} conversationId Conversation ID
11484
11644
  */},{key:"postConversationCobrowse",value:function postConversationCobrowse(conversationId){// verify the required parameter 'conversationId' is set
11485
11645
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationCobrowse';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/cobrowse','POST',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11646
+ * Send internal message
11647
+ * Send a new internal message for an existing communication.
11648
+ * @param {String} conversationId conversationId
11649
+ * @param {String} communicationId communicationId
11650
+ * @param {Object} body Message
11651
+ * postConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11652
+ */},{key:"postConversationCommunicationInternalmessages",value:function postConversationCommunicationInternalmessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
11653
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
11654
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'body' is set
11655
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationCommunicationInternalmessages';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11486
11656
  * Performs a full conversation teardown. Issues disconnect requests for any connected media. Applies a system wrap-up code to any participants that are pending wrap-up. This is not intended to be the normal way of ending interactions but is available in the event of problems with the application to allow a resynchronization of state across all components. It is recommended that users submit a support case if they are relying on this endpoint systematically as there is likely something that needs investigation.
11487
11657
  *
11488
11658
  * @param {String} conversationId conversation ID
@@ -11506,6 +11676,16 @@ if(participantId===undefined||participantId===null){throw'Missing the required p
11506
11676
  */},{key:"postConversationParticipantDigits",value:function postConversationParticipantDigits(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
11507
11677
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';}// verify the required parameter 'participantId' is set
11508
11678
  if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/participants/{participantId}/digits','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
11679
+ * Setup internal message communication with user
11680
+ * The target user of the digital consultation must have the `conversation:internalMessaging:accept` permission.
11681
+ * @param {String} conversationId conversation ID
11682
+ * @param {String} participantId participant ID
11683
+ * @param {Object} body Confer request
11684
+ * postConversationParticipantInternalmessagesUsersCommunications is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11685
+ */},{key:"postConversationParticipantInternalmessagesUsersCommunications",value:function postConversationParticipantInternalmessagesUsersCommunications(conversationId,participantId,body){// verify the required parameter 'conversationId' is set
11686
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'participantId' is set
11687
+ if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'body' is set
11688
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationParticipantInternalmessagesUsersCommunications';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/participants/{participantId}/internalmessages/users/communications','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11509
11689
  * Replace this participant with the specified user and/or address
11510
11690
  *
11511
11691
  * @param {String} conversationId conversation ID
@@ -11875,6 +12055,15 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
11875
12055
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'communicationId' is set
11876
12056
  if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'body' is set
11877
12057
  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']);}/**
12058
+ * Send a social media message
12059
+ * Send a social media message on existing conversation/communication.
12060
+ * @param {String} conversationId conversationId
12061
+ * @param {String} communicationId communicationId
12062
+ * @param {Object} body Message
12063
+ */},{key:"postConversationsMessageCommunicationSocialmediaMessages",value:function postConversationsMessageCommunicationSocialmediaMessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
12064
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'communicationId' is set
12065
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'body' is set
12066
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationSocialmediaMessages';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/socialmedia/messages','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11878
12067
  * Send message typing event
11879
12068
  * Send message typing event for existing conversation/communication.
11880
12069
  * @param {String} conversationId conversationId
@@ -11907,6 +12096,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11907
12096
  */},{key:"postConversationsMessageInboundOpenReceipt",value:function postConversationsMessageInboundOpenReceipt(integrationId,body){// verify the required parameter 'integrationId' is set
11908
12097
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';}// verify the required parameter 'body' is set
11909
12098
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenReceipt';}return this.apiClient.callApi('/api/v2/conversations/messages/{integrationId}/inbound/open/receipt','POST',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12099
+ * Send inbound Open Response
12100
+ * Send an inbound response for a structured message to an Open Messaging integration. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will be a part of an existing conversation. See https://developer.genesys.cloud/api/digital/openmessaging/ for example usage.
12101
+ * @param {String} integrationId integrationId
12102
+ * @param {Object} body OpenInboundStructuredResponseMessage
12103
+ */},{key:"postConversationsMessageInboundOpenStructuredResponse",value:function postConversationsMessageInboundOpenStructuredResponse(integrationId,body){// verify the required parameter 'integrationId' is set
12104
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';}// verify the required parameter 'body' is set
12105
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenStructuredResponse';}return this.apiClient.callApi('/api/v2/conversations/messages/{integrationId}/inbound/open/structured/response','POST',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11910
12106
  * Get messages in batch
11911
12107
  * The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]
11912
12108
  * @param {String} conversationId
@@ -12173,6 +12369,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12173
12369
  */},{key:"putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
12174
12370
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}// verify the required parameter 'body' is set
12175
12371
  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']);}/**
12372
+ * Create an identity resolution settings for an X (Formally Twitter) messaging integration
12373
+ *
12374
+ * @param {String} integrationId Integration Id
12375
+ * @param {Object} body IdentityResolutionConfig
12376
+ */},{key:"putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
12377
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';}// verify the required parameter 'body' is set
12378
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12176
12379
  * Update a whatsApp integration Identity Resolution settings
12177
12380
  *
12178
12381
  * @param {String} integrationId Integration ID
@@ -12219,7 +12422,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
12219
12422
  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(){/**
12220
12423
  * DataExtensions service.
12221
12424
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
12222
- * @version 222.0.0
12425
+ * @version 224.0.0
12223
12426
  *//**
12224
12427
  * Constructs a new DataExtensionsApi.
12225
12428
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -12240,7 +12443,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
12240
12443
  */},{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(){/**
12241
12444
  * DataPrivacy service.
12242
12445
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
12243
- * @version 222.0.0
12446
+ * @version 224.0.0
12244
12447
  *//**
12245
12448
  * Constructs a new DataPrivacyApi.
12246
12449
  * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -12280,7 +12483,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12280
12483
  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(){/**
12281
12484
  * Downloads service.
12282
12485
  * @module purecloud-platform-client-v2/api/DownloadsApi
12283
- * @version 222.0.0
12486
+ * @version 224.0.0
12284
12487
  *//**
12285
12488
  * Constructs a new DownloadsApi.
12286
12489
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -12299,7 +12502,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12299
12502
  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(){/**
12300
12503
  * Emails service.
12301
12504
  * @module purecloud-platform-client-v2/api/EmailsApi
12302
- * @version 222.0.0
12505
+ * @version 224.0.0
12303
12506
  *//**
12304
12507
  * Constructs a new EmailsApi.
12305
12508
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -12328,7 +12531,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
12328
12531
  */},{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(){/**
12329
12532
  * EmployeeEngagement service.
12330
12533
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
12331
- * @version 222.0.0
12534
+ * @version 224.0.0
12332
12535
  *//**
12333
12536
  * Constructs a new EmployeeEngagementApi.
12334
12537
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -12366,7 +12569,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12366
12569
  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(){/**
12367
12570
  * Events service.
12368
12571
  * @module purecloud-platform-client-v2/api/EventsApi
12369
- * @version 222.0.0
12572
+ * @version 224.0.0
12370
12573
  *//**
12371
12574
  * Constructs a new EventsApi.
12372
12575
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -12391,7 +12594,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12391
12594
  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(){/**
12392
12595
  * ExternalContacts service.
12393
12596
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
12394
- * @version 222.0.0
12597
+ * @version 224.0.0
12395
12598
  *//**
12396
12599
  * Constructs a new ExternalContactsApi.
12397
12600
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -13126,7 +13329,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
13126
13329
  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(){/**
13127
13330
  * Fax service.
13128
13331
  * @module purecloud-platform-client-v2/api/FaxApi
13129
- * @version 222.0.0
13332
+ * @version 224.0.0
13130
13333
  *//**
13131
13334
  * Constructs a new FaxApi.
13132
13335
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -13175,7 +13378,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13175
13378
  */},{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(){/**
13176
13379
  * Flows service.
13177
13380
  * @module purecloud-platform-client-v2/api/FlowsApi
13178
- * @version 222.0.0
13381
+ * @version 224.0.0
13179
13382
  *//**
13180
13383
  * Constructs a new FlowsApi.
13181
13384
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -13223,7 +13426,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13223
13426
  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(){/**
13224
13427
  * Gamification service.
13225
13428
  * @module purecloud-platform-client-v2/api/GamificationApi
13226
- * @version 222.0.0
13429
+ * @version 224.0.0
13227
13430
  *//**
13228
13431
  * Constructs a new GamificationApi.
13229
13432
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -13876,7 +14079,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13876
14079
  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(){/**
13877
14080
  * GeneralDataProtectionRegulation service.
13878
14081
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
13879
- * @version 222.0.0
14082
+ * @version 224.0.0
13880
14083
  *//**
13881
14084
  * Constructs a new GeneralDataProtectionRegulationApi.
13882
14085
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -13911,7 +14114,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
13911
14114
  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(){/**
13912
14115
  * Geolocation service.
13913
14116
  * @module purecloud-platform-client-v2/api/GeolocationApi
13914
- * @version 222.0.0
14117
+ * @version 224.0.0
13915
14118
  *//**
13916
14119
  * Constructs a new GeolocationApi.
13917
14120
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -13945,7 +14148,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
13945
14148
  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(){/**
13946
14149
  * Greetings service.
13947
14150
  * @module purecloud-platform-client-v2/api/GreetingsApi
13948
- * @version 222.0.0
14151
+ * @version 224.0.0
13949
14152
  *//**
13950
14153
  * Constructs a new GreetingsApi.
13951
14154
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -13963,13 +14166,34 @@ if(greetingId===undefined||greetingId===null){throw'Missing the required paramet
13963
14166
  * @param {String} greetingId Greeting ID
13964
14167
  */},{key:"getGreeting",value:function getGreeting(greetingId){// verify the required parameter 'greetingId' is set
13965
14168
  if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreeting';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}','GET',{'greetingId':greetingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13966
- * Get media playback URI for this greeting
14169
+ * Download a organization greeting recording
13967
14170
  *
13968
14171
  * @param {String} greetingId Greeting ID
13969
14172
  * @param {Object} opts Optional parameters
13970
14173
  * @param {Object} opts.formatId The desired media format. (default to WAV)
14174
+ */},{key:"getGreetingDownloads",value:function getGreetingDownloads(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
14175
+ if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingDownloads';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/downloads','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14176
+ * Download a group greeting recording
14177
+ *
14178
+ * @param {String} greetingId Greeting ID
14179
+ * @param {Object} opts Optional parameters
14180
+ * @param {Object} opts.formatId The desired media format. (default to WAV)
14181
+ */},{key:"getGreetingGroupsDownloads",value:function getGreetingGroupsDownloads(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
14182
+ if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingGroupsDownloads';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/groups/downloads','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14183
+ * Get media playback URI for this greeting
14184
+ * API should migrate to use GET api/v2/greetings/{greetingId}/downloads
14185
+ * @param {String} greetingId Greeting ID
14186
+ * @param {Object} opts Optional parameters
14187
+ * @param {Object} opts.formatId The desired media format. (default to WAV)
13971
14188
  */},{key:"getGreetingMedia",value:function getGreetingMedia(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
13972
14189
  if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingMedia';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/media','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14190
+ * Download a user greeting recording
14191
+ *
14192
+ * @param {String} greetingId Greeting ID
14193
+ * @param {Object} opts Optional parameters
14194
+ * @param {Object} opts.formatId The desired media format. (default to WAV)
14195
+ */},{key:"getGreetingUsersDownloads",value:function getGreetingUsersDownloads(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
14196
+ if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingUsersDownloads';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/users/downloads','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13973
14197
  * Gets an Organization's Greetings
13974
14198
  *
13975
14199
  * @param {Object} opts Optional parameters
@@ -14052,7 +14276,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14052
14276
  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(){/**
14053
14277
  * Groups service.
14054
14278
  * @module purecloud-platform-client-v2/api/GroupsApi
14055
- * @version 222.0.0
14279
+ * @version 224.0.0
14056
14280
  *//**
14057
14281
  * Constructs a new GroupsApi.
14058
14282
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -14185,7 +14409,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
14185
14409
  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(){/**
14186
14410
  * IdentityProvider service.
14187
14411
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
14188
- * @version 222.0.0
14412
+ * @version 224.0.0
14189
14413
  *//**
14190
14414
  * Constructs a new IdentityProviderApi.
14191
14415
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -14341,7 +14565,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14341
14565
  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(){/**
14342
14566
  * InfrastructureAsCode service.
14343
14567
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
14344
- * @version 222.0.0
14568
+ * @version 224.0.0
14345
14569
  *//**
14346
14570
  * Constructs a new InfrastructureAsCodeApi.
14347
14571
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -14395,7 +14619,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
14395
14619
  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(){/**
14396
14620
  * Integrations service.
14397
14621
  * @module purecloud-platform-client-v2/api/IntegrationsApi
14398
- * @version 222.0.0
14622
+ * @version 224.0.0
14399
14623
  *//**
14400
14624
  * Constructs a new IntegrationsApi.
14401
14625
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -14568,6 +14792,34 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
14568
14792
  * Get action function settings for Action
14569
14793
  *
14570
14794
  */},{key:"getIntegrationsActionsFunctionsRuntimes",value:function getIntegrationsActionsFunctionsRuntimes(){return this.apiClient.callApi('/api/v2/integrations/actions/functions/runtimes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14795
+ * Get a specific Bot details
14796
+ *
14797
+ * @param {String} integrationId The integration ID for this group of bots
14798
+ * @param {String} botId The bot ID for this bot
14799
+ * @param {Object} opts Optional parameters
14800
+ * @param {String} opts.version Specific Version
14801
+ * getIntegrationsBotconnectorBot is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14802
+ */},{key:"getIntegrationsBotconnectorBot",value:function getIntegrationsBotconnectorBot(integrationId,botId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
14803
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';}// verify the required parameter 'botId' is set
14804
+ if(botId===undefined||botId===null){throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}','GET',{'integrationId':integrationId,'botId':botId},{'version':opts['version']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14805
+ * Get the list of bots for this integration.
14806
+ *
14807
+ * @param {String} integrationId The integration ID for this group of bots.
14808
+ * @param {Object} opts Optional parameters
14809
+ * @param {Number} opts.pageNumber Page number (default to 1)
14810
+ * @param {Number} opts.pageSize Page size (default to 25)
14811
+ * getIntegrationsBotconnectorBots is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14812
+ */},{key:"getIntegrationsBotconnectorBots",value:function getIntegrationsBotconnectorBots(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
14813
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBots';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/{integrationId}/bots','GET',{'integrationId':integrationId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14814
+ * Get the summary list of bots for this integration.
14815
+ *
14816
+ * @param {String} integrationId The integration ID for this group of bots.
14817
+ * @param {Object} opts Optional parameters
14818
+ * @param {Number} opts.pageNumber Page number (default to 1)
14819
+ * @param {Number} opts.pageSize Page size (default to 25)
14820
+ * getIntegrationsBotconnectorBotsSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14821
+ */},{key:"getIntegrationsBotconnectorBotsSummaries",value:function getIntegrationsBotconnectorBotsSummaries(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
14822
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBotsSummaries';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/{integrationId}/bots/summaries','GET',{'integrationId':integrationId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14571
14823
  * Get a specific botConnector bot, plus versions, for this integration
14572
14824
  *
14573
14825
  * @param {String} integrationId The integration ID for this group of bots
@@ -14632,6 +14884,13 @@ if(credentialId===undefined||credentialId===null){throw'Missing the required par
14632
14884
  * @param {Number} opts.pageNumber Page number (default to 1)
14633
14885
  * @param {Number} opts.pageSize Page size (default to 25)
14634
14886
  */},{key:"getIntegrationsCredentials",value:function getIntegrationsCredentials(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/credentials','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14887
+ * List multiple sets of credentials using cursor-based paging
14888
+ *
14889
+ * @param {Object} opts Optional parameters
14890
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
14891
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
14892
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
14893
+ */},{key:"getIntegrationsCredentialsListing",value:function getIntegrationsCredentialsListing(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/credentials/listing','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14635
14894
  * List all credential types
14636
14895
  *
14637
14896
  */},{key:"getIntegrationsCredentialsTypes",value:function getIntegrationsCredentialsTypes(){return this.apiClient.callApi('/api/v2/integrations/credentials/types','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -14947,6 +15206,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14947
15206
  * @param {Object} body Input used to create Action Draft.
14948
15207
  */},{key:"postIntegrationsActionsDrafts",value:function postIntegrationsActionsDrafts(body){// verify the required parameter 'body' is set
14949
15208
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionsDrafts';}return this.apiClient.callApi('/api/v2/integrations/actions/drafts','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
15209
+ * Send an incoming message to the bot.
15210
+ *
15211
+ * @param {Object} body Incoming Message Request
15212
+ * postIntegrationsBotconnectorsIncomingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
15213
+ */},{key:"postIntegrationsBotconnectorsIncomingMessages",value:function postIntegrationsBotconnectorsIncomingMessages(body){// verify the required parameter 'body' is set
15214
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsBotconnectorsIncomingMessages';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/incoming/messages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
15215
+ * Send an outgoing message to the end user.
15216
+ *
15217
+ * @param {Object} body Outgoing Message Request
15218
+ * postIntegrationsBotconnectorsOutgoingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
15219
+ */},{key:"postIntegrationsBotconnectorsOutgoingMessages",value:function postIntegrationsBotconnectorsOutgoingMessages(body){// verify the required parameter 'body' is set
15220
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsBotconnectorsOutgoingMessages';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/outgoing/messages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14950
15221
  * Create a set of credentials
14951
15222
  *
14952
15223
  * @param {Object} opts Optional parameters
@@ -15034,7 +15305,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
15034
15305
  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(){/**
15035
15306
  * Journey service.
15036
15307
  * @module purecloud-platform-client-v2/api/JourneyApi
15037
- * @version 222.0.0
15308
+ * @version 224.0.0
15038
15309
  *//**
15039
15310
  * Constructs a new JourneyApi.
15040
15311
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -15514,7 +15785,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
15514
15785
  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(){/**
15515
15786
  * Knowledge service.
15516
15787
  * @module purecloud-platform-client-v2/api/KnowledgeApi
15517
- * @version 222.0.0
15788
+ * @version 224.0.0
15518
15789
  *//**
15519
15790
  * Constructs a new KnowledgeApi.
15520
15791
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -16577,7 +16848,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
16577
16848
  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(){/**
16578
16849
  * LanguageUnderstanding service.
16579
16850
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
16580
- * @version 222.0.0
16851
+ * @version 224.0.0
16581
16852
  *//**
16582
16853
  * Constructs a new LanguageUnderstandingApi.
16583
16854
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -16836,7 +17107,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
16836
17107
  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(){/**
16837
17108
  * Languages service.
16838
17109
  * @module purecloud-platform-client-v2/api/LanguagesApi
16839
- * @version 222.0.0
17110
+ * @version 224.0.0
16840
17111
  *//**
16841
17112
  * Constructs a new LanguagesApi.
16842
17113
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -16891,7 +17162,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16891
17162
  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(){/**
16892
17163
  * Learning service.
16893
17164
  * @module purecloud-platform-client-v2/api/LearningApi
16894
- * @version 222.0.0
17165
+ * @version 224.0.0
16895
17166
  *//**
16896
17167
  * Constructs a new LearningApi.
16897
17168
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -17162,7 +17433,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
17162
17433
  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(){/**
17163
17434
  * License service.
17164
17435
  * @module purecloud-platform-client-v2/api/LicenseApi
17165
- * @version 222.0.0
17436
+ * @version 224.0.0
17166
17437
  *//**
17167
17438
  * Constructs a new LicenseApi.
17168
17439
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -17216,7 +17487,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
17216
17487
  */},{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(){/**
17217
17488
  * Locations service.
17218
17489
  * @module purecloud-platform-client-v2/api/LocationsApi
17219
- * @version 222.0.0
17490
+ * @version 224.0.0
17220
17491
  *//**
17221
17492
  * Constructs a new LocationsApi.
17222
17493
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -17275,7 +17546,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17275
17546
  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(){/**
17276
17547
  * LogCapture service.
17277
17548
  * @module purecloud-platform-client-v2/api/LogCaptureApi
17278
- * @version 222.0.0
17549
+ * @version 224.0.0
17279
17550
  *//**
17280
17551
  * Constructs a new LogCaptureApi.
17281
17552
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -17311,11 +17582,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17311
17582
  * Query collected log entries. It returns a limited amount of records, to get all records use download endpoint.
17312
17583
  *
17313
17584
  * @param {Object} opts Optional parameters
17314
- * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
17315
17585
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
17316
17586
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
17317
17587
  * @param {Object} opts.body
17318
- */},{key:"postDiagnosticsLogcaptureBrowserEntriesQuery",value:function postDiagnosticsLogcaptureBrowserEntriesQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/entries/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
17588
+ */},{key:"postDiagnosticsLogcaptureBrowserEntriesQuery",value:function postDiagnosticsLogcaptureBrowserEntriesQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/entries/query','POST',{},{'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
17319
17589
  * Enable log capture for a user or update expiration
17320
17590
  *
17321
17591
  * @param {String} userId The id of the user to enable browser log capture
@@ -17325,7 +17595,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17325
17595
  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(){/**
17326
17596
  * Messaging service.
17327
17597
  * @module purecloud-platform-client-v2/api/MessagingApi
17328
- * @version 222.0.0
17598
+ * @version 224.0.0
17329
17599
  *//**
17330
17600
  * Constructs a new MessagingApi.
17331
17601
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -17415,7 +17685,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17415
17685
  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(){/**
17416
17686
  * MobileDevices service.
17417
17687
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
17418
- * @version 222.0.0
17688
+ * @version 224.0.0
17419
17689
  *//**
17420
17690
  * Constructs a new MobileDevicesApi.
17421
17691
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -17454,7 +17724,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17454
17724
  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(){/**
17455
17725
  * Notifications service.
17456
17726
  * @module purecloud-platform-client-v2/api/NotificationsApi
17457
- * @version 222.0.0
17727
+ * @version 224.0.0
17458
17728
  *//**
17459
17729
  * Constructs a new NotificationsApi.
17460
17730
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -17511,7 +17781,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
17511
17781
  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(){/**
17512
17782
  * OAuth service.
17513
17783
  * @module purecloud-platform-client-v2/api/OAuthApi
17514
- * @version 222.0.0
17784
+ * @version 224.0.0
17515
17785
  *//**
17516
17786
  * Constructs a new OAuthApi.
17517
17787
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -17596,7 +17866,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
17596
17866
  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(){/**
17597
17867
  * Objects service.
17598
17868
  * @module purecloud-platform-client-v2/api/ObjectsApi
17599
- * @version 222.0.0
17869
+ * @version 224.0.0
17600
17870
  *//**
17601
17871
  * Constructs a new ObjectsApi.
17602
17872
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -17682,7 +17952,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
17682
17952
  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(){/**
17683
17953
  * OperationalEvents service.
17684
17954
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
17685
- * @version 222.0.0
17955
+ * @version 224.0.0
17686
17956
  *//**
17687
17957
  * Constructs a new OperationalEventsApi.
17688
17958
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -17713,7 +17983,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
17713
17983
  */},{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(){/**
17714
17984
  * Organization service.
17715
17985
  * @module purecloud-platform-client-v2/api/OrganizationApi
17716
- * @version 222.0.0
17986
+ * @version 224.0.0
17717
17987
  *//**
17718
17988
  * Constructs a new OrganizationApi.
17719
17989
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -17818,7 +18088,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17818
18088
  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(){/**
17819
18089
  * OrganizationAuthorization service.
17820
18090
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
17821
- * @version 222.0.0
18091
+ * @version 224.0.0
17822
18092
  *//**
17823
18093
  * Constructs a new OrganizationAuthorizationApi.
17824
18094
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -18152,7 +18422,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
18152
18422
  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(){/**
18153
18423
  * Outbound service.
18154
18424
  * @module purecloud-platform-client-v2/api/OutboundApi
18155
- * @version 222.0.0
18425
+ * @version 224.0.0
18156
18426
  *//**
18157
18427
  * Constructs a new OutboundApi.
18158
18428
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -19283,7 +19553,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19283
19553
  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(){/**
19284
19554
  * Presence service.
19285
19555
  * @module purecloud-platform-client-v2/api/PresenceApi
19286
- * @version 222.0.0
19556
+ * @version 224.0.0
19287
19557
  *//**
19288
19558
  * Constructs a new PresenceApi.
19289
19559
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -19456,7 +19726,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19456
19726
  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(){/**
19457
19727
  * ProcessAutomation service.
19458
19728
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
19459
- * @version 222.0.0
19729
+ * @version 224.0.0
19460
19730
  *//**
19461
19731
  * Constructs a new ProcessAutomationApi.
19462
19732
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -19519,7 +19789,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
19519
19789
  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(){/**
19520
19790
  * Quality service.
19521
19791
  * @module purecloud-platform-client-v2/api/QualityApi
19522
- * @version 222.0.0
19792
+ * @version 224.0.0
19523
19793
  *//**
19524
19794
  * Constructs a new QualityApi.
19525
19795
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -19997,7 +20267,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
19997
20267
  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(){/**
19998
20268
  * Recording service.
19999
20269
  * @module purecloud-platform-client-v2/api/RecordingApi
20000
- * @version 222.0.0
20270
+ * @version 224.0.0
20001
20271
  *//**
20002
20272
  * Constructs a new RecordingApi.
20003
20273
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -20396,7 +20666,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20396
20666
  */},{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(){/**
20397
20667
  * ResponseManagement service.
20398
20668
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
20399
- * @version 222.0.0
20669
+ * @version 224.0.0
20400
20670
  *//**
20401
20671
  * Constructs a new ResponseManagementApi.
20402
20672
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -20517,7 +20787,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
20517
20787
  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(){/**
20518
20788
  * Routing service.
20519
20789
  * @module purecloud-platform-client-v2/api/RoutingApi
20520
- * @version 222.0.0
20790
+ * @version 224.0.0
20521
20791
  *//**
20522
20792
  * Constructs a new RoutingApi.
20523
20793
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -21246,6 +21516,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21246
21516
  */},{key:"patchRoutingSkillgroup",value:function patchRoutingSkillgroup(skillGroupId,body){// verify the required parameter 'skillGroupId' is set
21247
21517
  if(skillGroupId===undefined||skillGroupId===null){throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';}// verify the required parameter 'body' is set
21248
21518
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';}return this.apiClient.callApi('/api/v2/routing/skillgroups/{skillGroupId}','PATCH',{'skillGroupId':skillGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21519
+ * Update a phone number provisioned for SMS.
21520
+ *
21521
+ * @param {String} phoneNumberId phone number
21522
+ * @param {Object} body SmsPhoneNumberPatchRequest
21523
+ */},{key:"patchRoutingSmsPhonenumber",value:function patchRoutingSmsPhonenumber(phoneNumberId,body){// verify the required parameter 'phoneNumberId' is set
21524
+ if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';}// verify the required parameter 'body' is set
21525
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{phoneNumberId}','PATCH',{'phoneNumberId':phoneNumberId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21249
21526
  * Join or unjoin a queue for a user
21250
21527
  *
21251
21528
  * @param {String} queueId Queue ID
@@ -21565,7 +21842,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21565
21842
  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(){/**
21566
21843
  * SCIM service.
21567
21844
  * @module purecloud-platform-client-v2/api/SCIMApi
21568
- * @version 222.0.0
21845
+ * @version 224.0.0
21569
21846
  *//**
21570
21847
  * Constructs a new SCIMApi.
21571
21848
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -21790,7 +22067,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21790
22067
  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(){/**
21791
22068
  * ScreenRecording service.
21792
22069
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
21793
- * @version 222.0.0
22070
+ * @version 224.0.0
21794
22071
  *//**
21795
22072
  * Constructs a new ScreenRecordingApi.
21796
22073
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -21805,7 +22082,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21805
22082
  */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(){/**
21806
22083
  * Scripts service.
21807
22084
  * @module purecloud-platform-client-v2/api/ScriptsApi
21808
- * @version 222.0.0
22085
+ * @version 224.0.0
21809
22086
  *//**
21810
22087
  * Constructs a new ScriptsApi.
21811
22088
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -21951,7 +22228,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
21951
22228
  */},{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(){/**
21952
22229
  * Search service.
21953
22230
  * @module purecloud-platform-client-v2/api/SearchApi
21954
- * @version 222.0.0
22231
+ * @version 224.0.0
21955
22232
  *//**
21956
22233
  * Constructs a new SearchApi.
21957
22234
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -22123,7 +22400,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22123
22400
  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(){/**
22124
22401
  * Settings service.
22125
22402
  * @module purecloud-platform-client-v2/api/SettingsApi
22126
- * @version 222.0.0
22403
+ * @version 224.0.0
22127
22404
  *//**
22128
22405
  * Constructs a new SettingsApi.
22129
22406
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -22195,7 +22472,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
22195
22472
  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(){/**
22196
22473
  * SocialMedia service.
22197
22474
  * @module purecloud-platform-client-v2/api/SocialMediaApi
22198
- * @version 222.0.0
22475
+ * @version 224.0.0
22199
22476
  *//**
22200
22477
  * Constructs a new SocialMediaApi.
22201
22478
  * @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -22236,7 +22513,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22236
22513
  * @param {String} openId openId
22237
22514
  * @param {Object} opts Optional parameters
22238
22515
  * @param {Boolean} opts.hardDelete Determines whether a open data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
22239
- * deleteSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22240
22516
  */},{key:"deleteSocialmediaTopicDataingestionrulesOpenOpenId",value:function deleteSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22241
22517
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22242
22518
  if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','DELETE',{'topicId':topicId,'openId':openId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22339,7 +22615,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22339
22615
  * @param {String} openId openId
22340
22616
  * @param {Object} opts Optional parameters
22341
22617
  * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
22342
- * getSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22343
22618
  */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenId",value:function getSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22344
22619
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22345
22620
  if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','GET',{'topicId':topicId,'openId':openId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22350,7 +22625,6 @@ if(openId===undefined||openId===null){throw'Missing the required parameter "open
22350
22625
  * @param {String} dataIngestionRuleVersion version
22351
22626
  * @param {Object} opts Optional parameters
22352
22627
  * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
22353
- * getSocialmediaTopicDataingestionrulesOpenOpenIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22354
22628
  */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersion",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(topicId,openId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22355
22629
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'openId' is set
22356
22630
  if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
@@ -22363,7 +22637,6 @@ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null){throw'
22363
22637
  * @param {Number} opts.pageNumber Page number (default to 1)
22364
22638
  * @param {Number} opts.pageSize Page size (default to 25)
22365
22639
  * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
22366
- * getSocialmediaTopicDataingestionrulesOpenOpenIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22367
22640
  */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersions",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22368
22641
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}// verify the required parameter 'openId' is set
22369
22642
  if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions','GET',{'topicId':topicId,'openId':openId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22428,7 +22701,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22428
22701
  * @param {String} openId openId
22429
22702
  * @param {Object} opts Optional parameters
22430
22703
  * @param {Object} opts.body
22431
- * patchSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22432
22704
  */},{key:"patchSocialmediaTopicDataingestionrulesOpenOpenId",value:function patchSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22433
22705
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22434
22706
  if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','PATCH',{'topicId':topicId,'openId':openId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22475,9 +22747,26 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22475
22747
  * @param {String} topicId topicId
22476
22748
  * @param {Object} opts Optional parameters
22477
22749
  * @param {Object} opts.body
22478
- * postSocialmediaTopicDataingestionrulesOpen is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22479
22750
  */},{key:"postSocialmediaTopicDataingestionrulesOpen",value:function postSocialmediaTopicDataingestionrulesOpen(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22480
22751
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpen';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
22752
+ * Ingest a list of Open Social Messages
22753
+ * Ingest a list of open social messages to an ingestion rule on a topic. This endpoint will ingest and enrich these messages. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least social scope.
22754
+ * @param {String} topicId Topic ID
22755
+ * @param {String} ruleId Data Ingestion Rule ID
22756
+ * @param {Array.<Object>} body NormalizedMessage
22757
+ */},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
22758
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'ruleId' is set
22759
+ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'body' is set
22760
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/messages/bulk','POST',{'topicId':topicId,'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22761
+ * Ingest a list of Open Social Reactions
22762
+ * Ingest a list of open social reactions to an ingestion rule on a topic. This endpoint will ingest these reactions. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least social scope.
22763
+ * @param {String} topicId Topic ID
22764
+ * @param {String} ruleId Data Ingestion Rule ID
22765
+ * @param {Object} body NormalizedEvent
22766
+ */},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
22767
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'ruleId' is set
22768
+ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'body' is set
22769
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/reactions/bulk','POST',{'topicId':topicId,'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22481
22770
  * Create an twitter data ingestion rule.
22482
22771
  *
22483
22772
  * @param {String} topicId topicId
@@ -22517,7 +22806,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22517
22806
  * @param {String} openId openId
22518
22807
  * @param {Object} opts Optional parameters
22519
22808
  * @param {Object} opts.body
22520
- * putSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22521
22809
  */},{key:"putSocialmediaTopicDataingestionrulesOpenOpenId",value:function putSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22522
22810
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22523
22811
  if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','PUT',{'topicId':topicId,'openId':openId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22532,7 +22820,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22532
22820
  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(){/**
22533
22821
  * SpeechTextAnalytics service.
22534
22822
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
22535
- * @version 222.0.0
22823
+ * @version 224.0.0
22536
22824
  *//**
22537
22825
  * Constructs a new SpeechTextAnalyticsApi.
22538
22826
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -22734,6 +23022,11 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22734
23022
  * @param {String} jobId The id of the publish topics job
22735
23023
  */},{key:"getSpeechandtextanalyticsTopicsPublishjob",value:function getSpeechandtextanalyticsTopicsPublishjob(jobId){// verify the required parameter 'jobId' is set
22736
23024
  if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsPublishjob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/publishjobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23025
+ * Get a Speech and Text Analytics test topics phrase job by id
23026
+ *
23027
+ * @param {String} jobId the id of the test topic phrase job
23028
+ */},{key:"getSpeechandtextanalyticsTopicsTestphraseJob",value:function getSpeechandtextanalyticsTopicsTestphraseJob(jobId){// verify the required parameter 'jobId' is set
23029
+ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsTestphraseJob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/testphrase/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22737
23030
  * Translate a single interaction recording (or an email conversation)
22738
23031
  *
22739
23032
  * @param {String} languageId Target translation language
@@ -22792,6 +23085,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22792
23085
  * @param {Object} body The publish topics job to create
22793
23086
  */},{key:"postSpeechandtextanalyticsTopicsPublishjobs",value:function postSpeechandtextanalyticsTopicsPublishjobs(body){// verify the required parameter 'body' is set
22794
23087
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsPublishjobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/publishjobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23088
+ * Create new Speech and Text Analytics publish topics job
23089
+ *
23090
+ * @param {Object} body The publish test topic phrase job to create
23091
+ */},{key:"postSpeechandtextanalyticsTopicsTestphraseJobs",value:function postSpeechandtextanalyticsTopicsTestphraseJobs(body){// verify the required parameter 'body' is set
23092
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsTestphraseJobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/testphrase/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22795
23093
  * Search resources.
22796
23094
  *
22797
23095
  * @param {Object} body Search request options
@@ -22853,7 +23151,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22853
23151
  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(){/**
22854
23152
  * Stations service.
22855
23153
  * @module purecloud-platform-client-v2/api/StationsApi
22856
- * @version 222.0.0
23154
+ * @version 224.0.0
22857
23155
  *//**
22858
23156
  * Constructs a new StationsApi.
22859
23157
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -22885,7 +23183,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
22885
23183
  */},{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(){/**
22886
23184
  * Suggest service.
22887
23185
  * @module purecloud-platform-client-v2/api/SuggestApi
22888
- * @version 222.0.0
23186
+ * @version 224.0.0
22889
23187
  *//**
22890
23188
  * Constructs a new SuggestApi.
22891
23189
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -22925,7 +23223,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22925
23223
  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(){/**
22926
23224
  * TaskManagement service.
22927
23225
  * @module purecloud-platform-client-v2/api/TaskManagementApi
22928
- * @version 222.0.0
23226
+ * @version 224.0.0
22929
23227
  *//**
22930
23228
  * Constructs a new TaskManagementApi.
22931
23229
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -23433,7 +23731,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
23433
23731
  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(){/**
23434
23732
  * Teams service.
23435
23733
  * @module purecloud-platform-client-v2/api/TeamsApi
23436
- * @version 222.0.0
23734
+ * @version 224.0.0
23437
23735
  *//**
23438
23736
  * Constructs a new TeamsApi.
23439
23737
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -23477,7 +23775,7 @@ if(teamId===undefined||teamId===null){throw'Missing the required parameter "team
23477
23775
  * @param {String} opts.name Return only teams whose names start with this value (case-insensitive matching)
23478
23776
  * @param {String} opts.after The cursor that points to the next item in the complete list of teams
23479
23777
  * @param {String} opts.before The cursor that points to the previous item in the complete list of teams
23480
- * @param {Object} opts.expand Expand the name on each user
23778
+ * @param {Object} opts.expand Expand the division on each team
23481
23779
  */},{key:"getTeams",value:function getTeams(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/teams','GET',{},{'pageSize':opts['pageSize'],'name':opts['name'],'after':opts['after'],'before':opts['before'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23482
23780
  * Update team
23483
23781
  *
@@ -23513,7 +23811,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23513
23811
  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(){/**
23514
23812
  * Telephony service.
23515
23813
  * @module purecloud-platform-client-v2/api/TelephonyApi
23516
- * @version 222.0.0
23814
+ * @version 224.0.0
23517
23815
  *//**
23518
23816
  * Constructs a new TelephonyApi.
23519
23817
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -23560,7 +23858,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
23560
23858
  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(){/**
23561
23859
  * TelephonyProvidersEdge service.
23562
23860
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
23563
- * @version 222.0.0
23861
+ * @version 224.0.0
23564
23862
  *//**
23565
23863
  * Constructs a new TelephonyProvidersEdgeApi.
23566
23864
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -23844,7 +24142,7 @@ if(extensionPoolId===undefined||extensionPoolId===null){throw'Missing the requir
23844
24142
  * @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
23845
24143
  */},{key:"getTelephonyProvidersEdgesExtensionpools",value:function getTelephonyProvidersEdgesExtensionpools(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/telephony/providers/edges/extensionpools','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'number':opts['_number'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23846
24144
  * Get a pageable list of basic extension pool objects filterable by query parameters.
23847
- * This returns extension pools consisting of name and division. If one or more IDs are specified, the search will fetch flow outcomes that match the given ID(s) and not use any additional supplied query parameters in the search.
24145
+ * This returns extension pools consisting of name and division. If one or more IDs are specified, the search will fetch extension pools that match the given ID(s) and not use any additional supplied query parameters in the search.
23848
24146
  * @param {Object} opts Optional parameters
23849
24147
  * @param {Number} opts.pageNumber Page number (default to 1)
23850
24148
  * @param {Number} opts.pageSize Page size (default to 25)
@@ -24243,6 +24541,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24243
24541
  * @param {Object} body ExtensionPool
24244
24542
  */},{key:"postTelephonyProvidersEdgesExtensionpools",value:function postTelephonyProvidersEdgesExtensionpools(body){// verify the required parameter 'body' is set
24245
24543
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesExtensionpools';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/extensionpools','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
24544
+ * Post media endpoint statistics event.
24545
+ *
24546
+ * @param {String} conversationId Identifier of the conversation
24547
+ * @param {String} communicationId Identifier of the media session
24548
+ * @param {String} mediaResourceId Identifier of the media resource of the endpoint
24549
+ * @param {Object} body MediaStatisticsPostRequest
24550
+ * postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
24551
+ */},{key:"postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource",value:function postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(conversationId,communicationId,mediaResourceId,body){// verify the required parameter 'conversationId' is set
24552
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}// verify the required parameter 'communicationId' is set
24553
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}// verify the required parameter 'mediaResourceId' is set
24554
+ if(mediaResourceId===undefined||mediaResourceId===null){throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}// verify the required parameter 'body' is set
24555
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}','POST',{'conversationId':conversationId,'communicationId':communicationId,'mediaResourceId':mediaResourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
24246
24556
  * Reboot a Phone
24247
24557
  *
24248
24558
  * @param {String} phoneId Phone Id
@@ -24396,7 +24706,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
24396
24706
  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(){/**
24397
24707
  * Textbots service.
24398
24708
  * @module purecloud-platform-client-v2/api/TextbotsApi
24399
- * @version 222.0.0
24709
+ * @version 224.0.0
24400
24710
  *//**
24401
24711
  * Constructs a new TextbotsApi.
24402
24712
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -24432,7 +24742,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
24432
24742
  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(){/**
24433
24743
  * Tokens service.
24434
24744
  * @module purecloud-platform-client-v2/api/TokensApi
24435
- * @version 222.0.0
24745
+ * @version 224.0.0
24436
24746
  *//**
24437
24747
  * Constructs a new TokensApi.
24438
24748
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -24466,7 +24776,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
24466
24776
  */},{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(){/**
24467
24777
  * Uploads service.
24468
24778
  * @module purecloud-platform-client-v2/api/UploadsApi
24469
- * @version 222.0.0
24779
+ * @version 224.0.0
24470
24780
  *//**
24471
24781
  * Constructs a new UploadsApi.
24472
24782
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -24534,7 +24844,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24534
24844
  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(){/**
24535
24845
  * Usage service.
24536
24846
  * @module purecloud-platform-client-v2/api/UsageApi
24537
- * @version 222.0.0
24847
+ * @version 224.0.0
24538
24848
  *//**
24539
24849
  * Constructs a new UsageApi.
24540
24850
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -24588,7 +24898,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24588
24898
  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(){/**
24589
24899
  * UserRecordings service.
24590
24900
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
24591
- * @version 222.0.0
24901
+ * @version 224.0.0
24592
24902
  *//**
24593
24903
  * Constructs a new UserRecordingsApi.
24594
24904
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -24645,7 +24955,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
24645
24955
  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(){/**
24646
24956
  * Users service.
24647
24957
  * @module purecloud-platform-client-v2/api/UsersApi
24648
- * @version 222.0.0
24958
+ * @version 224.0.0
24649
24959
  *//**
24650
24960
  * Constructs a new UsersApi.
24651
24961
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -25051,6 +25361,17 @@ if(externalKey===undefined||externalKey===null){throw'Missing the required param
25051
25361
  * @param {Array.<String>} opts.expand Which fields, if any, to expand.
25052
25362
  * @param {Object} opts.integrationPresenceSource Get your presence for a given integration. This parameter will only be used when presence is provided as an expand.
25053
25363
  */},{key:"getUsersMe",value:function getUsersMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/users/me','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'integrationPresenceSource':opts['integrationPresenceSource']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
25364
+ * Get list of available users, paged by cursor token, No division filtering available so directory:user:view permission for all divisions is required
25365
+ *
25366
+ * @param {Object} opts Optional parameters
25367
+ * @param {String} opts.cursor Cursor token to retrieve next page
25368
+ * @param {Number} opts.pageSize Page size (default to 25)
25369
+ * @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
25370
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand. Note, expand parameters are resolved with a best effort approach and not guaranteed to be returned. If requested expand information is absolutely required, it's recommended to use specific API requests instead.
25371
+ * @param {Object} opts.integrationPresenceSource Gets an integration presence for users instead of their defaults. This parameter will only be used when presence is provided as an expand. When using this parameter the maximum number of users that can be returned is 100.
25372
+ * @param {Object} opts.state Only list users of this state (default to active)
25373
+ * getUsersQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
25374
+ */},{key:"getUsersQuery",value:function getUsersQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/users/query','GET',{},{'cursor':opts['cursor'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'integrationPresenceSource':opts['integrationPresenceSource'],'state':opts['state']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
25054
25375
  * Search users using the q64 value returned from a previous search
25055
25376
  *
25056
25377
  * @param {String} q64 q64
@@ -25372,7 +25693,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
25372
25693
  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(){/**
25373
25694
  * Utilities service.
25374
25695
  * @module purecloud-platform-client-v2/api/UtilitiesApi
25375
- * @version 222.0.0
25696
+ * @version 224.0.0
25376
25697
  *//**
25377
25698
  * Constructs a new UtilitiesApi.
25378
25699
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -25399,7 +25720,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25399
25720
  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(){/**
25400
25721
  * Voicemail service.
25401
25722
  * @module purecloud-platform-client-v2/api/VoicemailApi
25402
- * @version 222.0.0
25723
+ * @version 224.0.0
25403
25724
  *//**
25404
25725
  * Constructs a new VoicemailApi.
25405
25726
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -25456,7 +25777,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
25456
25777
  */},{key:"getVoicemailMessage",value:function getVoicemailMessage(messageId,opts){opts=opts||{};// verify the required parameter 'messageId' is set
25457
25778
  if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getVoicemailMessage';}return this.apiClient.callApi('/api/v2/voicemail/messages/{messageId}','GET',{'messageId':messageId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
25458
25779
  * Get media playback URI for this voicemail message
25459
- *
25780
+ * API should migrate to use GET api/v2/voicemail/messages/{messageId}/downloads
25460
25781
  * @param {String} messageId Message ID
25461
25782
  * @param {Object} opts Optional parameters
25462
25783
  * @param {Object} opts.formatId The desired media format. (default to WEBM)
@@ -25561,7 +25882,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
25561
25882
  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(){/**
25562
25883
  * WebChat service.
25563
25884
  * @module purecloud-platform-client-v2/api/WebChatApi
25564
- * @version 222.0.0
25885
+ * @version 224.0.0
25565
25886
  *//**
25566
25887
  * Constructs a new WebChatApi.
25567
25888
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -25705,7 +26026,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25705
26026
  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(){/**
25706
26027
  * WebDeployments service.
25707
26028
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
25708
- * @version 222.0.0
26029
+ * @version 224.0.0
25709
26030
  *//**
25710
26031
  * Constructs a new WebDeploymentsApi.
25711
26032
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -25838,7 +26159,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25838
26159
  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(){/**
25839
26160
  * WebMessaging service.
25840
26161
  * @module purecloud-platform-client-v2/api/WebMessagingApi
25841
- * @version 222.0.0
26162
+ * @version 224.0.0
25842
26163
  *//**
25843
26164
  * Constructs a new WebMessagingApi.
25844
26165
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -25854,7 +26175,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25854
26175
  */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(){/**
25855
26176
  * Widgets service.
25856
26177
  * @module purecloud-platform-client-v2/api/WidgetsApi
25857
- * @version 222.0.0
26178
+ * @version 224.0.0
25858
26179
  *//**
25859
26180
  * Constructs a new WidgetsApi.
25860
26181
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -25894,7 +26215,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25894
26215
  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(){/**
25895
26216
  * WorkforceManagement service.
25896
26217
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
25897
- * @version 222.0.0
26218
+ * @version 224.0.0
25898
26219
  *//**
25899
26220
  * Constructs a new WorkforceManagementApi.
25900
26221
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -26269,8 +26590,9 @@ if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the requir
26269
26590
  * @param {String} businessUnitId The ID of the business unit
26270
26591
  * @param {Object} opts Optional parameters
26271
26592
  * @param {String} opts.managementUnitId The ID of the management unit to get management unit specific staffing groups
26593
+ * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
26272
26594
  */},{key:"getWorkforcemanagementBusinessunitStaffinggroups",value:function getWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26273
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','GET',{'businessUnitId':businessUnitId},{'managementUnitId':opts['managementUnitId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26595
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','GET',{'businessUnitId':businessUnitId},{'managementUnitId':opts['managementUnitId'],'forceDownloadService':opts['forceDownloadService']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26274
26596
  * Gets a time-off limit object
26275
26597
  * Returns properties of time-off limit object, but not daily values
26276
26598
  * @param {String} businessUnitId The ID of the business unit
@@ -26772,10 +27094,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26772
27094
  * Update my alternative shifts trade by trade ID
26773
27095
  *
26774
27096
  * @param {String} tradeId The ID of the alternative shift trade
26775
- * @param {Object} opts Optional parameters
26776
- * @param {Object} opts.body body
26777
- */},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,opts){opts=opts||{};// verify the required parameter 'tradeId' is set
26778
- if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}','PATCH',{'tradeId':tradeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27097
+ * @param {Object} body body
27098
+ */},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,body){// verify the required parameter 'tradeId' is set
27099
+ if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';}// verify the required parameter 'body' is set
27100
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}','PATCH',{'tradeId':tradeId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26779
27101
  * Bulk update alternative shift trade states
26780
27102
  *
26781
27103
  * @param {Object} body The request body
@@ -26784,19 +27106,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26784
27106
  * Update business unit
26785
27107
  *
26786
27108
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
26787
- * @param {Object} opts Optional parameters
26788
- * @param {Object} opts.body body
26789
- */},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26790
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','PATCH',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27109
+ * @param {Object} body body
27110
+ */},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27111
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}// verify the required parameter 'body' is set
27112
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','PATCH',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26791
27113
  * Update an activity code
26792
27114
  *
26793
27115
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
26794
27116
  * @param {String} activityCodeId The ID of the activity code to update
26795
- * @param {Object} opts Optional parameters
26796
- * @param {Object} opts.body body
26797
- */},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27117
+ * @param {Object} body body
27118
+ */},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,body){// verify the required parameter 'businessUnitId' is set
26798
27119
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'activityCodeId' is set
26799
- if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}','PATCH',{'businessUnitId':businessUnitId,'activityCodeId':activityCodeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27120
+ if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'body' is set
27121
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivitycode';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}','PATCH',{'businessUnitId':businessUnitId,'activityCodeId':activityCodeId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26800
27122
  * Update an activity plan
26801
27123
  * If a job associated with the activity plan is in Processing state the activity plan cannot be updated
26802
27124
  * @param {String} businessUnitId The ID of the business unit
@@ -26809,55 +27131,55 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26809
27131
  * Update alternative shifts settings for a business unit
26810
27132
  *
26811
27133
  * @param {String} businessUnitId The ID of the business unit
26812
- * @param {Object} opts Optional parameters
26813
- * @param {Object} opts.body body
26814
- */},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26815
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings','PATCH',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27134
+ * @param {Object} body body
27135
+ */},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27136
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}// verify the required parameter 'body' is set
27137
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings','PATCH',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26816
27138
  * Updates the planning group
26817
27139
  *
26818
27140
  * @param {String} businessUnitId The ID of the business unit.
26819
27141
  * @param {String} planningGroupId The ID of a planning group to update
26820
- * @param {Object} opts Optional parameters
26821
- * @param {Object} opts.body body
26822
- */},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27142
+ * @param {Object} body body
27143
+ */},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,body){// verify the required parameter 'businessUnitId' is set
26823
27144
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
26824
- if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','PATCH',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27145
+ if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'body' is set
27146
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','PATCH',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26825
27147
  * Mark a schedule run as applied
26826
27148
  *
26827
27149
  * @param {String} businessUnitId The ID of the business unit
26828
27150
  * @param {String} runId The ID of the schedule run
26829
- * @param {Object} opts Optional parameters
26830
- * @param {Object} opts.body body
26831
- */},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27151
+ * @param {Object} body body
27152
+ */},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,body){// verify the required parameter 'businessUnitId' is set
26832
27153
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'runId' is set
26833
- if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}','PATCH',{'businessUnitId':businessUnitId,'runId':runId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27154
+ if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'body' is set
27155
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}','PATCH',{'businessUnitId':businessUnitId,'runId':runId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26834
27156
  * Updates a service goal template
26835
27157
  *
26836
27158
  * @param {String} businessUnitId The ID of the business unit.
26837
27159
  * @param {String} serviceGoalTemplateId The ID of a service goal template to update
26838
- * @param {Object} opts Optional parameters
26839
- * @param {Object} opts.body body
26840
- */},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27160
+ * @param {Object} body body
27161
+ */},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,body){// verify the required parameter 'businessUnitId' is set
26841
27162
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'serviceGoalTemplateId' is set
26842
- if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}','PATCH',{'businessUnitId':businessUnitId,'serviceGoalTemplateId':serviceGoalTemplateId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27163
+ if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'body' is set
27164
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}','PATCH',{'businessUnitId':businessUnitId,'serviceGoalTemplateId':serviceGoalTemplateId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26843
27165
  * Updates a staffing group
26844
27166
  *
26845
27167
  * @param {String} businessUnitId The ID of the business unit
26846
27168
  * @param {String} staffingGroupId The ID of the staffing group to update
26847
- * @param {Object} opts Optional parameters
26848
- * @param {Object} opts.body body
26849
- */},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27169
+ * @param {Object} body body
27170
+ */},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,body){// verify the required parameter 'businessUnitId' is set
26850
27171
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'staffingGroupId' is set
26851
- if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}','PATCH',{'businessUnitId':businessUnitId,'staffingGroupId':staffingGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27172
+ if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'body' is set
27173
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}','PATCH',{'businessUnitId':businessUnitId,'staffingGroupId':staffingGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26852
27174
  * Updates a time-off plan
26853
27175
  *
26854
27176
  * @param {String} businessUnitId The ID of the business unit
26855
27177
  * @param {String} timeOffPlanId The ID of the time-off plan to update
26856
- * @param {Object} opts Optional parameters
26857
- * @param {Object} opts.body body
26858
- */},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27178
+ * @param {Object} body body
27179
+ */},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,body){// verify the required parameter 'businessUnitId' is set
26859
27180
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
26860
- if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'businessUnitId':businessUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27181
+ if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'body' is set
27182
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'businessUnitId':businessUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26861
27183
  * Update work plan bid
26862
27184
  *
26863
27185
  * @param {String} businessUnitId The ID of the business unit
@@ -26872,84 +27194,84 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26872
27194
  * @param {String} businessUnitId The ID of the business unit
26873
27195
  * @param {String} bidId The work plan bid id of the bid groups
26874
27196
  * @param {String} bidGroupId Work Plan Bid Group id
26875
- * @param {Object} opts Optional parameters
26876
- * @param {Object} opts.body body
26877
- */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27197
+ * @param {Object} body body
27198
+ */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
26878
27199
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
26879
27200
  if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
26880
- if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27201
+ if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'body' is set
27202
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26881
27203
  * Overrides the assigned work plan for the specified agents
26882
27204
  *
26883
27205
  * @param {String} businessUnitId The ID of the business unit
26884
27206
  * @param {String} bidId The work plan bid id of the bid groups
26885
27207
  * @param {String} bidGroupId The ID of the work plan bid group
26886
- * @param {Object} opts Optional parameters
26887
- * @param {Object} opts.body body
26888
- */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27208
+ * @param {Object} body body
27209
+ */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
26889
27210
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
26890
27211
  if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
26891
- if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27212
+ if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'body' is set
27213
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26892
27214
  * Update the requested management unit
26893
27215
  *
26894
27216
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26895
- * @param {Object} opts Optional parameters
26896
- * @param {Object} opts.body body
26897
- */},{key:"patchWorkforcemanagementManagementunit",value:function patchWorkforcemanagementManagementunit(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26898
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}','PATCH',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27217
+ * @param {Object} body body
27218
+ */},{key:"patchWorkforcemanagementManagementunit",value:function patchWorkforcemanagementManagementunit(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27219
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';}// verify the required parameter 'body' is set
27220
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}','PATCH',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26899
27221
  * Update agent configurations
26900
27222
  *
26901
27223
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26902
- * @param {Object} opts Optional parameters
26903
- * @param {Object} opts.body body
26904
- */},{key:"patchWorkforcemanagementManagementunitAgents",value:function patchWorkforcemanagementManagementunitAgents(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26905
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents','PATCH',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27224
+ * @param {Object} body body
27225
+ */},{key:"patchWorkforcemanagementManagementunitAgents",value:function patchWorkforcemanagementManagementunitAgents(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27226
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';}// verify the required parameter 'body' is set
27227
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents','PATCH',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26906
27228
  * Updates agent work plan configuration
26907
27229
  *
26908
27230
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26909
- * @param {Object} opts Optional parameters
26910
- * @param {Object} opts.body body
26911
- */},{key:"patchWorkforcemanagementManagementunitAgentsWorkplansBulk",value:function patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26912
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk','PATCH',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27231
+ * @param {Object} body body
27232
+ */},{key:"patchWorkforcemanagementManagementunitAgentsWorkplansBulk",value:function patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27233
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}// verify the required parameter 'body' is set
27234
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk','PATCH',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26913
27235
  * Updates a time off limit object.
26914
27236
  * Updates time off limit object properties, but not daily values.
26915
27237
  * @param {String} managementUnitId The ID of the management unit.
26916
27238
  * @param {String} timeOffLimitId The id of time off limit object to update
26917
- * @param {Object} opts Optional parameters
26918
- * @param {Object} opts.body body
26919
- */},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27239
+ * @param {Object} body body
27240
+ */},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
26920
27241
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'timeOffLimitId' is set
26921
- if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}','PATCH',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27242
+ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'body' is set
27243
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeofflimit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}','PATCH',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26922
27244
  * Updates a time off plan
26923
27245
  *
26924
27246
  * @param {String} managementUnitId The ID of the management unit
26925
27247
  * @param {String} timeOffPlanId The ID of the time off plan to update
26926
- * @param {Object} opts Optional parameters
26927
- * @param {Object} opts.body body
26928
- */},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27248
+ * @param {Object} body body
27249
+ */},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,body){// verify the required parameter 'managementUnitId' is set
26929
27250
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
26930
- if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'managementUnitId':managementUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27251
+ if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'body' is set
27252
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'managementUnitId':managementUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26931
27253
  * Set integration status for a time off request.
26932
27254
  *
26933
27255
  * @param {String} managementUnitId The ID of the management unit.
26934
27256
  * @param {String} timeOffRequestId The ID of the time off request.
26935
27257
  * @param {String} userId The ID of user to whom the time off request belongs.
26936
- * @param {Object} opts Optional parameters
26937
- * @param {Object} opts.body body
26938
- */},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27258
+ * @param {Object} body body
27259
+ */},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,body){// verify the required parameter 'managementUnitId' is set
26939
27260
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'timeOffRequestId' is set
26940
27261
  if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'userId' is set
26941
- if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus','PATCH',{'managementUnitId':managementUnitId,'timeOffRequestId':timeOffRequestId,'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27262
+ if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'body' is set
27263
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus','PATCH',{'managementUnitId':managementUnitId,'timeOffRequestId':timeOffRequestId,'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26942
27264
  * Update a time off request
26943
27265
  *
26944
27266
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26945
27267
  * @param {String} userId The id of the user the requested time off request belongs to
26946
27268
  * @param {String} timeOffRequestId The id of the time off request to update
26947
- * @param {Object} opts Optional parameters
26948
- * @param {Object} opts.body body
26949
- */},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27269
+ * @param {Object} body body
27270
+ */},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,body){// verify the required parameter 'managementUnitId' is set
26950
27271
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'userId' is set
26951
27272
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'timeOffRequestId' is set
26952
- if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}','PATCH',{'managementUnitId':managementUnitId,'userId':userId,'timeOffRequestId':timeOffRequestId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27273
+ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'body' is set
27274
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}','PATCH',{'managementUnitId':managementUnitId,'userId':userId,'timeOffRequestId':timeOffRequestId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26953
27275
  * Updates a shift trade. This route can only be called by the initiating agent
26954
27276
  *
26955
27277
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
@@ -26965,35 +27287,36 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26965
27287
  *
26966
27288
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26967
27289
  * @param {String} workPlanId The ID of the work plan to update
27290
+ * @param {Object} body body
26968
27291
  * @param {Object} opts Optional parameters
26969
27292
  * @param {Object} opts.validationMode Allows to update work plan even if validation result is invalid
26970
- * @param {Object} opts.body body
26971
- */},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27293
+ */},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26972
27294
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'workPlanId' is set
26973
- if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}','PATCH',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{'validationMode':opts['validationMode']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27295
+ if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'body' is set
27296
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}','PATCH',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{'validationMode':opts['validationMode']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26974
27297
  * Update a work plan rotation
26975
27298
  *
26976
27299
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26977
27300
  * @param {String} workPlanRotationId The ID of the work plan rotation to update
26978
- * @param {Object} opts Optional parameters
26979
- * @param {Object} opts.body body
26980
- */},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27301
+ * @param {Object} body body
27302
+ */},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
26981
27303
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'workPlanRotationId' is set
26982
- if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}','PATCH',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27304
+ if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'body' is set
27305
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}','PATCH',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26983
27306
  * Update a time off request for the current user
26984
27307
  *
26985
27308
  * @param {String} timeOffRequestId The ID of the time off request
26986
- * @param {Object} opts Optional parameters
26987
- * @param {Object} opts.body body
26988
- */},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'timeOffRequestId' is set
26989
- if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}','PATCH',{'timeOffRequestId':timeOffRequestId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27309
+ * @param {Object} body body
27310
+ */},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,body){// verify the required parameter 'timeOffRequestId' is set
27311
+ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';}// verify the required parameter 'body' is set
27312
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}','PATCH',{'timeOffRequestId':timeOffRequestId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26990
27313
  * Update work plan bid ranks for a user
26991
27314
  *
26992
27315
  * @param {String} userId The userId to whom the work plan bid ranks apply.
26993
- * @param {Object} opts Optional parameters
26994
- * @param {Object} opts.body body
26995
- */},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
26996
- if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';}return this.apiClient.callApi('/api/v2/workforcemanagement/users/{userId}/workplanbidranks','PATCH',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27316
+ * @param {Object} body body
27317
+ */},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,body){// verify the required parameter 'userId' is set
27318
+ if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';}// verify the required parameter 'body' is set
27319
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';}return this.apiClient.callApi('/api/v2/workforcemanagement/users/{userId}/workplanbidranks','PATCH',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26997
27320
  * Update bulk work plan bid ranks on users. Max 50 users can be updated at a time.
26998
27321
  *
26999
27322
  * @param {Array.<Object>} body Users
@@ -27002,10 +27325,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27002
27325
  * Update an agent's work plan bidding preference
27003
27326
  *
27004
27327
  * @param {String} bidId The ID of the work plan bid
27005
- * @param {Object} opts Optional parameters
27006
- * @param {Object} opts.body body
27007
- */},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
27008
- if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids/{bidId}/preferences','PATCH',{'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27328
+ * @param {Object} body body
27329
+ */},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,body){// verify the required parameter 'bidId' is set
27330
+ if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';}// verify the required parameter 'body' is set
27331
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids/{bidId}/preferences','PATCH',{'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27009
27332
  * Submit an adherence explanation for the current user
27010
27333
  *
27011
27334
  * @param {Object} body The request body
@@ -27027,9 +27350,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27027
27350
  */},{key:"postWorkforcemanagementAdherenceHistorical",value:function postWorkforcemanagementAdherenceHistorical(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/adherence/historical','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27028
27351
  * Request a historical adherence report in bulk
27029
27352
  *
27030
- * @param {Object} opts Optional parameters
27031
- * @param {Object} opts.body body
27032
- */},{key:"postWorkforcemanagementAdherenceHistoricalBulk",value:function postWorkforcemanagementAdherenceHistoricalBulk(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/adherence/historical/bulk','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27353
+ * @param {Object} body body
27354
+ */},{key:"postWorkforcemanagementAdherenceHistoricalBulk",value:function postWorkforcemanagementAdherenceHistoricalBulk(body){// verify the required parameter 'body' is set
27355
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceHistoricalBulk';}return this.apiClient.callApi('/api/v2/workforcemanagement/adherence/historical/bulk','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27033
27356
  * Add an adherence explanation for the requested user
27034
27357
  *
27035
27358
  * @param {String} agentId The ID of the agent to query
@@ -27049,14 +27372,14 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
27049
27372
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/query','POST',{'agentId':agentId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27050
27373
  * Move agents in and out of management unit
27051
27374
  *
27052
- * @param {Object} opts Optional parameters
27053
- * @param {Object} opts.body body
27054
- */},{key:"postWorkforcemanagementAgents",value:function postWorkforcemanagementAgents(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/agents','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27375
+ * @param {Object} body body
27376
+ */},{key:"postWorkforcemanagementAgents",value:function postWorkforcemanagementAgents(body){// verify the required parameter 'body' is set
27377
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgents';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27055
27378
  * Query integrations for agents
27056
27379
  *
27057
- * @param {Object} opts Optional parameters
27058
- * @param {Object} opts.body body
27059
- */},{key:"postWorkforcemanagementAgentsIntegrationsHrisQuery",value:function postWorkforcemanagementAgentsIntegrationsHrisQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/agents/integrations/hris/query','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27380
+ * @param {Object} body body
27381
+ */},{key:"postWorkforcemanagementAgentsIntegrationsHrisQuery",value:function postWorkforcemanagementAgentsIntegrationsHrisQuery(body){// verify the required parameter 'body' is set
27382
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsIntegrationsHrisQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents/integrations/hris/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27060
27383
  * Get agent possible work shifts for requested time frame
27061
27384
  *
27062
27385
  * @param {Object} body body
@@ -27064,9 +27387,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27064
27387
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents/me/possibleworkshifts','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27065
27388
  * Get published schedule for the current user
27066
27389
  *
27067
- * @param {Object} opts Optional parameters
27068
- * @param {Object} opts.body body
27069
- */},{key:"postWorkforcemanagementAgentschedulesMine",value:function postWorkforcemanagementAgentschedulesMine(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/agentschedules/mine','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27390
+ * @param {Object} body body
27391
+ */},{key:"postWorkforcemanagementAgentschedulesMine",value:function postWorkforcemanagementAgentschedulesMine(body){// verify the required parameter 'body' is set
27392
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesMine';}return this.apiClient.callApi('/api/v2/workforcemanagement/agentschedules/mine','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27070
27393
  * Request a list of alternative shift offers for a given schedule
27071
27394
  *
27072
27395
  * @param {Object} body The request body
@@ -27085,10 +27408,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27085
27408
  * Create a new activity code
27086
27409
  *
27087
27410
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
27088
- * @param {Object} opts Optional parameters
27089
- * @param {Object} opts.body body
27090
- */},{key:"postWorkforcemanagementBusinessunitActivitycodes",value:function postWorkforcemanagementBusinessunitActivitycodes(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27091
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27411
+ * @param {Object} body body
27412
+ */},{key:"postWorkforcemanagementBusinessunitActivitycodes",value:function postWorkforcemanagementBusinessunitActivitycodes(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27413
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';}// verify the required parameter 'body' is set
27414
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27092
27415
  * Run an activity plan manually
27093
27416
  * Triggers a job running the activity plan. The activity plan cannot be updated until the job completes
27094
27417
  * @param {String} businessUnitId The ID of the business unit
@@ -27116,12 +27439,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27116
27439
  * Search published schedules
27117
27440
  *
27118
27441
  * @param {String} businessUnitId The ID of the business unit
27442
+ * @param {Object} body body
27119
27443
  * @param {Object} opts Optional parameters
27120
27444
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
27121
27445
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27122
- * @param {Object} opts.body body
27123
- */},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27124
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27446
+ */},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27447
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}// verify the required parameter 'body' is set
27448
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27125
27449
  * List alternative shifts trades for a given management unit or agent
27126
27450
  *
27127
27451
  * @param {String} businessUnitId The ID of the business unit
@@ -27134,60 +27458,63 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27134
27458
  * Get intraday data for the given date for the requested planningGroupIds
27135
27459
  *
27136
27460
  * @param {String} businessUnitId The ID of the business unit
27461
+ * @param {Object} body body
27137
27462
  * @param {Object} opts Optional parameters
27138
27463
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
27139
- * @param {Object} opts.body body
27140
- */},{key:"postWorkforcemanagementBusinessunitIntraday",value:function postWorkforcemanagementBusinessunitIntraday(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27141
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27464
+ */},{key:"postWorkforcemanagementBusinessunitIntraday",value:function postWorkforcemanagementBusinessunitIntraday(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27465
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';}// verify the required parameter 'body' is set
27466
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27142
27467
  * Adds a new planning group
27143
27468
  *
27144
27469
  * @param {String} businessUnitId The ID of the business unit.
27145
- * @param {Object} opts Optional parameters
27146
- * @param {Object} opts.body body
27147
- */},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27148
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27470
+ * @param {Object} body body
27471
+ */},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27472
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}// verify the required parameter 'body' is set
27473
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27149
27474
  * Adds a new service goal template
27150
27475
  *
27151
27476
  * @param {String} businessUnitId The ID of the business unit.
27152
- * @param {Object} opts Optional parameters
27153
- * @param {Object} opts.body body
27154
- */},{key:"postWorkforcemanagementBusinessunitServicegoaltemplates",value:function postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27155
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27477
+ * @param {Object} body body
27478
+ */},{key:"postWorkforcemanagementBusinessunitServicegoaltemplates",value:function postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27479
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}// verify the required parameter 'body' is set
27480
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27156
27481
  * Creates a new staffing group
27157
27482
  *
27158
27483
  * @param {String} businessUnitId The ID of the business unit
27159
- * @param {Object} opts Optional parameters
27160
- * @param {Object} opts.body body
27161
- */},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27162
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27484
+ * @param {Object} body body
27485
+ */},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27486
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}// verify the required parameter 'body' is set
27487
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27163
27488
  * Gets staffing group associations for a list of user IDs
27164
27489
  *
27165
27490
  * @param {String} businessUnitId The ID of the business unit
27491
+ * @param {Object} body body
27166
27492
  * @param {Object} opts Optional parameters
27167
- * @param {Object} opts.body body
27168
- */},{key:"postWorkforcemanagementBusinessunitStaffinggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27169
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27493
+ * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service
27494
+ */},{key:"postWorkforcemanagementBusinessunitStaffinggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27495
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}// verify the required parameter 'body' is set
27496
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query','POST',{'businessUnitId':businessUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27170
27497
  * Creates a new time-off limit object
27171
27498
  *
27172
27499
  * @param {String} businessUnitId The ID of the business unit
27173
- * @param {Object} opts Optional parameters
27174
- * @param {Object} opts.body body
27175
- */},{key:"postWorkforcemanagementBusinessunitTimeofflimits",value:function postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27176
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27500
+ * @param {Object} body body
27501
+ */},{key:"postWorkforcemanagementBusinessunitTimeofflimits",value:function postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27502
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';}// verify the required parameter 'body' is set
27503
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27177
27504
  * Retrieves time-off limit related values based on a given set of filters.
27178
27505
  *
27179
27506
  * @param {String} businessUnitId The ID of the business unit
27180
- * @param {Object} opts Optional parameters
27181
- * @param {Object} opts.body body
27182
- */},{key:"postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27183
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27507
+ * @param {Object} body body
27508
+ */},{key:"postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27509
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
27510
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27184
27511
  * Creates a new time-off plan
27185
27512
  *
27186
27513
  * @param {String} businessUnitId The ID of the business unit
27187
- * @param {Object} opts Optional parameters
27188
- * @param {Object} opts.body body
27189
- */},{key:"postWorkforcemanagementBusinessunitTimeoffplans",value:function postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27190
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27514
+ * @param {Object} body body
27515
+ */},{key:"postWorkforcemanagementBusinessunitTimeoffplans",value:function postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27516
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';}// verify the required parameter 'body' is set
27517
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27191
27518
  * Loads agent schedule data from the schedule. Used in combination with the metadata route
27192
27519
  *
27193
27520
  * @param {String} businessUnitId The ID of the business unit
@@ -27218,23 +27545,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27218
27545
  * @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
27219
27546
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format
27220
27547
  * @param {String} scheduleId The ID of the schedule the performance prediction belongs to
27221
- * @param {Object} opts Optional parameters
27222
- * @param {Object} opts.body body
27223
- */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27548
+ * @param {Object} body body
27549
+ */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
27224
27550
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'weekId' is set
27225
27551
  if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'scheduleId' is set
27226
- if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations','POST',{'businessUnitId':businessUnitId,'weekId':weekId,'scheduleId':scheduleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27552
+ if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'body' is set
27553
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations','POST',{'businessUnitId':businessUnitId,'weekId':weekId,'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27227
27554
  * Upload daily activity changes to be able to request a performance prediction recalculation
27228
27555
  *
27229
27556
  * @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
27230
27557
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format
27231
27558
  * @param {String} scheduleId The ID of the schedule the performance prediction belongs to
27232
- * @param {Object} opts Optional parameters
27233
- * @param {Object} opts.body body
27234
- */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27559
+ * @param {Object} body body
27560
+ */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
27235
27561
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'weekId' is set
27236
27562
  if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'scheduleId' is set
27237
- if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/uploadurl','POST',{'businessUnitId':businessUnitId,'weekId':weekId,'scheduleId':scheduleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27563
+ if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'body' is set
27564
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/uploadurl','POST',{'businessUnitId':businessUnitId,'weekId':weekId,'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27238
27565
  * Start a rescheduling run
27239
27566
  *
27240
27567
  * @param {String} businessUnitId The ID of the business unit
@@ -27350,32 +27677,32 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27350
27677
  *
27351
27678
  * @param {String} businessUnitId The ID of the business unit
27352
27679
  * @param {String} bidId The ID of the work plan bid to copy
27353
- * @param {Object} opts Optional parameters
27354
- * @param {Object} opts.body body
27355
- */},{key:"postWorkforcemanagementBusinessunitWorkplanbidCopy",value:function postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27680
+ * @param {Object} body body
27681
+ */},{key:"postWorkforcemanagementBusinessunitWorkplanbidCopy",value:function postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
27356
27682
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}// verify the required parameter 'bidId' is set
27357
- if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27683
+ if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}// verify the required parameter 'body' is set
27684
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27358
27685
  * Add a bid group in a given work plan bid
27359
27686
  *
27360
27687
  * @param {String} businessUnitId The ID of the business unit
27361
27688
  * @param {String} bidId The work plan bid id of the bid groups
27362
- * @param {Object} opts Optional parameters
27363
- * @param {Object} opts.body body
27364
- */},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27689
+ * @param {Object} body body
27690
+ */},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
27365
27691
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'bidId' is set
27366
- if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27692
+ if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'body' is set
27693
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27367
27694
  * Create a new work plan bid
27368
27695
  *
27369
27696
  * @param {String} businessUnitId The ID of the business unit
27370
- * @param {Object} opts Optional parameters
27371
- * @param {Object} opts.body The work plan bid to be created
27372
- */},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27373
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27697
+ * @param {Object} body The work plan bid to be created
27698
+ */},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27699
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';}// verify the required parameter 'body' is set
27700
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27374
27701
  * Add a new business unit
27375
27702
  * It may take a minute or two for a new business unit to be available for api operations
27376
- * @param {Object} opts Optional parameters
27377
- * @param {Object} opts.body body
27378
- */},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27703
+ * @param {Object} body body
27704
+ */},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(body){// verify the required parameter 'body' is set
27705
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27379
27706
  * Create a newly generated calendar link for the current user; if the current user has previously generated one, the generated link will be returned
27380
27707
  *
27381
27708
  * @param {Object} opts Optional parameters
@@ -27383,18 +27710,18 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
27383
27710
  */},{key:"postWorkforcemanagementCalendarUrlIcs",value:function postWorkforcemanagementCalendarUrlIcs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/calendar/url/ics','POST',{},{'language':opts['language']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27384
27711
  * Delete the list of the historical data import entries
27385
27712
  *
27386
- * @param {Object} opts Optional parameters
27387
- * @param {Object} opts.body body
27388
- */},{key:"postWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function postWorkforcemanagementHistoricaldataBulkRemoveJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27713
+ * @param {Object} body body
27714
+ */},{key:"postWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function postWorkforcemanagementHistoricaldataBulkRemoveJobs(body){// verify the required parameter 'body' is set
27715
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataBulkRemoveJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27389
27716
  * Delete the entries of the historical data imports in the organization.
27390
27717
  * Deprecated: Please use POST /workforcemanagement/historicaldata/bulk/remove/jobs instead.
27391
27718
  * @deprecated
27392
27719
  */},{key:"postWorkforcemanagementHistoricaldataDeletejob",value:function postWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/deletejob','POST',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27393
27720
  * Trigger validation process for historical import
27394
27721
  *
27395
- * @param {Object} opts Optional parameters
27396
- * @param {Object} opts.body body
27397
- */},{key:"postWorkforcemanagementHistoricaldataValidate",value:function postWorkforcemanagementHistoricaldataValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27722
+ * @param {Object} body body
27723
+ */},{key:"postWorkforcemanagementHistoricaldataValidate",value:function postWorkforcemanagementHistoricaldataValidate(body){// verify the required parameter 'body' is set
27724
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataValidate';}return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27398
27725
  * Get list of time off types configured in integration
27399
27726
  *
27400
27727
  * @param {String} hrisIntegrationId The ID of the HRIS integration for which time off types are queried.
@@ -27403,99 +27730,102 @@ if(hrisIntegrationId===undefined||hrisIntegrationId===null){throw'Missing the re
27403
27730
  * Get agents work plans configuration
27404
27731
  *
27405
27732
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27733
+ * @param {Object} body body
27406
27734
  * @param {Object} opts Optional parameters
27407
27735
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27408
- * @param {Object} opts.body body
27409
- */},{key:"postWorkforcemanagementManagementunitAgentsWorkplansQuery",value:function postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27410
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27736
+ */},{key:"postWorkforcemanagementManagementunitAgentsWorkplansQuery",value:function postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27737
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}// verify the required parameter 'body' is set
27738
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27411
27739
  * Query published schedules for given given time range for set of users
27412
27740
  *
27413
27741
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27742
+ * @param {Object} body body
27414
27743
  * @param {Object} opts Optional parameters
27415
27744
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
27416
27745
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27417
- * @param {Object} opts.body body
27418
- */},{key:"postWorkforcemanagementManagementunitAgentschedulesSearch",value:function postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27419
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search','POST',{'managementUnitId':managementUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27746
+ */},{key:"postWorkforcemanagementManagementunitAgentschedulesSearch",value:function postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27747
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}// verify the required parameter 'body' is set
27748
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search','POST',{'managementUnitId':managementUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27420
27749
  * Request a historical adherence report
27421
27750
  * The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
27422
27751
  * @param {String} managementUnitId The ID of the management unit
27423
- * @param {Object} opts Optional parameters
27424
- * @param {Object} opts.body body
27425
- */},{key:"postWorkforcemanagementManagementunitHistoricaladherencequery",value:function postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27426
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27752
+ * @param {Object} body body
27753
+ */},{key:"postWorkforcemanagementManagementunitHistoricaladherencequery",value:function postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27754
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}// verify the required parameter 'body' is set
27755
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27427
27756
  * Move the requested management unit to a new business unit
27428
27757
  * Returns status 200 if the management unit is already in the requested business unit
27429
27758
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27430
- * @param {Object} opts Optional parameters
27431
- * @param {Object} opts.body body
27432
- */},{key:"postWorkforcemanagementManagementunitMove",value:function postWorkforcemanagementManagementunitMove(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27433
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/move','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27759
+ * @param {Object} body body
27760
+ */},{key:"postWorkforcemanagementManagementunitMove",value:function postWorkforcemanagementManagementunitMove(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27761
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';}// verify the required parameter 'body' is set
27762
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/move','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27434
27763
  * Query published schedules for given given time range for set of users
27435
27764
  *
27436
27765
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27437
- * @param {Object} opts Optional parameters
27438
- * @param {Object} opts.body body
27766
+ * @param {Object} body body
27439
27767
  * @deprecated
27440
- */},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27441
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27768
+ */},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27769
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}// verify the required parameter 'body' is set
27770
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27442
27771
  * Request a historical shrinkage report
27443
27772
  * The maximum supported range for historical shrinkage queries is up to 32 days. Historical Shrinkage for a given date range can be queried in two modes - granular and aggregated. To see granular shrinkage information, provide granularity in the request body.
27444
27773
  * @param {String} managementUnitId The ID of the management unit
27445
- * @param {Object} opts Optional parameters
27446
- * @param {Object} opts.body body
27447
- */},{key:"postWorkforcemanagementManagementunitShrinkageJobs",value:function postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27448
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27774
+ * @param {Object} body body
27775
+ */},{key:"postWorkforcemanagementManagementunitShrinkageJobs",value:function postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27776
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';}// verify the required parameter 'body' is set
27777
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27449
27778
  * Creates a new time off limit object under management unit.
27450
27779
  * Only one limit object is allowed under management unit, so an attempt to create second object will fail.
27451
27780
  * @param {String} managementUnitId The ID of the management unit.
27452
- * @param {Object} opts Optional parameters
27453
- * @param {Object} opts.body body
27454
- */},{key:"postWorkforcemanagementManagementunitTimeofflimits",value:function postWorkforcemanagementManagementunitTimeofflimits(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27455
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27781
+ * @param {Object} body body
27782
+ */},{key:"postWorkforcemanagementManagementunitTimeofflimits",value:function postWorkforcemanagementManagementunitTimeofflimits(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27783
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';}// verify the required parameter 'body' is set
27784
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27456
27785
  * Retrieves time off limit related values based on a given set of filters.
27457
27786
  *
27458
27787
  * @param {String} managementUnitId The ID of the management unit.
27459
- * @param {Object} opts Optional parameters
27460
- * @param {Object} opts.body body
27461
- */},{key:"postWorkforcemanagementManagementunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27462
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27788
+ * @param {Object} body body
27789
+ */},{key:"postWorkforcemanagementManagementunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27790
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
27791
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27463
27792
  * Creates a new time off plan
27464
27793
  *
27465
27794
  * @param {String} managementUnitId The ID of the management unit
27466
- * @param {Object} opts Optional parameters
27467
- * @param {Object} opts.body body
27468
- */},{key:"postWorkforcemanagementManagementunitTimeoffplans",value:function postWorkforcemanagementManagementunitTimeoffplans(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27469
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27795
+ * @param {Object} body body
27796
+ */},{key:"postWorkforcemanagementManagementunitTimeoffplans",value:function postWorkforcemanagementManagementunitTimeoffplans(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27797
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';}// verify the required parameter 'body' is set
27798
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27470
27799
  * Create a new time off request
27471
27800
  *
27472
27801
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27473
- * @param {Object} opts Optional parameters
27474
- * @param {Object} opts.body body
27475
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequests",value:function postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27476
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27802
+ * @param {Object} body body
27803
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequests",value:function postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27804
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';}// verify the required parameter 'body' is set
27805
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27477
27806
  * Retrieves integration statuses for a list of time off requests
27478
27807
  *
27479
27808
  * @param {String} managementUnitId The ID of the management unit.
27480
- * @param {Object} opts Optional parameters
27481
- * @param {Object} opts.body body
27482
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27483
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27809
+ * @param {Object} body body
27810
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27811
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}// verify the required parameter 'body' is set
27812
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27484
27813
  * Fetches time off requests matching the conditions specified in the request body
27485
27814
  * Request body requires one of the following: User ID is specified, statuses == [Pending] or date range to be specified and less than or equal to 33 days. All other fields are filters
27486
27815
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27816
+ * @param {Object} body body
27487
27817
  * @param {Object} opts Optional parameters
27488
27818
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27489
- * @param {Object} opts.body body
27490
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27491
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27819
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27820
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}// verify the required parameter 'body' is set
27821
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27492
27822
  * Retrieves daily waitlist position for a list of time off requests
27493
27823
  *
27494
27824
  * @param {String} managementUnitId The ID of the management unit.
27495
- * @param {Object} opts Optional parameters
27496
- * @param {Object} opts.body body
27497
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27498
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27825
+ * @param {Object} body body
27826
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27827
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}// verify the required parameter 'body' is set
27828
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27499
27829
  * Query time off balances for a given user for specified activity code and dates
27500
27830
  *
27501
27831
  * @param {String} managementUnitId The ID of the management unit
@@ -27518,11 +27848,11 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
27518
27848
  *
27519
27849
  * @param {String} managementUnitId The ID of the management unit
27520
27850
  * @param {String} userId The id of the user for whom the time off request estimate is requested
27521
- * @param {Object} opts Optional parameters
27522
- * @param {Object} opts.body body
27523
- */},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27851
+ * @param {Object} body body
27852
+ */},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,body){// verify the required parameter 'managementUnitId' is set
27524
27853
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'userId' is set
27525
- if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate','POST',{'managementUnitId':managementUnitId,'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27854
+ if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'body' is set
27855
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate','POST',{'managementUnitId':managementUnitId,'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27526
27856
  * Matches a shift trade. This route can only be called by the receiving agent
27527
27857
  *
27528
27858
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
@@ -27569,55 +27899,57 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27569
27899
  *
27570
27900
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27571
27901
  * @param {String} workPlanId The ID of the work plan to create a copy
27572
- * @param {Object} opts Optional parameters
27573
- * @param {Object} opts.body body
27574
- */},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27902
+ * @param {Object} body body
27903
+ */},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,body){// verify the required parameter 'managementUnitId' is set
27575
27904
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'workPlanId' is set
27576
- if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27905
+ if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'body' is set
27906
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27577
27907
  * Validate Work Plan
27578
27908
  *
27579
27909
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27580
27910
  * @param {String} workPlanId The ID of the work plan to validate. For new work plan, use the word 'new' for the ID.
27911
+ * @param {Object} body body
27581
27912
  * @param {Object} opts Optional parameters
27582
27913
  * @param {Array.<String>} opts.expand
27583
- * @param {Object} opts.body body
27584
- */},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27914
+ */},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27585
27915
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'workPlanId' is set
27586
- if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate','POST',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27916
+ if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'body' is set
27917
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanValidate';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate','POST',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27587
27918
  * Create a copy of work plan rotation
27588
27919
  *
27589
27920
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27590
27921
  * @param {String} workPlanRotationId The ID of the work plan rotation to create a copy
27591
- * @param {Object} opts Optional parameters
27592
- * @param {Object} opts.body body
27593
- */},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27922
+ * @param {Object} body body
27923
+ */},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
27594
27924
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'workPlanRotationId' is set
27595
- if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27925
+ if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'body' is set
27926
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27596
27927
  * Create a new work plan rotation
27597
27928
  *
27598
27929
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27599
- * @param {Object} opts Optional parameters
27600
- * @param {Object} opts.body body
27601
- */},{key:"postWorkforcemanagementManagementunitWorkplanrotations",value:function postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27602
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27930
+ * @param {Object} body body
27931
+ */},{key:"postWorkforcemanagementManagementunitWorkplanrotations",value:function postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27932
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';}// verify the required parameter 'body' is set
27933
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27603
27934
  * Create a new work plan
27604
27935
  *
27605
27936
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27937
+ * @param {Object} body body
27606
27938
  * @param {Object} opts Optional parameters
27607
27939
  * @param {Object} opts.validationMode Allows to create work plan even if the validation result is invalid
27608
- * @param {Object} opts.body body
27609
- */},{key:"postWorkforcemanagementManagementunitWorkplans",value:function postWorkforcemanagementManagementunitWorkplans(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27610
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','POST',{'managementUnitId':managementUnitId},{'validationMode':opts['validationMode']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27940
+ */},{key:"postWorkforcemanagementManagementunitWorkplans",value:function postWorkforcemanagementManagementunitWorkplans(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27941
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';}// verify the required parameter 'body' is set
27942
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','POST',{'managementUnitId':managementUnitId},{'validationMode':opts['validationMode']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27611
27943
  * Add a management unit
27612
27944
  * It may take a minute or two for a new management unit to be available for api operations
27613
- * @param {Object} opts Optional parameters
27614
- * @param {Object} opts.body body
27615
- */},{key:"postWorkforcemanagementManagementunits",value:function postWorkforcemanagementManagementunits(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27945
+ * @param {Object} body body
27946
+ */},{key:"postWorkforcemanagementManagementunits",value:function postWorkforcemanagementManagementunits(body){// verify the required parameter 'body' is set
27947
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunits';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27616
27948
  * Mark a list of notifications as read or unread
27617
27949
  *
27618
- * @param {Object} opts Optional parameters
27619
- * @param {Object} opts.body body
27620
- */},{key:"postWorkforcemanagementNotificationsUpdate",value:function postWorkforcemanagementNotificationsUpdate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/notifications/update','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27950
+ * @param {Object} body body
27951
+ */},{key:"postWorkforcemanagementNotificationsUpdate",value:function postWorkforcemanagementNotificationsUpdate(body){// verify the required parameter 'body' is set
27952
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementNotificationsUpdate';}return this.apiClient.callApi('/api/v2/workforcemanagement/notifications/update','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27621
27953
  * Get published schedule for the current user
27622
27954
  *
27623
27955
  * @param {Object} opts Optional parameters
@@ -27627,17 +27959,17 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
27627
27959
  * Request a teams historical adherence report
27628
27960
  * The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
27629
27961
  * @param {String} teamId The ID of the team
27630
- * @param {Object} opts Optional parameters
27631
- * @param {Object} opts.body body
27632
- */},{key:"postWorkforcemanagementTeamAdherenceHistorical",value:function postWorkforcemanagementTeamAdherenceHistorical(teamId,opts){opts=opts||{};// verify the required parameter 'teamId' is set
27633
- if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/adherence/historical','POST',{'teamId':teamId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27962
+ * @param {Object} body body
27963
+ */},{key:"postWorkforcemanagementTeamAdherenceHistorical",value:function postWorkforcemanagementTeamAdherenceHistorical(teamId,body){// verify the required parameter 'teamId' is set
27964
+ if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';}// verify the required parameter 'body' is set
27965
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/adherence/historical','POST',{'teamId':teamId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27634
27966
  * Request a historical shrinkage report
27635
27967
  * The maximum supported range for historical shrinkage queries is up to 32 days
27636
27968
  * @param {String} teamId The ID of the team
27637
- * @param {Object} opts Optional parameters
27638
- * @param {Object} opts.body body
27639
- */},{key:"postWorkforcemanagementTeamShrinkageJobs",value:function postWorkforcemanagementTeamShrinkageJobs(teamId,opts){opts=opts||{};// verify the required parameter 'teamId' is set
27640
- if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs','POST',{'teamId':teamId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27969
+ * @param {Object} body body
27970
+ */},{key:"postWorkforcemanagementTeamShrinkageJobs",value:function postWorkforcemanagementTeamShrinkageJobs(teamId,body){// verify the required parameter 'teamId' is set
27971
+ if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';}// verify the required parameter 'body' is set
27972
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs','POST',{'teamId':teamId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27641
27973
  * Query time off balances for the current user for specified activity code and dates
27642
27974
  *
27643
27975
  * @param {Object} body The request body
@@ -27645,24 +27977,24 @@ if(teamId===undefined||teamId===null){throw'Missing the required parameter "team
27645
27977
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffbalanceJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffbalance/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27646
27978
  * Queries available time off for the current user
27647
27979
  *
27648
- * @param {Object} opts Optional parameters
27649
- * @param {Object} opts.body body
27650
- */},{key:"postWorkforcemanagementTimeofflimitsAvailableQuery",value:function postWorkforcemanagementTimeofflimitsAvailableQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeofflimits/available/query','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27980
+ * @param {Object} body body
27981
+ */},{key:"postWorkforcemanagementTimeofflimitsAvailableQuery",value:function postWorkforcemanagementTimeofflimitsAvailableQuery(body){// verify the required parameter 'body' is set
27982
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeofflimitsAvailableQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeofflimits/available/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27651
27983
  * Create a time off request for the current user
27652
27984
  *
27653
- * @param {Object} opts Optional parameters
27654
- * @param {Object} opts.body body
27655
- */},{key:"postWorkforcemanagementTimeoffrequests",value:function postWorkforcemanagementTimeoffrequests(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27985
+ * @param {Object} body body
27986
+ */},{key:"postWorkforcemanagementTimeoffrequests",value:function postWorkforcemanagementTimeoffrequests(body){// verify the required parameter 'body' is set
27987
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequests';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27656
27988
  * Estimates available time off for current user
27657
27989
  *
27658
- * @param {Object} opts Optional parameters
27659
- * @param {Object} opts.body body
27660
- */},{key:"postWorkforcemanagementTimeoffrequestsEstimate",value:function postWorkforcemanagementTimeoffrequestsEstimate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/estimate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27990
+ * @param {Object} body body
27991
+ */},{key:"postWorkforcemanagementTimeoffrequestsEstimate",value:function postWorkforcemanagementTimeoffrequestsEstimate(body){// verify the required parameter 'body' is set
27992
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/estimate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27661
27993
  * Retrieves integration statuses for a list of current user time off requests
27662
27994
  *
27663
- * @param {Object} opts Optional parameters
27664
- * @param {Object} opts.body body
27665
- */},{key:"postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27995
+ * @param {Object} body body
27996
+ */},{key:"postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(body){// verify the required parameter 'body' is set
27997
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27666
27998
  * Update integrations for agent
27667
27999
  *
27668
28000
  * @param {String} agentId The ID of the agent
@@ -27674,20 +28006,20 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27674
28006
  * Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time-off limit API
27675
28007
  * @param {String} businessUnitId The ID of the business unit
27676
28008
  * @param {String} timeOffLimitId The ID of the time-off limit object to set values for
27677
- * @param {Object} opts Optional parameters
27678
- * @param {Object} opts.body body
27679
- */},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
28009
+ * @param {Object} body body
28010
+ */},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,body){// verify the required parameter 'businessUnitId' is set
27680
28011
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
27681
- if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'businessUnitId':businessUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
28012
+ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'body' is set
28013
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'businessUnitId':businessUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27682
28014
  * Sets daily values for a date range of time off limit object
27683
28015
  * Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
27684
28016
  * @param {String} managementUnitId The ID of the management unit.
27685
28017
  * @param {String} timeOffLimitId The ID of the time off limit object to set values for
27686
- * @param {Object} opts Optional parameters
27687
- * @param {Object} opts.body body
27688
- */},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
28018
+ * @param {Object} body body
28019
+ */},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
27689
28020
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
27690
- if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();/**
28021
+ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'body' is set
28022
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();/**
27691
28023
  * A JavaScript library to interface with the PureCloud Platform API.<br>
27692
28024
  * The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
27693
28025
  * <p>
@@ -27716,7 +28048,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
27716
28048
  * </pre>
27717
28049
  * </p>
27718
28050
  * @module purecloud-platform-client-v2/index
27719
- * @version 222.0.0
28051
+ * @version 224.0.0
27720
28052
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
27721
28053
  * The ApiClient constructor.
27722
28054
  * @property {module:purecloud-platform-client-v2/ApiClient}
@@ -27724,6 +28056,9 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
27724
28056
  * The ApiClient class.
27725
28057
  * @property {module:purecloud-platform-client-v2/ApiClient}
27726
28058
  */this.ApiClientClass=ApiClient;/**
28059
+ * The AIStudioApi service constructor.
28060
+ * @property {module:purecloud-platform-client-v2/api/AIStudioApi}
28061
+ */this.AIStudioApi=AIStudioApi;/**
27727
28062
  * The AgentAssistantsApi service constructor.
27728
28063
  * @property {module:purecloud-platform-client-v2/api/AgentAssistantsApi}
27729
28064
  */this.AgentAssistantsApi=AgentAssistantsApi;/**