purecloud-platform-client-v2 202.1.0 → 204.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 (89) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +885 -106
  3. package/dist/web-amd/purecloud-platform-client-v2.js +885 -106
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +452 -261
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +452 -261
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +589 -224
  9. package/package.json +2 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +381 -0
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +81 -0
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +3 -3
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -12
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +46 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +139 -2
  31. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/JourneyApi.js +3 -13
  42. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +130 -1
  43. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RoutingApi.js +30 -1
  64. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -3
  69. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/index.js +13 -1
@@ -5587,7 +5587,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
5587
5587
  *
5588
5588
  * @param {Boolean} [allOwnKeys = false]
5589
5589
  * @returns {any}
5590
- */function forEach(obj,fn){var _ref2=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref2$allOwnKeys=_ref2.allOwnKeys,allOwnKeys=_ref2$allOwnKeys===void 0?false:_ref2$allOwnKeys;// Don't bother if no value provided
5590
+ */function forEach(obj,fn){var _ref3=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref3$allOwnKeys=_ref3.allOwnKeys,allOwnKeys=_ref3$allOwnKeys===void 0?false:_ref3$allOwnKeys;// Don't bother if no value provided
5591
5591
  if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
5592
5592
  if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray(obj)){// Iterate over array values
5593
5593
  for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Iterate over object keys
@@ -5608,7 +5608,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
5608
5608
  * @param {Object} obj1 Object to merge
5609
5609
  *
5610
5610
  * @returns {Object} Result of all merge properties
5611
- */function merge(/* obj1, obj2, obj3, ... */){var _ref3=isContextDefined(this)&&this||{},caseless=_ref3.caseless;var result={};var assignValue=function assignValue(val,key){var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray(val)){result[targetKey]=val.slice();}else{result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
5611
+ */function merge(/* obj1, obj2, obj3, ... */){var _ref4=isContextDefined(this)&&this||{},caseless=_ref4.caseless;var result={};var assignValue=function assignValue(val,key){var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray(val)){result[targetKey]=val.slice();}else{result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
5612
5612
  * Extends object a by mutably adding to it the properties of object b.
5613
5613
  *
5614
5614
  * @param {Object} a The object to be extended
@@ -5617,7 +5617,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
5617
5617
  *
5618
5618
  * @param {Boolean} [allOwnKeys]
5619
5619
  * @returns {Object} The resulting value of object a
5620
- */var extend=function extend(a,b,thisArg){var _ref4=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},allOwnKeys=_ref4.allOwnKeys;forEach(b,function(val,key){if(thisArg&&isFunction(val)){a[key]=bind(val,thisArg);}else{a[key]=val;}},{allOwnKeys:allOwnKeys});return a;};/**
5620
+ */var extend=function extend(a,b,thisArg){var _ref5=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},allOwnKeys=_ref5.allOwnKeys;forEach(b,function(val,key){if(thisArg&&isFunction(val)){a[key]=bind(val,thisArg);}else{a[key]=val;}},{allOwnKeys:allOwnKeys});return a;};/**
5621
5621
  * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
5622
5622
  *
5623
5623
  * @param {string} content with BOM
@@ -5661,7 +5661,7 @@ if(sourceObj==null)return destObj;do{props=Object.getOwnPropertyNames(sourceObj)
5661
5661
  * @param {TypedArray}
5662
5662
  *
5663
5663
  * @returns {Array}
5664
- */ // eslint-disable-next-line func-names
5664
+ */// eslint-disable-next-line func-names
5665
5665
  var isTypedArray=function(TypedArray){// eslint-disable-next-line func-names
5666
5666
  return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!=='undefined'&&getPrototypeOf(Uint8Array));/**
5667
5667
  * For each entry in the object, call the function with the key and value.
@@ -5677,7 +5677,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
5677
5677
  * @param {string} str - The string to search.
5678
5678
  *
5679
5679
  * @returns {Array<boolean>}
5680
- */var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(_ref5){var hasOwnProperty=_ref5.hasOwnProperty;return function(obj,prop){return hasOwnProperty.call(obj,prop);};}(Object.prototype);/**
5680
+ */var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(_ref6){var hasOwnProperty=_ref6.hasOwnProperty;return function(obj,prop){return hasOwnProperty.call(obj,prop);};}(Object.prototype);/**
5681
5681
  * Determine if a value is a RegExp object
5682
5682
  *
5683
5683
  * @param {*} val The value to test
@@ -5695,7 +5695,7 @@ if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return f
5695
5695
  * @returns {boolean}
5696
5696
  */function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};// original code
5697
5697
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
5698
- var _setImmediate=function(setImmediateSupported,postMessageSupported){if(setImmediateSupported){return setImmediate;}return postMessageSupported?function(token,callbacks){_global.addEventListener("message",function(_ref6){var source=_ref6.source,data=_ref6.data;if(source===_global&&data===token){callbacks.length&&callbacks.shift()();}},false);return function(cb){callbacks.push(cb);_global.postMessage(token,"*");};}("axios@".concat(Math.random()),[]):function(cb){return setTimeout(cb);};}(typeof setImmediate==='function',isFunction(_global.postMessage));var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
5698
+ var _setImmediate=function(setImmediateSupported,postMessageSupported){if(setImmediateSupported){return setImmediate;}return postMessageSupported?function(token,callbacks){_global.addEventListener("message",function(_ref7){var source=_ref7.source,data=_ref7.data;if(source===_global&&data===token){callbacks.length&&callbacks.shift()();}},false);return function(cb){callbacks.push(cb);_global.postMessage(token,"*");};}("axios@".concat(Math.random()),[]):function(cb){return setTimeout(cb);};}(typeof setImmediate==='function',isFunction(_global.postMessage));var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
5699
5699
  var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
5700
5700
  reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap};/**
5701
5701
  * Create an Error with the specified message, config, error code, request and response.
@@ -5707,11 +5707,11 @@ reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toOb
5707
5707
  * @param {Object} [response] The response.
5708
5708
  *
5709
5709
  * @returns {Error} The created error.
5710
- */function AxiosError(message,code,config,request,response){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor);}else{this.stack=new Error().stack;}this.message=message;this.name='AxiosError';code&&(this.code=code);config&&(this.config=config);request&&(this.request=request);response&&(this.response=response);}utils$1.inherits(AxiosError,Error,{toJSON:function toJSON(){return{// Standard
5710
+ */function AxiosError(message,code,config,request,response){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor);}else{this.stack=new Error().stack;}this.message=message;this.name='AxiosError';code&&(this.code=code);config&&(this.config=config);request&&(this.request=request);if(response){this.response=response;this.status=response.status?response.status:null;}}utils$1.inherits(AxiosError,Error,{toJSON:function toJSON(){return{// Standard
5711
5711
  message:this.message,name:this.name,// Microsoft
5712
5712
  description:this.description,number:this.number,// Mozilla
5713
5713
  fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
5714
- config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null};}});var prototype$1=AxiosError.prototype;var descriptors={};['ERR_BAD_OPTION_VALUE','ERR_BAD_OPTION','ECONNABORTED','ETIMEDOUT','ERR_NETWORK','ERR_FR_TOO_MANY_REDIRECTS','ERR_DEPRECATED','ERR_BAD_RESPONSE','ERR_BAD_REQUEST','ERR_CANCELED','ERR_NOT_SUPPORT','ERR_INVALID_URL'// eslint-disable-next-line func-names
5714
+ config:utils$1.toJSONObject(this.config),code:this.code,status:this.status};}});var prototype$1=AxiosError.prototype;var descriptors={};['ERR_BAD_OPTION_VALUE','ERR_BAD_OPTION','ECONNABORTED','ETIMEDOUT','ERR_NETWORK','ERR_FR_TOO_MANY_REDIRECTS','ERR_DEPRECATED','ERR_BAD_RESPONSE','ERR_BAD_REQUEST','ERR_CANCELED','ERR_NOT_SUPPORT','ERR_INVALID_URL'// eslint-disable-next-line func-names
5715
5715
  ].forEach(function(code){descriptors[code]={value:code};});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,'isAxiosError',{value:true});// eslint-disable-next-line func-names
5716
5716
  AxiosError.from=function(error,code,config,request,response,customProps){var axiosError=Object.create(prototype$1);utils$1.toFlatObject(error,axiosError,function filter(obj){return obj!==Error.prototype;},function(prop){return prop!=='isAxiosError';});AxiosError.call(axiosError,error.message,code,config,request,response);axiosError.cause=error;axiosError.name=error.name;customProps&&Object.assign(axiosError,customProps);return axiosError;};// eslint-disable-next-line strict
5717
5717
  var httpAdapter=null;/**
@@ -5753,7 +5753,7 @@ token=removeBrackets(token);return!dots&&i?'['+token+']':token;}).join(dots?'.':
5753
5753
  * @param {?Boolean} [options.indexes = false]
5754
5754
  *
5755
5755
  * @returns {Object}
5756
- **/ /**
5756
+ **//**
5757
5757
  * It converts an object into a FormData object
5758
5758
  *
5759
5759
  * @param {Object<any, any>} obj - The object to convert to form data.
@@ -5833,7 +5833,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
5833
5833
  * @param {Function} fn The function to call for each interceptor
5834
5834
  *
5835
5835
  * @returns {void}
5836
- */},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);}();var InterceptorManager$1=InterceptorManager;var transitionalDefaults={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var URLSearchParams$1=typeof URLSearchParams!=='undefined'?URLSearchParams:AxiosURLSearchParams;var FormData$1=typeof FormData!=='undefined'?FormData:null;var Blob$1=typeof Blob!=='undefined'?Blob:null;var platform$1={isBrowser:true,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:['http','https','file','blob','url','data']};var hasBrowserEnv=typeof window!=='undefined'&&typeof document!=='undefined';/**
5836
+ */},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);}();var InterceptorManager$1=InterceptorManager;var transitionalDefaults={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var URLSearchParams$1=typeof URLSearchParams!=='undefined'?URLSearchParams:AxiosURLSearchParams;var FormData$1=typeof FormData!=='undefined'?FormData:null;var Blob$1=typeof Blob!=='undefined'?Blob:null;var platform$1={isBrowser:true,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:['http','https','file','blob','url','data']};var hasBrowserEnv=typeof window!=='undefined'&&typeof document!=='undefined';var _navigator=(typeof navigator==="undefined"?"undefined":_typeof(navigator))==='object'&&navigator||undefined;/**
5837
5837
  * Determine if we're running in a standard browser environment
5838
5838
  *
5839
5839
  * This allows axios to run in a web worker, and react-native.
@@ -5849,7 +5849,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
5849
5849
  * navigator.product -> 'NativeScript' or 'NS'
5850
5850
  *
5851
5851
  * @returns {boolean}
5852
- */var hasStandardBrowserEnv=function(product){return hasBrowserEnv&&['ReactNative','NativeScript','NS'].indexOf(product)<0;}(typeof navigator!=='undefined'&&navigator.product);/**
5852
+ */var hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||['ReactNative','NativeScript','NS'].indexOf(_navigator.product)<0);/**
5853
5853
  * Determine if we're running in a standard browser webWorker environment
5854
5854
  *
5855
5855
  * Although the `isStandardBrowserEnv` method indicates that
@@ -5858,7 +5858,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
5858
5858
  * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
5859
5859
  * This leads to a problem when axios post `FormData` in webWorker
5860
5860
  */var hasStandardBrowserWebWorkerEnv=function(){return typeof WorkerGlobalScope!=='undefined'&&// eslint-disable-next-line no-undef
5861
- self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),Object.assign({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
5861
+ self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,navigator:_navigator,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),Object.assign({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
5862
5862
  * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
5863
5863
  *
5864
5864
  * @param {string} name - The name of the property to get.
@@ -5907,8 +5907,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
5907
5907
  * @param {String} rawHeaders Headers needing to be parsed
5908
5908
  *
5909
5909
  * @returns {Object} Headers parsed into an object
5910
- */var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),header=_ref8[0],value=_ref8[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
5911
- utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref9,key){var value=_ref9.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
5910
+ */var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
5911
+ utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref10,key){var value=_ref10.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
5912
5912
  return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
5913
5913
  * Transform the data for a request or a response
5914
5914
  *
@@ -5945,7 +5945,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
5945
5945
  * @return {Function}
5946
5946
  */function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var lastArgs;var timer;var invoke=function invoke(args){var now=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();timestamp=now;lastArgs=null;if(timer){clearTimeout(timer);timer=null;}fn.apply(null,args);};var throttled=function throttled(){var now=Date.now();var passed=now-timestamp;for(var _len3=arguments.length,args=new Array(_len3),_key4=0;_key4<_len3;_key4++){args[_key4]=arguments[_key4];}if(passed>=threshold){invoke(args,now);}else{lastArgs=args;if(!timer){timer=setTimeout(function(){timer=null;invoke(lastArgs);},threshold-passed);}}};var flush=function flush(){return lastArgs&&invoke(lastArgs);};return[throttled,flush];}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data=_defineProperty({loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null},isDownloadStream?'download':'upload',true);listener(data);},freq);};var progressEventDecorator=function progressEventDecorator(total,throttled){var lengthComputable=total!=null;return[function(loaded){return throttled[0]({lengthComputable:lengthComputable,total:total,loaded:loaded});},throttled[1]];};var asyncDecorator=function asyncDecorator(fn){return function(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}return utils$1.asap(function(){return fn.apply(void 0,args);});};};var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
5947
5947
  // whether the request URL is of the same origin as current location.
5948
- function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
5948
+ function standardBrowserEnv(){var msie=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
5949
5949
  * Parse a URL to discover its components
5950
5950
  *
5951
5951
  * @param {String} url The URL to be parsed
@@ -6001,7 +6001,7 @@ function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue
6001
6001
  function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url),config.params,config.paramsSerializer);// HTTP basic authentication
6002
6002
  if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
6003
6003
  }else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
6004
- var _ref10=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref11=_toArray(_ref10),type=_ref11[0],tokens=_ref11.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
6004
+ var _ref11=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref12=_toArray(_ref11),type=_ref12[0],tokens=_ref12.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
6005
6005
  // This is only done if running in a standard browser environment.
6006
6006
  // Specifically not if we're in a web worker, or react-native.
6007
6007
  if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
@@ -6035,9 +6035,11 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
6035
6035
  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
6036
6036
  // eslint-disable-next-line func-names
6037
6037
  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
6038
- request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var controller=new AbortController();var aborted;var onabort=function onabort(cancel){if(!aborted){aborted=true;unsubscribe();var err=cancel instanceof Error?cancel:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){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&&(signal.removeEventListener?signal.removeEventListener('abort',onabort):signal.unsubscribe(onabort));});signals=null;}};signals.forEach(function(signal){return signal&&signal.addEventListener&&signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=unsubscribe;return[signal,function(){timer&&clearTimeout(timer);timer=null;}];};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,encode){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(iterable);case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=27;break;}chunk=_step.value;_context2.t0=_asyncGeneratorDelegate;_context2.t1=_asyncIterator;_context2.t2=streamChunk;if(!ArrayBuffer.isView(chunk)){_context2.next=15;break;}_context2.t3=chunk;_context2.next=18;break;case 15:_context2.next=17;return _awaitAsyncGenerator(encode(String(chunk)));case 17:_context2.t3=_context2.sent;case 18:_context2.t4=_context2.t3;_context2.t5=chunkSize;_context2.t6=(0,_context2.t2)(_context2.t4,_context2.t5);_context2.t7=(0,_context2.t1)(_context2.t6);_context2.t8=_awaitAsyncGenerator;return _context2.delegateYield((0,_context2.t0)(_context2.t7,_context2.t8),"t9",24);case 24:_iteratorAbruptCompletion=false;_context2.next=4;break;case 27:_context2.next=33;break;case 29:_context2.prev=29;_context2.t10=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t10;case 33:_context2.prev=33;_context2.prev=34;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=38;break;}_context2.next=38;return _awaitAsyncGenerator(_iterator["return"]());case 38:_context2.prev=38;if(!_didIteratorError){_context2.next=41;break;}throw _iteratorError;case 41:return _context2.finish(38);case 42:return _context2.finish(33);case 43:case"end":return _context2.stop();}},_callee,null,[[2,29,33,43],[34,,38,42]]);}));return function readBytes(_x,_x2,_x3){return _ref.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish,encode){var iterator=readBytes(stream,chunkSize,encode);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 _callee2(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return iterator.next();case 3:_yield$iterator$next=_context3.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context3.next=10;break;}_onFinish();controller.close();return _context3.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context3.next=19;break;case 15:_context3.prev=15;_context3.t0=_context3["catch"](0);_onFinish(_context3.t0);throw _context3.t0;case 19:case"end":return _context3.stop();}},_callee2,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
6039
- var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(str){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.t0=Uint8Array;_context4.next=3;return new Response(str).arrayBuffer();case 3:_context4.t1=_context4.sent;return _context4.abrupt("return",new _context4.t0(_context4.t1));case 5:case"end":return _context4.stop();}},_callee3);}));return function(_x4){return _ref12.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 _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:if(!(body==null)){_context5.next=2;break;}return _context5.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context5.next=4;break;}return _context5.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context5.next=8;break;}_context5.next=7;return new Request(body).arrayBuffer();case 7:return _context5.abrupt("return",_context5.sent.byteLength);case 8:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context5.next=10;break;}return _context5.abrupt("return",body.byteLength);case 10:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context5.next=15;break;}_context5.next=14;return encodeText(body);case 14:return _context5.abrupt("return",_context5.sent.byteLength);case 15:case"end":return _context5.stop();}},_callee4);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(headers,body){var length;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context6.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context6.stop();}},_callee5);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_ref16,_ref17,composedSignal,stopTimeout,finished,request,onFinish,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,response,isStreamResponse,options,responseContentLength,_ref18,_ref19,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.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';_ref16=signal||cancelToken||timeout?composeSignals$1([signal,cancelToken],timeout):[],_ref17=_slicedToArray(_ref16,2),composedSignal=_ref17[0],stopTimeout=_ref17[1];onFinish=function onFinish(){!finished&&setTimeout(function(){composedSignal&&composedSignal.unsubscribe();});finished=true;};_context7.prev=4;_context7.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context7.t0){_context7.next=11;break;}_context7.next=9;return resolveBodyLength(headers,data);case 9:_context7.t1=requestContentLength=_context7.sent;_context7.t0=_context7.t1!==0;case 11:if(!_context7.t0){_context7.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,encodeText);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:withCredentials}));_context7.next=19;return fetch(request);case 19:response=_context7.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref18=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref19=_slicedToArray(_ref18,2),_onProgress=_ref19[0],_flush=_ref19[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();isStreamResponse&&onFinish();},encodeText),options);}responseType=responseType||'text';_context7.next=25;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 25:responseData=_context7.sent;!isStreamResponse&&onFinish();stopTimeout&&stopTimeout();_context7.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 _context7.abrupt("return",_context7.sent);case 33:_context7.prev=33;_context7.t2=_context7["catch"](4);onFinish();if(!(_context7.t2&&_context7.t2.name==='TypeError'&&/fetch/i.test(_context7.t2.message))){_context7.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context7.t2.cause||_context7.t2});case 38:throw AxiosError.from(_context7.t2,_context7.t2&&_context7.t2.code,config,request);case 39:case"end":return _context7.stop();}},_callee6,null,[[4,33]]);}));return function(_x8){return _ref15.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
6040
- }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(_ref20){var _ref21=_slicedToArray(_ref20,2),id=_ref21[0],state=_ref21[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};/**
6038
+ request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(readStream(iterable));case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=12;break;}chunk=_step.value;return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator),"t0",9);case 9:_iteratorAbruptCompletion=false;_context2.next=4;break;case 12:_context2.next=18;break;case 14:_context2.prev=14;_context2.t1=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t1;case 18:_context2.prev=18;_context2.prev=19;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=23;break;}_context2.next=23;return _awaitAsyncGenerator(_iterator["return"]());case 23:_context2.prev=23;if(!_didIteratorError){_context2.next=26;break;}throw _iteratorError;case 26:return _context2.finish(23);case 27:return _context2.finish(18);case 28:case"end":return _context2.stop();}},_callee,null,[[2,14,18,28],[19,,23,27]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!stream[Symbol.asyncIterator]){_context3.next=3;break;}return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator),"t0",2);case 2:return _context3.abrupt("return");case 3:reader=stream.getReader();_context3.prev=4;case 5:_context3.next=7;return _awaitAsyncGenerator(reader.read());case 7:_yield$_awaitAsyncGen=_context3.sent;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.next=12;break;}return _context3.abrupt("break",16);case 12:_context3.next=14;return value;case 14:_context3.next=5;break;case 16:_context3.prev=16;_context3.next=19;return _awaitAsyncGenerator(reader.cancel());case 19:return _context3.finish(16);case 20:case"end":return _context3.stop();}},_callee2,null,[[4,,16,20]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return iterator.next();case 3:_yield$iterator$next=_context4.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.next=10;break;}_onFinish();controller.close();return _context4.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.next=19;break;case 15:_context4.prev=15;_context4.t0=_context4["catch"](0);_onFinish(_context4.t0);throw _context4.t0;case 19:case"end":return _context4.stop();}},_callee3,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
6039
+ var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(str){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.t0=Uint8Array;_context5.next=3;return new Response(str).arrayBuffer();case 3:_context5.t1=_context5.sent;return _context5.abrupt("return",new _context5.t0(_context5.t1));case 5:case"end":return _context5.stop();}},_callee4);}));return function(_x4){return _ref13.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body){var _request;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(body==null)){_context6.next=2;break;}return _context6.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context6.next=4;break;}return _context6.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context6.next=9;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.next=8;return _request.arrayBuffer();case 8:return _context6.abrupt("return",_context6.sent.byteLength);case 9:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.next=11;break;}return _context6.abrupt("return",body.byteLength);case 11:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.next=16;break;}_context6.next=15;return encodeText(body);case 15:return _context6.abrupt("return",_context6.sent.byteLength);case 16:case"end":return _context6.stop();}},_callee5);}));return function getBodyLength(_x5){return _ref14.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(headers,body){var length;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context7.stop();}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref15.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref16=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref17,_ref18,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.prev=4;_context8.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context8.t0){_context8.next=11;break;}_context8.next=9;return resolveBodyLength(headers,data);case 9:_context8.t1=requestContentLength=_context8.sent;_context8.t0=_context8.t1!==0;case 11:if(!_context8.t0){_context8.next=15;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
6040
+ // see https://github.com/cloudflare/workerd/issues/902
6041
+ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref17=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref18=_slicedToArray(_ref17,2),_onProgress=_ref18[0],_flush=_ref18[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.next=26;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 26:responseData=_context8.sent;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context8.abrupt("return",_context8.sent);case 33:_context8.prev=33;_context8.t2=_context8["catch"](4);unsubscribe&&unsubscribe();if(!(_context8.t2&&_context8.t2.name==='TypeError'&&/fetch/i.test(_context8.t2.message))){_context8.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context8.t2.cause||_context8.t2});case 38:throw AxiosError.from(_context8.t2,_context8.t2&&_context8.t2.code,config,request);case 39:case"end":return _context8.stop();}},_callee7,null,[[4,33]]);}));return function(_x8){return _ref16.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
6042
+ }Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref19){var _ref20=_slicedToArray(_ref19,2),id=_ref20[0],state=_ref20[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
6041
6043
  * Throws a `CanceledError` if cancellation has been requested.
6042
6044
  *
6043
6045
  * @param {Object} config The config that is to be used for the request
@@ -6052,7 +6054,7 @@ var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encod
6052
6054
  */function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
6053
6055
  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
6054
6056
  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
6055
- 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.7.4";var validators$1={};// eslint-disable-next-line func-names
6057
+ 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.7.7";var validators$1={};// eslint-disable-next-line func-names
6056
6058
  ['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={};/**
6057
6059
  * Transitional option validator
6058
6060
  *
@@ -6084,10 +6086,10 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
6084
6086
  * @param {?Object} config
6085
6087
  *
6086
6088
  * @returns {Promise} The Promise to be fulfilled
6087
- */return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.prev=0;_context8.next=3;return this._request(configOrUrl,config);case 3:return _context8.abrupt("return",_context8.sent);case 6:_context8.prev=6;_context8.t0=_context8["catch"](0);if(_context8.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
6088
- stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context8.t0.stack){_context8.t0.stack=stack;// match without the 2 top stack lines
6089
- }else if(stack&&!String(_context8.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context8.t0.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
6090
- }}throw _context8.t0;case 10:case"end":return _context8.stop();}},_callee7,this,[[0,6]]);}));function request(_x9,_x10){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API
6089
+ */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){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
6090
+ stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context9.t0.stack){_context9.t0.stack=stack;// match without the 2 top stack lines
6091
+ }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
6092
+ }}throw _context9.t0;case 10:case"end":return _context9.stop();}},_callee8,this,[[0,6]]);}));function request(_x9,_x10){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/// Allow for axios('example/url'[, config]) a la fetch API
6091
6093
  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.method
6092
6094
  config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
6093
6095
  var contextHeaders=headers&&utils$1.merge(headers.common,headers[config.method]);headers&&utils$1.forEach(['delete','get','head','post','put','patch','common'],function(method){delete headers[method];});config.headers=AxiosHeaders$1.concat(contextHeaders,headers);// filter out skipped interceptors
@@ -6108,7 +6110,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
6108
6110
  * Subscribe to the cancel signal
6109
6111
  */},{key:"subscribe",value:function subscribe(listener){if(this.reason){listener(this.reason);return;}if(this._listeners){this._listeners.push(listener);}else{this._listeners=[listener];}}/**
6110
6112
  * Unsubscribe from the cancel signal
6111
- */},{key:"unsubscribe",value:function unsubscribe(listener){if(!this._listeners){return;}var index=this._listeners.indexOf(listener);if(index!==-1){this._listeners.splice(index,1);}}/**
6113
+ */},{key:"unsubscribe",value:function unsubscribe(listener){if(!this._listeners){return;}var index=this._listeners.indexOf(listener);if(index!==-1){this._listeners.splice(index,1);}}},{key:"toAbortSignal",value:function toAbortSignal(){var _this=this;var controller=new AbortController();var abort=function abort(err){controller.abort(err);};this.subscribe(abort);controller.signal.unsubscribe=function(){return _this.unsubscribe(abort);};return controller.signal;}/**
6112
6114
  * Returns an object that contains a new `CancelToken` and a function that, when called,
6113
6115
  * cancels the `CancelToken`.
6114
6116
  */}],[{key:"source",value:function source(){var cancel;var token=new CancelToken(function executor(c){cancel=c;});return{token:token,cancel:cancel};}}]);}();var CancelToken$1=CancelToken;/**
@@ -6137,7 +6139,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
6137
6139
  * @param {*} payload The value to test
6138
6140
  *
6139
6141
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
6140
- */function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref22){var _ref23=_slicedToArray(_ref22,2),key=_ref23[0],value=_ref23[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
6142
+ */function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref21){var _ref22=_slicedToArray(_ref21,2),key=_ref22[0],value=_ref22[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
6141
6143
  * Create an instance of Axios
6142
6144
  *
6143
6145
  * @param {Object} defaultConfig The default config for the instance
@@ -6166,7 +6168,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
6166
6168
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
6167
6169
  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:"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];}}}]);}();/**
6168
6170
  * @module purecloud-platform-client-v2/ApiClient
6169
- * @version 202.1.0
6171
+ * @version 204.0.0
6170
6172
  */var ApiClient=/*#__PURE__*/function(){/**
6171
6173
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
6172
6174
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -6242,43 +6244,43 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
6242
6244
  * @param {string} opts.state - (optional) An arbitrary string to be passed back with the login response. Used for client apps to associate login responses with a request.
6243
6245
  * @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
6244
6246
  * @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
6245
- */},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this=this;// Check for auth token in hash
6247
+ */},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this2=this;// Check for auth token in hash
6246
6248
  var hash=this._setValuesFromUrlHash();this.clientId=clientId;this.redirectUri=redirectUri;if(!opts)opts={};return new Promise(function(resolve,reject){// Abort if org and provider are not set together
6247
6249
  if(opts.org&&!opts.provider){reject(new Error('opts.provider must be set if opts.org is set'));}else if(opts.provider&&!opts.org){reject(new Error('opts.org must be set if opts.provider is set'));}// Abort on auth error
6248
- if(hash&&hash.error){hash.accessToken=undefined;_this._saveSettings(hash);return reject(new Error("[".concat(hash.error,"] ").concat(hash.error_description)));}// Test token and proceed with login
6249
- _this._testTokenAccess().then(function(){if(!_this.authData.state&&opts.state)_this.authData.state=opts.state;resolve(_this.authData);})["catch"](function(error){var query={client_id:encodeURIComponent(_this.clientId),redirect_uri:encodeURIComponent(_this.redirectUri),response_type:'token'};if(opts.state)query.state=encodeURIComponent(opts.state);if(opts.org)query.org=encodeURIComponent(opts.org);if(opts.provider)query.provider=encodeURIComponent(opts.provider);var url=_this._buildAuthUrl('oauth/authorize',query);window.location.replace(url);});});}/**
6250
+ if(hash&&hash.error){hash.accessToken=undefined;_this2._saveSettings(hash);return reject(new Error("[".concat(hash.error,"] ").concat(hash.error_description)));}// Test token and proceed with login
6251
+ _this2._testTokenAccess().then(function(){if(!_this2.authData.state&&opts.state)_this2.authData.state=opts.state;resolve(_this2.authData);})["catch"](function(error){var query={client_id:encodeURIComponent(_this2.clientId),redirect_uri:encodeURIComponent(_this2.redirectUri),response_type:'token'};if(opts.state)query.state=encodeURIComponent(opts.state);if(opts.org)query.org=encodeURIComponent(opts.org);if(opts.provider)query.provider=encodeURIComponent(opts.provider);var url=_this2._buildAuthUrl('oauth/authorize',query);window.location.replace(url);});});}/**
6250
6252
  * @description Initiates the client credentials login flow. Only available in node apps.
6251
6253
  * @param {string} clientId - The client ID of an OAuth Implicit Grant client
6252
6254
  * @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
6253
- */},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var _this2=this;this.clientId=clientId;var authHeader=Buffer.from("".concat(clientId,":").concat(clientSecret)).toString('base64');return new Promise(function(resolve,reject){// Block browsers from using client credentials
6254
- if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};axios$1({method:"POST",url:"https://login.".concat(_this2.config.environment,"/oauth/token"),headers:headers,data:'grant_type=client_credentials',httpsAgent:_this2.proxyAgent}).then(function(response){// Logging
6255
- _this2.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this2.config.environment,"/oauth/token"),headers,response.headers,{grant_type:'client_credentials'},undefined);_this2.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this2.config.environment,"/oauth/token"),headers,undefined,{grant_type:'client_credentials'},undefined);// Save access token
6256
- _this2.setAccessToken(response.data['access_token']);// Set expiry time
6257
- _this2.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this2.authData.tokenExpiryTimeString=new Date(_this2.authData.tokenExpiryTime).toUTCString();// Return auth data
6258
- resolve(_this2.authData);})["catch"](function(error){// Log error
6259
- if(error.response){_this2.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this2.config.environment,"/oauth/token"),headers,error.response.headers,{grant_type:'client_credentials'},error.response.data);}reject(error);});});}/**
6255
+ */},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var _this3=this;this.clientId=clientId;var authHeader=Buffer.from("".concat(clientId,":").concat(clientSecret)).toString('base64');return new Promise(function(resolve,reject){// Block browsers from using client credentials
6256
+ if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};axios$1({method:"POST",url:"https://login.".concat(_this3.config.environment,"/oauth/token"),headers:headers,data:'grant_type=client_credentials',httpsAgent:_this3.proxyAgent}).then(function(response){// Logging
6257
+ _this3.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),headers,response.headers,{grant_type:'client_credentials'},undefined);_this3.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),headers,undefined,{grant_type:'client_credentials'},undefined);// Save access token
6258
+ _this3.setAccessToken(response.data['access_token']);// Set expiry time
6259
+ _this3.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this3.authData.tokenExpiryTimeString=new Date(_this3.authData.tokenExpiryTime).toUTCString();// Return auth data
6260
+ resolve(_this3.authData);})["catch"](function(error){// Log error
6261
+ if(error.response){_this3.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),headers,error.response.headers,{grant_type:'client_credentials'},error.response.data);}reject(error);});});}/**
6260
6262
  * @description Initiates the Saml2Bearerflow. Only available in node apps.
6261
6263
  * @param {string} clientId - The client ID of an OAuth Implicit Grant client
6262
6264
  * @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
6263
6265
  * @param {string} orgName - The orgName of an OAuth Implicit Grant client
6264
6266
  * @param {string} assertion - The saml2bearer assertion
6265
- */},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var _this3=this;this.clientId=clientId;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The saml2bearer grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this3._formAuthRequest(encodedData,{grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion});request.proxy=_this3.proxy;var bodyParam={grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion};// Handle response
6267
+ */},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var _this4=this;this.clientId=clientId;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The saml2bearer grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this4._formAuthRequest(encodedData,{grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion});request.proxy=_this4.proxy;var bodyParam={grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion};// Handle response
6266
6268
  request.then(function(response){// Logging
6267
- _this3.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this3.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6268
- var access_token=response.data.access_token;_this3.setAccessToken(access_token);_this3.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this3.authData.tokenExpiryTimeString=new Date(_this3.authData.tokenExpiryTime).toUTCString();// Return auth data
6269
- resolve(_this3.authData);})["catch"](function(error){// Log error
6270
- if(error.response){_this3.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6269
+ _this4.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this4.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this4.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this4.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6270
+ var access_token=response.data.access_token;_this4.setAccessToken(access_token);_this4.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this4.authData.tokenExpiryTimeString=new Date(_this4.authData.tokenExpiryTime).toUTCString();// Return auth data
6271
+ resolve(_this4.authData);})["catch"](function(error){// Log error
6272
+ if(error.response){_this4.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this4.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6271
6273
  * @description Completes the PKCE Code Authorization.
6272
6274
  * @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
6273
6275
  * @param {string} codeVerifier - code verifier used to generate the code challenge
6274
6276
  * @param {string} authCode - Authorization code
6275
6277
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
6276
- */},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this4=this;this.clientId=clientId;return new Promise(function(resolve,reject){var request=axios$1({method:"POST",url:"https://login.".concat(_this4.config.environment,"/oauth/token"),headers:{'Content-Type':'application/x-www-form-urlencoded'},data:qs__default["default"].stringify({grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri})});request.proxy=_this4.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri};// Handle response
6278
+ */},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this5=this;this.clientId=clientId;return new Promise(function(resolve,reject){var request=axios$1({method:"POST",url:"https://login.".concat(_this5.config.environment,"/oauth/token"),headers:{'Content-Type':'application/x-www-form-urlencoded'},data:qs__default["default"].stringify({grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri})});request.proxy=_this5.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri};// Handle response
6277
6279
  request.then(function(response){// Logging
6278
- _this4.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this4.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this4.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this4.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6279
- var access_token=response.data.access_token;_this4.setAccessToken(access_token);_this4.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this4.authData.tokenExpiryTimeString=new Date(_this4.authData.tokenExpiryTime).toUTCString();// Return auth data
6280
- resolve(_this4.authData);})["catch"](function(error){// Log error
6281
- if(error.response){_this4.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this4.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6280
+ _this5.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this5.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this5.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this5.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6281
+ var access_token=response.data.access_token;_this5.setAccessToken(access_token);_this5.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this5.authData.tokenExpiryTimeString=new Date(_this5.authData.tokenExpiryTime).toUTCString();// Return auth data
6282
+ resolve(_this5.authData);})["catch"](function(error){// Log error
6283
+ if(error.response){_this5.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this5.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
6282
6284
  * @description Generate a random string used as PKCE Code Verifier - length = 43 to 128.
6283
6285
  * @param {number} nChar - code length
6284
6286
  */},{key:"generatePKCECodeVerifier",value:function generatePKCECodeVerifier(nChar){if(nChar<43||nChar>128){throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");}// Check for window
@@ -6297,23 +6299,23 @@ return reject(new Error("Code Challenge Error ".concat(error)));});});}}/**
6297
6299
  * @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
6298
6300
  * @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
6299
6301
  * @param {string} codeVerifier - (optional) code verifier used to generate the code challenge
6300
- */},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var _this5=this;// Need Local Storage or non null codeVerifier as parameter
6302
+ */},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var _this6=this;// Need Local Storage or non null codeVerifier as parameter
6301
6303
  if(!this.hasLocalStorage&&!codeVerifier){throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");}// Check for auth code in query
6302
6304
  var query=this._setValuesFromUrlQuery();this.clientId=clientId;this.redirectUri=redirectUri;this.codeVerifier=codeVerifier;if(!opts)opts={};return new Promise(function(resolve,reject){// Abort if org and provider are not set together
6303
6305
  if(opts.org&&!opts.provider){reject(new Error('opts.provider must be set if opts.org is set'));}else if(opts.provider&&!opts.org){reject(new Error('opts.org must be set if opts.provider is set'));}// Abort on auth error
6304
6306
  if(query&&query.error){// remove codeVerifier from session storage
6305
- if(_this5.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}// reset access token if any was stored
6306
- _this5._saveSettings({accessToken:undefined});return reject(new Error("[".concat(query.error,"] ").concat(query.error_description)));}// Get token on auth code
6307
- if(query&&query.code){if(!_this5.codeVerifier){// load codeVerifier from session storage
6308
- if(_this5.hasLocalStorage){_this5.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier");}}_this5.authorizePKCEGrant(_this5.clientId,_this5.codeVerifier,query.code,_this5.redirectUri).then(function(){// Do authenticated things
6309
- _this5._testTokenAccess().then(function(){if(!_this5.authData.state&&query.state)_this5.authData.state=query.state;// remove codeVerifier from session storage
6310
- if(_this5.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}resolve(_this5.authData);})["catch"](function(error){// Handle failure response
6311
- _this5._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6312
- if(_this5.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});})["catch"](function(error){// Handle failure response
6313
- _this5._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6314
- if(_this5.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});}else{// Test token (if previously stored) and proceed with login
6315
- _this5._testTokenAccess().then(function(){if(!_this5.authData.state&&opts.state)_this5.authData.state=opts.state;resolve(_this5.authData);})["catch"](function(error){if(!_this5.codeVerifier){_this5.codeVerifier=_this5.generatePKCECodeVerifier(128);// save codeVerifier in session storage
6316
- if(_this5.hasLocalStorage){sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",_this5.codeVerifier);}}_this5.computePKCECodeChallenge(_this5.codeVerifier).then(function(codeChallenge){var tokenQuery={client_id:encodeURIComponent(_this5.clientId),redirect_uri:encodeURIComponent(_this5.redirectUri),code_challenge:encodeURIComponent(codeChallenge),response_type:'code',code_challenge_method:'S256'};if(opts.state)tokenQuery.state=encodeURIComponent(opts.state);if(opts.org)tokenQuery.org=encodeURIComponent(opts.org);if(opts.provider)tokenQuery.provider=encodeURIComponent(opts.provider);var url=_this5._buildAuthUrl('oauth/authorize',tokenQuery);window.location.replace(url);})["catch"](function(err){return reject(new Error("[".concat(err.name,"]")));});});}});}/**
6307
+ if(_this6.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}// reset access token if any was stored
6308
+ _this6._saveSettings({accessToken:undefined});return reject(new Error("[".concat(query.error,"] ").concat(query.error_description)));}// Get token on auth code
6309
+ if(query&&query.code){if(!_this6.codeVerifier){// load codeVerifier from session storage
6310
+ if(_this6.hasLocalStorage){_this6.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier");}}_this6.authorizePKCEGrant(_this6.clientId,_this6.codeVerifier,query.code,_this6.redirectUri).then(function(){// Do authenticated things
6311
+ _this6._testTokenAccess().then(function(){if(!_this6.authData.state&&query.state)_this6.authData.state=query.state;// remove codeVerifier from session storage
6312
+ if(_this6.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}resolve(_this6.authData);})["catch"](function(error){// Handle failure response
6313
+ _this6._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6314
+ if(_this6.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});})["catch"](function(error){// Handle failure response
6315
+ _this6._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
6316
+ if(_this6.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});}else{// Test token (if previously stored) and proceed with login
6317
+ _this6._testTokenAccess().then(function(){if(!_this6.authData.state&&opts.state)_this6.authData.state=opts.state;resolve(_this6.authData);})["catch"](function(error){if(!_this6.codeVerifier){_this6.codeVerifier=_this6.generatePKCECodeVerifier(128);// save codeVerifier in session storage
6318
+ if(_this6.hasLocalStorage){sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",_this6.codeVerifier);}}_this6.computePKCECodeChallenge(_this6.codeVerifier).then(function(codeChallenge){var tokenQuery={client_id:encodeURIComponent(_this6.clientId),redirect_uri:encodeURIComponent(_this6.redirectUri),code_challenge:encodeURIComponent(codeChallenge),response_type:'code',code_challenge_method:'S256'};if(opts.state)tokenQuery.state=encodeURIComponent(opts.state);if(opts.org)tokenQuery.org=encodeURIComponent(opts.org);if(opts.provider)tokenQuery.provider=encodeURIComponent(opts.provider);var url=_this6._buildAuthUrl('oauth/authorize',tokenQuery);window.location.replace(url);})["catch"](function(err){return reject(new Error("[".concat(err.name,"]")));});});}});}/**
6317
6319
  * @description Parses the URL Query, grabs the code, and clears the query param. If no code is found, no action is taken.
6318
6320
  */},{key:"_setValuesFromUrlQuery",value:function _setValuesFromUrlQuery(){// Check for window
6319
6321
  if(!(typeof window!=='undefined'&&window.location.search))return;// Process query string
@@ -6330,42 +6332,42 @@ document.body.scrollTop=scrollV;document.body.scrollLeft=scrollH;}return query;}
6330
6332
  * @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
6331
6333
  * @param {string} authCode - Authorization code
6332
6334
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
6333
- */},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var _this6=this;this.clientId=clientId;this.clientSecret=clientSecret;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this6._formAuthRequest(encodedData,{grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri});request.proxy=_this6.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri};// Handle response
6334
- _this6._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6335
+ */},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var _this7=this;this.clientId=clientId;this.clientSecret=clientSecret;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this7._formAuthRequest(encodedData,{grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri});request.proxy=_this7.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri};// Handle response
6336
+ _this7._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6335
6337
  * @description Requests a new access token for Code Authorization. Only available in node apps.
6336
6338
  * @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
6337
6339
  * @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
6338
6340
  * @param {string} authCode - Authorization code
6339
6341
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
6340
- */},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this7=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this7._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this7.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
6341
- _this7._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6342
+ */},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this8=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this8._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this8.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
6343
+ _this8._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
6342
6344
  * @description Handles the response for code auth requests
6343
6345
  * @param {object} request - Authorization request object
6344
6346
  * @param {object} bodyParam - Input body data for authorization request
6345
6347
  * @param {function} resolve - Promise resolve callback
6346
6348
  * @param {function} reject - Promise reject callback
6347
- */},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this8=this;request.then(function(response){// Logging
6348
- _this8.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this8.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this8.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this8.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6349
- var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this8.setAccessToken(access_token);_this8.authData.refreshToken=refresh_token;_this8.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this8.authData.tokenExpiryTimeString=new Date(_this8.authData.tokenExpiryTime).toUTCString();// Return auth data
6350
- resolve(_this8.authData);})["catch"](function(error){// Log error
6351
- if(error.response){_this8.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this8.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
6349
+ */},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this9=this;request.then(function(response){// Logging
6350
+ _this9.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this9.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this9.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this9.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
6351
+ var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this9.setAccessToken(access_token);_this9.authData.refreshToken=refresh_token;_this9.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this9.authData.tokenExpiryTimeString=new Date(_this9.authData.tokenExpiryTime).toUTCString();// Return auth data
6352
+ resolve(_this9.authData);})["catch"](function(error){// Log error
6353
+ if(error.response){_this9.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this9.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
6352
6354
  * @description Utility function to create the request for auth requests
6353
6355
  * @param {string} encodedData - Base64 encoded client and clientSecret pair
6354
6356
  * @param {object} data - data to url form encode
6355
6357
  */},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var request=axios$1({method:"POST",url:"https://login.".concat(this.config.environment,"/oauth/token"),headers:{'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'},data:qs__default["default"].stringify(data)});return request;}/**
6356
6358
  * @description Handles an expired access token. Only available in node apps.
6357
6359
  * @param {string} statusCode - The status code of a request
6358
- */},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this9=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this9.refreshInProgress){_this9.refreshInProgress=true;_this9.refreshCodeAuthorizationGrant(_this9.clientId,_this9.clientSecret,_this9.authData.refreshToken).then(function(){_this9.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
6359
- _this9.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
6360
- _this9._sleep(_this9.config.refresh_token_wait_max).then(function(){if(_this9.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this9.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
6360
+ */},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this10=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this10.refreshInProgress){_this10.refreshInProgress=true;_this10.refreshCodeAuthorizationGrant(_this10.clientId,_this10.clientSecret,_this10.authData.refreshToken).then(function(){_this10.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
6361
+ _this10.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
6362
+ _this10._sleep(_this10.config.refresh_token_wait_max).then(function(){if(_this10.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this10.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
6361
6363
  * @description Sleeps for a defined length
6362
6364
  * @param {int} millis - Length to sleep in milliseconds
6363
6365
  */},{key:"_sleep",value:function _sleep(millis){return new Promise(function(resolve){return setTimeout(resolve,millis);});}/**
6364
6366
  * @description Loads token from storage, if enabled, and checks to ensure it works.
6365
- */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this10=this;return new Promise(function(resolve,reject){// Load from storage
6366
- _this10._loadSettings();// Check if there is a token to test
6367
- if(!_this10.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
6368
- _this10.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this10._saveSettings({accessToken:undefined});reject(error);});});}/**
6367
+ */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this11=this;return new Promise(function(resolve,reject){// Load from storage
6368
+ _this11._loadSettings();// Check if there is a token to test
6369
+ if(!_this11.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
6370
+ _this11.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this11._saveSettings({accessToken:undefined});reject(error);});});}/**
6369
6371
  * @description Parses the URL hash, grabs the access token, and clears the hash. If no access token is found, no action is taken.
6370
6372
  */},{key:"_setValuesFromUrlHash",value:function _setValuesFromUrlHash(){// Check for window
6371
6373
  if(!(typeof window!=='undefined'&&window.location.hash))return;// Process hash string into object
@@ -6410,7 +6412,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
6410
6412
  * @param {String} path The path to append to the base URL.
6411
6413
  * @param {Object} pathParams The parameter values to append.
6412
6414
  * @returns {String} The encoded path with parameter values substituted.
6413
- */},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this11=this;if(!path.match(/^\//)){path="/".concat(path);}var url=this.config.basePath+path;url=url.replace(/\{([\w-]+)\}/g,function(fullMatch,key){var value;if(pathParams.hasOwnProperty(key)){value=_this11.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
6415
+ */},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this12=this;if(!path.match(/^\//)){path="/".concat(path);}var url=this.config.basePath+path;url=url.replace(/\{([\w-]+)\}/g,function(fullMatch,key){var value;if(pathParams.hasOwnProperty(key)){value=_this12.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
6414
6416
  * Checks whether the given content type represents JSON.<br>
6415
6417
  * JSON content type examples:<br>
6416
6418
  * <ul>
@@ -6451,7 +6453,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
6451
6453
  * Applies authentication headers to the request.
6452
6454
  * @param {Object} request The axios request config object.
6453
6455
  * @param {Array.<String>} authNames An array of authentication method names.
6454
- */},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this12=this;authNames.forEach(function(authName){var auth=_this12.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this12.addHeaders(request.headers,data);}else{request.params=_this12.serialize(data);}}break;case'oauth2':if(auth.accessToken){request.headers=_this12.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
6456
+ */},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this13=this;authNames.forEach(function(authName){var auth=_this13.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this13.addHeaders(request.headers,data);}else{request.params=_this13.serialize(data);}}break;case'oauth2':if(auth.accessToken){request.headers=_this13.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
6455
6457
  * @description Sets the proxy agent axios will use for requests
6456
6458
  * @param {any} agent - The proxy agent
6457
6459
  */},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;}/**
@@ -6468,18 +6470,141 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
6468
6470
  * @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
6469
6471
  * constructor for a complex type.
6470
6472
  * @returns {Promise} A Promise object.
6471
- */},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this13=this;return new Promise(function(resolve,reject){sendRequest(_this13);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request={method:httpMethod,url:url,httpsAgent:that.proxyAgent,timeout:that.timeout,params:that.serialize(queryParams)};// apply authentications
6473
+ */},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this14=this;return new Promise(function(resolve,reject){sendRequest(_this14);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request={method:httpMethod,url:url,httpsAgent:that.proxyAgent,timeout:that.timeout,params:that.serialize(queryParams)};// apply authentications
6472
6474
  that.applyAuthToRequest(request,authNames);// set header parameters
6473
6475
  var defaultHeaders=that.defaultHeaders;var normalizedHeaderParams=that.normalizeParams(headerParams);request.headers=that.addHeaders(request.headers,defaultHeaders,normalizedHeaderParams);var contentType=that.jsonPreferredMime(contentTypes);if(contentType){request.headers['Content-Type']=contentType;}else if(!request.headers['Content-Type']){request.headers['Content-Type']='application/json';}if(contentType==='application/x-www-form-urlencoded'){request.data=that.normalizeParams(formParams);}else if(contentType=='multipart/form-data'){var _formParams=that.normalizeParams(formParams);for(var key in _formParams){if(_formParams.hasOwnProperty(key)){// Looks like axios handles files and forms the same way
6474
6476
  var formData=new FormData();formData.set(key,_formParams[key]);request.data=formData;}}}else if(bodyParam){request.data=bodyParam;}var accept=that.jsonPreferredMime(accepts);if(accept){request.headers['Accept']=accept;}axios$1.request(request).then(function(response){// Build response object
6475
6477
  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
6476
6478
  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
6477
6479
  resolve(data);})["catch"](function(error){var data=error;if(error.response&&error.response.status==401&&that.config.refresh_access_token&&that.authData.refreshToken!==""){that._handleExpiredAccessToken().then(function(){sendRequest(that);})["catch"](function(err){reject(err);});}else if(error.response){// Log error
6478
- 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 AgentUIApi=/*#__PURE__*/function(){/**
6480
+ 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(){/**
6481
+ * AgentAssistants service.
6482
+ * @module purecloud-platform-client-v2/api/AgentAssistantsApi
6483
+ * @version 204.0.0
6484
+ *//**
6485
+ * Constructs a new AgentAssistantsApi.
6486
+ * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
6487
+ * @class
6488
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
6489
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
6490
+ */function AgentAssistantsApi(apiClient){_classCallCheck(this,AgentAssistantsApi);this.apiClient=apiClient||ApiClient.instance;}/**
6491
+ * Delete an assistant.
6492
+ *
6493
+ * @param {String} assistantId Assistant ID
6494
+ */return _createClass(AgentAssistantsApi,[{key:"deleteAssistant",value:function deleteAssistant(assistantId){// verify the required parameter 'assistantId' is set
6495
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling deleteAssistant';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}','DELETE',{'assistantId':assistantId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6496
+ * Disassociate a queue from an assistant.
6497
+ *
6498
+ * @param {String} assistantId Assistant ID
6499
+ * @param {String} queueId Queue ID
6500
+ */},{key:"deleteAssistantQueue",value:function deleteAssistantQueue(assistantId,queueId){// verify the required parameter 'assistantId' is set
6501
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';}// verify the required parameter 'queueId' is set
6502
+ if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','DELETE',{'assistantId':assistantId,'queueId':queueId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6503
+ * Disassociate the queues from an assistant for the given assistant ID and queue IDs.
6504
+ *
6505
+ * @param {String} assistantId Assistant ID
6506
+ * @param {Object} opts Optional parameters
6507
+ * @param {String} opts.queueIds Comma-separated identifiers of the queues that need to be deleted.
6508
+ */},{key:"deleteAssistantQueues",value:function deleteAssistantQueues(assistantId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
6509
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling deleteAssistantQueues';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues','DELETE',{'assistantId':assistantId},{'queueIds':opts['queueIds']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6510
+ * Get an assistant.
6511
+ *
6512
+ * @param {String} assistantId Assistant ID
6513
+ * @param {Object} opts Optional parameters
6514
+ * @param {Object} opts.expand Which fields, if any, to expand.
6515
+ */},{key:"getAssistant",value:function getAssistant(assistantId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
6516
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling getAssistant';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}','GET',{'assistantId':assistantId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6517
+ * Get queue Information for an assistant.
6518
+ *
6519
+ * @param {String} assistantId Assistant ID
6520
+ * @param {String} queueId Queue ID
6521
+ * @param {Object} opts Optional parameters
6522
+ * @param {Object} opts.expand Which fields, if any, to expand.
6523
+ */},{key:"getAssistantQueue",value:function getAssistantQueue(assistantId,queueId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
6524
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling getAssistantQueue';}// verify the required parameter 'queueId' is set
6525
+ if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','GET',{'assistantId':assistantId,'queueId':queueId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6526
+ * Get all the queues associated with an assistant.
6527
+ *
6528
+ * @param {String} assistantId Assistant ID
6529
+ * @param {Object} opts Optional parameters
6530
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
6531
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
6532
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
6533
+ * @param {Object} opts.expand Which fields, if any, to expand.
6534
+ */},{key:"getAssistantQueues",value:function getAssistantQueues(assistantId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
6535
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling getAssistantQueues';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues','GET',{'assistantId':assistantId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6536
+ * Get all assistants.
6537
+ *
6538
+ * @param {Object} opts Optional parameters
6539
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
6540
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
6541
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
6542
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
6543
+ * @param {String} opts.name Return the assistant by the given name.
6544
+ */},{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']);}/**
6545
+ * Get all queues assigned to any assistant.
6546
+ *
6547
+ * @param {Object} opts Optional parameters
6548
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
6549
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
6550
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
6551
+ * @param {String} opts.queueIds Comma-separated identifiers of the queues that need to be retrieved.
6552
+ * @param {Object} opts.expand Which fields, if any, to expand.
6553
+ */},{key:"getAssistantsQueues",value:function getAssistantsQueues(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/assistants/queues','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'queueIds':opts['queueIds'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6554
+ * Update an assistant.
6555
+ *
6556
+ * @param {String} assistantId Assistant ID
6557
+ * @param {Object} body
6558
+ */},{key:"patchAssistant",value:function patchAssistant(assistantId,body){// verify the required parameter 'assistantId' is set
6559
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling patchAssistant';}// verify the required parameter 'body' is set
6560
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchAssistant';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}','PATCH',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6561
+ * Update Queues for an Assistant.
6562
+ *
6563
+ * @param {String} assistantId Assistant ID
6564
+ * @param {Array.<Object>} body
6565
+ */},{key:"patchAssistantQueues",value:function patchAssistantQueues(assistantId,body){// verify the required parameter 'assistantId' is set
6566
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';}// verify the required parameter 'body' is set
6567
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchAssistantQueues';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues','PATCH',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6568
+ * Create an Assistant.
6569
+ *
6570
+ * @param {Object} body
6571
+ */},{key:"postAssistants",value:function postAssistants(body){// verify the required parameter 'body' is set
6572
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAssistants';}return this.apiClient.callApi('/api/v2/assistants','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6573
+ * Create a queue assistant association.
6574
+ *
6575
+ * @param {String} assistantId Assistant ID
6576
+ * @param {String} queueId Queue ID
6577
+ * @param {Object} body
6578
+ */},{key:"putAssistantQueue",value:function putAssistantQueue(assistantId,queueId,body){// verify the required parameter 'assistantId' is set
6579
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling putAssistantQueue';}// verify the required parameter 'queueId' is set
6580
+ if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling putAssistantQueue';}// verify the required parameter 'body' is set
6581
+ 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(){/**
6582
+ * AgentCopilot service.
6583
+ * @module purecloud-platform-client-v2/api/AgentCopilotApi
6584
+ * @version 204.0.0
6585
+ *//**
6586
+ * Constructs a new AgentCopilotApi.
6587
+ * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
6588
+ * @class
6589
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
6590
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
6591
+ */function AgentCopilotApi(apiClient){_classCallCheck(this,AgentCopilotApi);this.apiClient=apiClient||ApiClient.instance;}/**
6592
+ * Get copilot configuration of an assistant.
6593
+ *
6594
+ * @param {String} assistantId Assistant ID
6595
+ */return _createClass(AgentCopilotApi,[{key:"getAssistantCopilot",value:function getAssistantCopilot(assistantId){// verify the required parameter 'assistantId' is set
6596
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling getAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','GET',{'assistantId':assistantId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6597
+ * Update agent copilot configuration
6598
+ *
6599
+ * @param {String} assistantId Assistant ID
6600
+ * @param {Object} body
6601
+ */},{key:"putAssistantCopilot",value:function putAssistantCopilot(assistantId,body){// verify the required parameter 'assistantId' is set
6602
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';}// verify the required parameter 'body' is set
6603
+ 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(){/**
6479
6604
  * AgentUI service.
6480
6605
  * @module purecloud-platform-client-v2/api/AgentUIApi
6481
- * @version 202.1.0
6482
- */ /**
6606
+ * @version 204.0.0
6607
+ *//**
6483
6608
  * Constructs a new AgentUIApi.
6484
6609
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
6485
6610
  * @class
@@ -6512,8 +6637,8 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
6512
6637
  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(){/**
6513
6638
  * Alerting service.
6514
6639
  * @module purecloud-platform-client-v2/api/AlertingApi
6515
- * @version 202.1.0
6516
- */ /**
6640
+ * @version 204.0.0
6641
+ *//**
6517
6642
  * Constructs a new AlertingApi.
6518
6643
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
6519
6644
  * @class
@@ -6669,8 +6794,8 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
6669
6794
  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(){/**
6670
6795
  * Analytics service.
6671
6796
  * @module purecloud-platform-client-v2/api/AnalyticsApi
6672
- * @version 202.1.0
6673
- */ /**
6797
+ * @version 204.0.0
6798
+ *//**
6674
6799
  * Constructs a new AnalyticsApi.
6675
6800
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
6676
6801
  * @class
@@ -6911,12 +7036,13 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
6911
7036
  * @param {Object} dashboardType List dashboard of given type
6912
7037
  * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
6913
7038
  * @param {Object} opts Optional parameters
7039
+ * @param {String} opts.name name of the dashboard
6914
7040
  * @param {String} opts.sortBy (default to desc)
6915
7041
  * @param {Number} opts.pageNumber (default to 1)
6916
7042
  * @param {Number} opts.pageSize (default to 9)
6917
7043
  */},{key:"getAnalyticsReportingSettingsDashboardsQuery",value:function getAnalyticsReportingSettingsDashboardsQuery(dashboardType,dashboardAccessFilter,opts){opts=opts||{};// verify the required parameter 'dashboardType' is set
6918
7044
  if(dashboardType===undefined||dashboardType===null){throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';}// verify the required parameter 'dashboardAccessFilter' is set
6919
- if(dashboardAccessFilter===undefined||dashboardAccessFilter===null){throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/query','GET',{},{'dashboardType':dashboardType,'dashboardAccessFilter':dashboardAccessFilter,'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7045
+ if(dashboardAccessFilter===undefined||dashboardAccessFilter===null){throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/query','GET',{},{'name':opts['name'],'dashboardType':dashboardType,'dashboardAccessFilter':dashboardAccessFilter,'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6920
7046
  * Get list of dashboards for an user
6921
7047
  *
6922
7048
  * @param {String} userId User ID
@@ -7040,7 +7166,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7040
7166
  * Query for agent copilot aggregates
7041
7167
  *
7042
7168
  * @param {Object} body query
7043
- * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7044
7169
  */},{key:"postAnalyticsAgentcopilotsAggregatesQuery",value:function postAnalyticsAgentcopilotsAggregatesQuery(body){// verify the required parameter 'body' is set
7045
7170
  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']);}/**
7046
7171
  * Query for bot aggregates asynchronously
@@ -7290,8 +7415,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7290
7415
  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(){/**
7291
7416
  * Architect service.
7292
7417
  * @module purecloud-platform-client-v2/api/ArchitectApi
7293
- * @version 202.1.0
7294
- */ /**
7418
+ * @version 204.0.0
7419
+ *//**
7295
7420
  * Constructs a new ArchitectApi.
7296
7421
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
7297
7422
  * @class
@@ -7389,7 +7514,6 @@ if(flowId===undefined||flowId===null){throw'Missing the required parameter "flow
7389
7514
  * Deletes a log level for a flow by flow id.
7390
7515
  * Deletes the associated log level for a flow by flow id
7391
7516
  * @param {String} flowId The flow id to delete the loglevel for
7392
- * deleteFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7393
7517
  */},{key:"deleteFlowInstancesSettingsLoglevels",value:function deleteFlowInstancesSettingsLoglevels(flowId){// verify the required parameter 'flowId' is set
7394
7518
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling deleteFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','DELETE',{'flowId':flowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7395
7519
  * Batch-delete a list of flows
@@ -7413,7 +7537,6 @@ if(datatableId===undefined||datatableId===null){throw'Missing the required param
7413
7537
  if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';}return this.apiClient.callApi('/api/v2/flows/datatables/{datatableId}/rows/{rowId}','DELETE',{'datatableId':datatableId,'rowId':rowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7414
7538
  * Resets the org log level to default, base
7415
7539
  * Resets the org log level to default, base
7416
- * deleteFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7417
7540
  */},{key:"deleteFlowsInstancesSettingsLoglevelsDefault",value:function deleteFlowsInstancesSettingsLoglevelsDefault(){return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/default','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7418
7541
  * Delete a flow milestone.
7419
7542
  *
@@ -7771,7 +7894,6 @@ if(historyId===undefined||historyId===null){throw'Missing the required parameter
7771
7894
  * @param {String} flowId The flow id to get the loglevel for
7772
7895
  * @param {Object} opts Optional parameters
7773
7896
  * @param {Array.<String>} opts.expand Expand instructions for the result
7774
- * getFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7775
7897
  */},{key:"getFlowInstancesSettingsLoglevels",value:function getFlowInstancesSettingsLoglevels(flowId,opts){opts=opts||{};// verify the required parameter 'flowId' is set
7776
7898
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling getFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','GET',{'flowId':flowId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7777
7899
  * Get the latest configuration for flow
@@ -7981,7 +8103,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
7981
8103
  */},{key:"getFlowsInstancesQuerycapabilities",value:function getFlowsInstancesQuerycapabilities(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/instances/querycapabilities','GET',{},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7982
8104
  * Get the execution history enabled setting.
7983
8105
  * Get the execution history enabled setting.
7984
- * getFlowsInstancesSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7985
8106
  */},{key:"getFlowsInstancesSettingsExecutiondata",value:function getFlowsInstancesSettingsExecutiondata(){return this.apiClient.callApi('/api/v2/flows/instances/settings/executiondata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7986
8107
  * Retrieve a list of LogLevels for the organization.
7987
8108
  * Returns a paged set of LogLevels per flow id
@@ -7989,17 +8110,14 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
7989
8110
  * @param {Array.<String>} opts.expand Expand instructions for the result
7990
8111
  * @param {Number} opts.pageNumber Page number (default to 1)
7991
8112
  * @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
7992
- * getFlowsInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7993
8113
  */},{key:"getFlowsInstancesSettingsLoglevels",value:function getFlowsInstancesSettingsLoglevels(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7994
8114
  * Gets the available flow log level characteristics for this organization.
7995
8115
  * Log levels can be customized and this returns the set of available characteristics that can be enabled/disabled.
7996
- * getFlowsInstancesSettingsLoglevelsCharacteristics is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7997
8116
  */},{key:"getFlowsInstancesSettingsLoglevelsCharacteristics",value:function getFlowsInstancesSettingsLoglevelsCharacteristics(){return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/characteristics','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7998
8117
  * Returns the flow default log level.
7999
8118
  * Returns the flow default log level which will be used if no specific flow id log level is found.
8000
8119
  * @param {Object} opts Optional parameters
8001
8120
  * @param {Array.<String>} opts.expand Expand instructions for the result
8002
- * getFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8003
8121
  */},{key:"getFlowsInstancesSettingsLoglevelsDefault",value:function getFlowsInstancesSettingsLoglevelsDefault(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/default','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8004
8122
  * Fetch Architect Job Status
8005
8123
  *
@@ -8087,7 +8205,6 @@ if(languageCode===undefined||languageCode===null){throw'Missing the required par
8087
8205
  * Edit the execution history enabled setting.
8088
8206
  * Edit the execution history enabled setting.
8089
8207
  * @param {Object} body New Execution Data Setting
8090
- * patchFlowsInstancesSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8091
8208
  */},{key:"patchFlowsInstancesSettingsExecutiondata",value:function patchFlowsInstancesSettingsExecutiondata(body){// verify the required parameter 'body' is set
8092
8209
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchFlowsInstancesSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/flows/instances/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8093
8210
  * Rebuild Dependency Tracking data for an organization
@@ -8187,7 +8304,6 @@ if(flowId===undefined||flowId===null){throw'Missing the required parameter "flow
8187
8304
  * @param {Object} body New LogLevel settings
8188
8305
  * @param {Object} opts Optional parameters
8189
8306
  * @param {Array.<String>} opts.expand Expand instructions for the result
8190
- * postFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8191
8307
  */},{key:"postFlowInstancesSettingsLoglevels",value:function postFlowInstancesSettingsLoglevels(flowId,body,opts){opts=opts||{};// verify the required parameter 'flowId' is set
8192
8308
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';}// verify the required parameter 'body' is set
8193
8309
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','POST',{'flowId':flowId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8360,7 +8476,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8360
8476
  * @param {Object} body New LogLevel settings
8361
8477
  * @param {Object} opts Optional parameters
8362
8478
  * @param {Array.<String>} opts.expand Expand instructions for the result
8363
- * putFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8364
8479
  */},{key:"putFlowInstancesSettingsLoglevels",value:function putFlowInstancesSettingsLoglevels(flowId,body,opts){opts=opts||{};// verify the required parameter 'flowId' is set
8365
8480
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';}// verify the required parameter 'body' is set
8366
8481
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','PUT',{'flowId':flowId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8387,7 +8502,6 @@ if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId"
8387
8502
  * @param {Object} body New LogLevel settings
8388
8503
  * @param {Object} opts Optional parameters
8389
8504
  * @param {Array.<String>} opts.expand Expand instructions for the result
8390
- * putFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8391
8505
  */},{key:"putFlowsInstancesSettingsLoglevelsDefault",value:function putFlowsInstancesSettingsLoglevelsDefault(body,opts){opts=opts||{};// verify the required parameter 'body' is set
8392
8506
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFlowsInstancesSettingsLoglevelsDefault';}return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/default','PUT',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8393
8507
  * Updates a flow milestone
@@ -8406,8 +8520,8 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
8406
8520
  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(){/**
8407
8521
  * Audit service.
8408
8522
  * @module purecloud-platform-client-v2/api/AuditApi
8409
- * @version 202.1.0
8410
- */ /**
8523
+ * @version 204.0.0
8524
+ *//**
8411
8525
  * Constructs a new AuditApi.
8412
8526
  * @alias module:purecloud-platform-client-v2/api/AuditApi
8413
8527
  * @class
@@ -8456,8 +8570,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8456
8570
  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(){/**
8457
8571
  * Authorization service.
8458
8572
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8459
- * @version 202.1.0
8460
- */ /**
8573
+ * @version 204.0.0
8574
+ *//**
8461
8575
  * Constructs a new AuthorizationApi.
8462
8576
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
8463
8577
  * @class
@@ -8607,6 +8721,9 @@ if(roleId===undefined||roleId===null){throw'Missing the required parameter "role
8607
8721
  * @param {Boolean} opts.userCount (default to true)
8608
8722
  * @param {Array.<String>} opts.id id
8609
8723
  */},{key:"getAuthorizationRoles",value:function getAuthorizationRoles(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/roles','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'name':opts['name'],'permission':this.apiClient.buildCollectionParam(opts['permission'],'multi'),'defaultRoleId':this.apiClient.buildCollectionParam(opts['defaultRoleId'],'multi'),'userCount':opts['userCount'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8724
+ * Get authorization role settings
8725
+ *
8726
+ */},{key:"getAuthorizationRolesSettings",value:function getAuthorizationRolesSettings(){return this.apiClient.callApi('/api/v2/authorization/roles/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8610
8727
  * Get authorization settings
8611
8728
  *
8612
8729
  */},{key:"getAuthorizationSettings",value:function getAuthorizationSettings(){return this.apiClient.callApi('/api/v2/authorization/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8762,6 +8879,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8762
8879
  * @param {Array.<Object>} body Organization roles list
8763
8880
  */},{key:"putAuthorizationRolesDefault",value:function putAuthorizationRolesDefault(body){// verify the required parameter 'body' is set
8764
8881
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationRolesDefault';}return this.apiClient.callApi('/api/v2/authorization/roles/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8882
+ * Change authorization role settings
8883
+ * Change role settings
8884
+ * @param {Object} body Authorization Role Settings
8885
+ */},{key:"putAuthorizationRolesSettings",value:function putAuthorizationRolesSettings(body){// verify the required parameter 'body' is set
8886
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationRolesSettings';}return this.apiClient.callApi('/api/v2/authorization/roles/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8765
8887
  * Sets the user's roles
8766
8888
  *
8767
8889
  * @param {String} subjectId User ID
@@ -8771,8 +8893,8 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
8771
8893
  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(){/**
8772
8894
  * Billing service.
8773
8895
  * @module purecloud-platform-client-v2/api/BillingApi
8774
- * @version 202.1.0
8775
- */ /**
8896
+ * @version 204.0.0
8897
+ *//**
8776
8898
  * Constructs a new BillingApi.
8777
8899
  * @alias module:purecloud-platform-client-v2/api/BillingApi
8778
8900
  * @class
@@ -8795,8 +8917,8 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
8795
8917
  if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
8796
8918
  * CarrierServices service.
8797
8919
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
8798
- * @version 202.1.0
8799
- */ /**
8920
+ * @version 204.0.0
8921
+ *//**
8800
8922
  * Constructs a new CarrierServicesApi.
8801
8923
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
8802
8924
  * @class
@@ -8815,8 +8937,8 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
8815
8937
  */},{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(){/**
8816
8938
  * Chat service.
8817
8939
  * @module purecloud-platform-client-v2/api/ChatApi
8818
- * @version 202.1.0
8819
- */ /**
8940
+ * @version 204.0.0
8941
+ *//**
8820
8942
  * Constructs a new ChatApi.
8821
8943
  * @alias module:purecloud-platform-client-v2/api/ChatApi
8822
8944
  * @class
@@ -9040,8 +9162,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9040
9162
  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(){/**
9041
9163
  * Coaching service.
9042
9164
  * @module purecloud-platform-client-v2/api/CoachingApi
9043
- * @version 202.1.0
9044
- */ /**
9165
+ * @version 204.0.0
9166
+ *//**
9045
9167
  * Constructs a new CoachingApi.
9046
9168
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
9047
9169
  * @class
@@ -9193,8 +9315,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9193
9315
  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(){/**
9194
9316
  * ContentManagement service.
9195
9317
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9196
- * @version 202.1.0
9197
- */ /**
9318
+ * @version 204.0.0
9319
+ *//**
9198
9320
  * Constructs a new ContentManagementApi.
9199
9321
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
9200
9322
  * @class
@@ -9476,8 +9598,8 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
9476
9598
  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(){/**
9477
9599
  * Conversations service.
9478
9600
  * @module purecloud-platform-client-v2/api/ConversationsApi
9479
- * @version 202.1.0
9480
- */ /**
9601
+ * @version 204.0.0
9602
+ *//**
9481
9603
  * Constructs a new ConversationsApi.
9482
9604
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
9483
9605
  * @class
@@ -11198,8 +11320,8 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
11198
11320
  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(){/**
11199
11321
  * DataExtensions service.
11200
11322
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
11201
- * @version 202.1.0
11202
- */ /**
11323
+ * @version 204.0.0
11324
+ *//**
11203
11325
  * Constructs a new DataExtensionsApi.
11204
11326
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
11205
11327
  * @class
@@ -11219,8 +11341,8 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
11219
11341
  */},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
11220
11342
  * Downloads service.
11221
11343
  * @module purecloud-platform-client-v2/api/DownloadsApi
11222
- * @version 202.1.0
11223
- */ /**
11344
+ * @version 204.0.0
11345
+ *//**
11224
11346
  * Constructs a new DownloadsApi.
11225
11347
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
11226
11348
  * @class
@@ -11238,8 +11360,8 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
11238
11360
  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(){/**
11239
11361
  * Emails service.
11240
11362
  * @module purecloud-platform-client-v2/api/EmailsApi
11241
- * @version 202.1.0
11242
- */ /**
11363
+ * @version 204.0.0
11364
+ *//**
11243
11365
  * Constructs a new EmailsApi.
11244
11366
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
11245
11367
  * @class
@@ -11256,8 +11378,8 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
11256
11378
  */},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
11257
11379
  * EmployeeEngagement service.
11258
11380
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
11259
- * @version 202.1.0
11260
- */ /**
11381
+ * @version 204.0.0
11382
+ *//**
11261
11383
  * Constructs a new EmployeeEngagementApi.
11262
11384
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
11263
11385
  * @class
@@ -11294,8 +11416,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11294
11416
  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(){/**
11295
11417
  * Events service.
11296
11418
  * @module purecloud-platform-client-v2/api/EventsApi
11297
- * @version 202.1.0
11298
- */ /**
11419
+ * @version 204.0.0
11420
+ *//**
11299
11421
  * Constructs a new EventsApi.
11300
11422
  * @alias module:purecloud-platform-client-v2/api/EventsApi
11301
11423
  * @class
@@ -11319,8 +11441,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11319
11441
  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(){/**
11320
11442
  * ExternalContacts service.
11321
11443
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
11322
- * @version 202.1.0
11323
- */ /**
11444
+ * @version 204.0.0
11445
+ *//**
11324
11446
  * Constructs a new ExternalContactsApi.
11325
11447
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
11326
11448
  * @class
@@ -11344,6 +11466,12 @@ if(noteId===undefined||noteId===null){throw'Missing the required parameter "note
11344
11466
  * @param {String} schemaId Schema ID
11345
11467
  */},{key:"deleteExternalcontactsContactsSchema",value:function deleteExternalcontactsContactsSchema(schemaId){// verify the required parameter 'schemaId' is set
11346
11468
  if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling deleteExternalcontactsContactsSchema';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas/{schemaId}','DELETE',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11469
+ * Delete an External Source. WARNING: Any records that reference this External Source will not be automatically cleaned up. Those records will still be editable, but their External IDs may not be fully viewable.
11470
+ *
11471
+ * @param {String} externalSourceId External Source ID
11472
+ * deleteExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11473
+ */},{key:"deleteExternalcontactsExternalsource",value:function deleteExternalcontactsExternalsource(externalSourceId){// verify the required parameter 'externalSourceId' is set
11474
+ if(externalSourceId===undefined||externalSourceId===null){throw'Missing the required parameter "externalSourceId" when calling deleteExternalcontactsExternalsource';}return this.apiClient.callApi('/api/v2/externalcontacts/externalsources/{externalSourceId}','DELETE',{'externalSourceId':externalSourceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11347
11475
  * Delete an external organization
11348
11476
  *
11349
11477
  * @param {String} externalOrganizationId External Organization ID
@@ -11370,7 +11498,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
11370
11498
  *
11371
11499
  * @param {String} contactId ExternalContact ID
11372
11500
  * @param {Object} opts Optional parameters
11373
- * @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources,identifiers)
11501
+ * @param {Array.<String>} opts.expand which fields, if any, to expand
11374
11502
  */},{key:"getExternalcontactsContact",value:function getExternalcontactsContact(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
11375
11503
  if(contactId===undefined||contactId===null){throw'Missing the required parameter "contactId" when calling getExternalcontactsContact';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}','GET',{'contactId':contactId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11376
11504
  * List the identifiers for a contact
@@ -11442,6 +11570,21 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
11442
11570
  * Get a list of schemas.
11443
11571
  *
11444
11572
  */},{key:"getExternalcontactsContactsSchemas",value:function getExternalcontactsContactsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11573
+ * Fetch an External Source
11574
+ *
11575
+ * @param {String} externalSourceId External Source ID
11576
+ * getExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11577
+ */},{key:"getExternalcontactsExternalsource",value:function getExternalcontactsExternalsource(externalSourceId){// verify the required parameter 'externalSourceId' is set
11578
+ if(externalSourceId===undefined||externalSourceId===null){throw'Missing the required parameter "externalSourceId" when calling getExternalcontactsExternalsource';}return this.apiClient.callApi('/api/v2/externalcontacts/externalsources/{externalSourceId}','GET',{'externalSourceId':externalSourceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11579
+ * Fetch a list of External Sources
11580
+ *
11581
+ * @param {Object} opts Optional parameters
11582
+ * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
11583
+ * @param {Number} opts.limit The number of ExternalSources per page; must be between 10 and 200, default is 100
11584
+ * @param {String} opts.name Filter by external source name. Filtering is prefix filtering and not an exact match
11585
+ * @param {Boolean} opts.active Filter by active status of external source
11586
+ * getExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11587
+ */},{key:"getExternalcontactsExternalsources",value:function getExternalcontactsExternalsources(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/externalsources','GET',{},{'cursor':opts['cursor'],'limit':opts['limit'],'name':opts['name'],'active':opts['active']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11445
11588
  * Fetch an external organization
11446
11589
  *
11447
11590
  * @param {String} externalOrganizationId External Organization ID
@@ -11673,6 +11816,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11673
11816
  * @param {Object} body Schema
11674
11817
  */},{key:"postExternalcontactsContactsSchemas",value:function postExternalcontactsContactsSchemas(body){// verify the required parameter 'body' is set
11675
11818
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsSchemas';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11819
+ * Create an External Source
11820
+ *
11821
+ * @param {Object} body External Source
11822
+ * postExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11823
+ */},{key:"postExternalcontactsExternalsources",value:function postExternalcontactsExternalsources(body){// verify the required parameter 'body' is set
11824
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsExternalsources';}return this.apiClient.callApi('/api/v2/externalcontacts/externalsources','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11676
11825
  * Fetch a contact using an identifier type and value.
11677
11826
  * Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
11678
11827
  * @param {Object} identifier
@@ -11737,6 +11886,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11737
11886
  */},{key:"putExternalcontactsConversation",value:function putExternalcontactsConversation(conversationId,body){// verify the required parameter 'conversationId' is set
11738
11887
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';}// verify the required parameter 'body' is set
11739
11888
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsConversation';}return this.apiClient.callApi('/api/v2/externalcontacts/conversations/{conversationId}','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11889
+ * Update an External Source
11890
+ *
11891
+ * @param {String} externalSourceId External Source ID
11892
+ * @param {Object} body External Source
11893
+ * putExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11894
+ */},{key:"putExternalcontactsExternalsource",value:function putExternalcontactsExternalsource(externalSourceId,body){// verify the required parameter 'externalSourceId' is set
11895
+ if(externalSourceId===undefined||externalSourceId===null){throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';}// verify the required parameter 'body' is set
11896
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';}return this.apiClient.callApi('/api/v2/externalcontacts/externalsources/{externalSourceId}','PUT',{'externalSourceId':externalSourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11740
11897
  * Update an external organization
11741
11898
  *
11742
11899
  * @param {String} externalOrganizationId External Organization ID
@@ -11776,8 +11933,8 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
11776
11933
  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(){/**
11777
11934
  * Fax service.
11778
11935
  * @module purecloud-platform-client-v2/api/FaxApi
11779
- * @version 202.1.0
11780
- */ /**
11936
+ * @version 204.0.0
11937
+ *//**
11781
11938
  * Constructs a new FaxApi.
11782
11939
  * @alias module:purecloud-platform-client-v2/api/FaxApi
11783
11940
  * @class
@@ -11825,8 +11982,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11825
11982
  */},{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(){/**
11826
11983
  * Flows service.
11827
11984
  * @module purecloud-platform-client-v2/api/FlowsApi
11828
- * @version 202.1.0
11829
- */ /**
11985
+ * @version 204.0.0
11986
+ *//**
11830
11987
  * Constructs a new FlowsApi.
11831
11988
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
11832
11989
  * @class
@@ -11873,8 +12030,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11873
12030
  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(){/**
11874
12031
  * Gamification service.
11875
12032
  * @module purecloud-platform-client-v2/api/GamificationApi
11876
- * @version 202.1.0
11877
- */ /**
12033
+ * @version 204.0.0
12034
+ *//**
11878
12035
  * Constructs a new GamificationApi.
11879
12036
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
11880
12037
  * @class
@@ -12413,8 +12570,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12413
12570
  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(){/**
12414
12571
  * GeneralDataProtectionRegulation service.
12415
12572
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
12416
- * @version 202.1.0
12417
- */ /**
12573
+ * @version 204.0.0
12574
+ *//**
12418
12575
  * Constructs a new GeneralDataProtectionRegulationApi.
12419
12576
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
12420
12577
  * @class
@@ -12448,8 +12605,8 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
12448
12605
  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(){/**
12449
12606
  * Geolocation service.
12450
12607
  * @module purecloud-platform-client-v2/api/GeolocationApi
12451
- * @version 202.1.0
12452
- */ /**
12608
+ * @version 204.0.0
12609
+ *//**
12453
12610
  * Constructs a new GeolocationApi.
12454
12611
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
12455
12612
  * @class
@@ -12482,8 +12639,8 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
12482
12639
  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(){/**
12483
12640
  * Greetings service.
12484
12641
  * @module purecloud-platform-client-v2/api/GreetingsApi
12485
- * @version 202.1.0
12486
- */ /**
12642
+ * @version 204.0.0
12643
+ *//**
12487
12644
  * Constructs a new GreetingsApi.
12488
12645
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
12489
12646
  * @class
@@ -12589,8 +12746,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
12589
12746
  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(){/**
12590
12747
  * Groups service.
12591
12748
  * @module purecloud-platform-client-v2/api/GroupsApi
12592
- * @version 202.1.0
12593
- */ /**
12749
+ * @version 204.0.0
12750
+ *//**
12594
12751
  * Constructs a new GroupsApi.
12595
12752
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
12596
12753
  * @class
@@ -12722,8 +12879,8 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
12722
12879
  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(){/**
12723
12880
  * IdentityProvider service.
12724
12881
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
12725
- * @version 202.1.0
12726
- */ /**
12882
+ * @version 204.0.0
12883
+ *//**
12727
12884
  * Constructs a new IdentityProviderApi.
12728
12885
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
12729
12886
  * @class
@@ -12878,8 +13035,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12878
13035
  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(){/**
12879
13036
  * InfrastructureAsCode service.
12880
13037
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
12881
- * @version 202.1.0
12882
- */ /**
13038
+ * @version 204.0.0
13039
+ *//**
12883
13040
  * Constructs a new InfrastructureAsCodeApi.
12884
13041
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
12885
13042
  * @class
@@ -12932,8 +13089,8 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
12932
13089
  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(){/**
12933
13090
  * Integrations service.
12934
13091
  * @module purecloud-platform-client-v2/api/IntegrationsApi
12935
- * @version 202.1.0
12936
- */ /**
13092
+ * @version 204.0.0
13093
+ *//**
12937
13094
  * Constructs a new IntegrationsApi.
12938
13095
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
12939
13096
  * @class
@@ -13546,8 +13703,8 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
13546
13703
  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(){/**
13547
13704
  * Journey service.
13548
13705
  * @module purecloud-platform-client-v2/api/JourneyApi
13549
- * @version 202.1.0
13550
- */ /**
13706
+ * @version 204.0.0
13707
+ *//**
13551
13708
  * Constructs a new JourneyApi.
13552
13709
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
13553
13710
  * @class
@@ -13584,7 +13741,6 @@ if(segmentId===undefined||segmentId===null){throw'Missing the required parameter
13584
13741
  * Delete a Journey View by ID
13585
13742
  * deletes all versions
13586
13743
  * @param {String} viewId viewId
13587
- * deleteJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13588
13744
  */},{key:"deleteJourneyView",value:function deleteJourneyView(viewId){// verify the required parameter 'viewId' is set
13589
13745
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling deleteJourneyView';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}','DELETE',{'viewId':viewId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13590
13746
  * Get status for async query for journey aggregates
@@ -13750,14 +13906,12 @@ if(sessionId===undefined||sessionId===null){throw'Missing the required parameter
13750
13906
  * Get a Journey View by ID
13751
13907
  * returns the latest version
13752
13908
  * @param {String} viewId viewId
13753
- * getJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13754
13909
  */},{key:"getJourneyView",value:function getJourneyView(viewId){// verify the required parameter 'viewId' is set
13755
13910
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyView';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}','GET',{'viewId':viewId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13756
13911
  * Get a Journey View by ID and version
13757
13912
  *
13758
13913
  * @param {String} viewId viewId
13759
13914
  * @param {String} versionId versionId
13760
- * getJourneyViewVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13761
13915
  */},{key:"getJourneyViewVersion",value:function getJourneyViewVersion(viewId,versionId){// verify the required parameter 'viewId' is set
13762
13916
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';}// verify the required parameter 'versionId' is set
13763
13917
  if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','GET',{'viewId':viewId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -13766,7 +13920,6 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
13766
13920
  * @param {String} viewId Journey View Id
13767
13921
  * @param {String} journeyVersionId Journey View Version
13768
13922
  * @param {String} jobId JobId
13769
- * getJourneyViewVersionJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13770
13923
  */},{key:"getJourneyViewVersionJob",value:function getJourneyViewVersionJob(viewId,journeyVersionId,jobId){// verify the required parameter 'viewId' is set
13771
13924
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';}// verify the required parameter 'journeyVersionId' is set
13772
13925
  if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';}// verify the required parameter 'jobId' is set
@@ -13776,7 +13929,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
13776
13929
  * @param {String} viewId JourneyViewResult id
13777
13930
  * @param {String} journeyViewVersion Journey View Version
13778
13931
  * @param {String} jobId Id of the executing job
13779
- * getJourneyViewVersionJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13780
13932
  */},{key:"getJourneyViewVersionJobResults",value:function getJourneyViewVersionJobResults(viewId,journeyViewVersion,jobId){// verify the required parameter 'viewId' is set
13781
13933
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';}// verify the required parameter 'journeyViewVersion' is set
13782
13934
  if(journeyViewVersion===undefined||journeyViewVersion===null){throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';}// verify the required parameter 'jobId' is set
@@ -13785,7 +13937,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
13785
13937
  * used for long descriptions
13786
13938
  * @param {String} viewId Journey View Id
13787
13939
  * @param {String} journeyVersionId Journey View Version
13788
- * getJourneyViewVersionJobsLatest is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13789
13940
  */},{key:"getJourneyViewVersionJobsLatest",value:function getJourneyViewVersionJobsLatest(viewId,journeyVersionId){// verify the required parameter 'viewId' is set
13790
13941
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';}// verify the required parameter 'journeyVersionId' is set
13791
13942
  if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobsLatest';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/latest','GET',{'viewId':viewId,'journeyVersionId':journeyVersionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -13796,8 +13947,8 @@ if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the requ
13796
13947
  * @param {Number} opts.pageSize Page size (default to 25)
13797
13948
  * @param {String} opts.nameOrCreatedBy Journey View Name or Created By
13798
13949
  * @param {Object} opts.expand Parameter to request additional data to return in Journey payload
13799
- * getJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13800
- */},{key:"getJourneyViews",value:function getJourneyViews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'nameOrCreatedBy':opts['nameOrCreatedBy'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13950
+ * @param {String} opts.id Parameter to request a list of Journey Views by id, separated by commas. Limit of 100 items.
13951
+ */},{key:"getJourneyViews",value:function getJourneyViews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'nameOrCreatedBy':opts['nameOrCreatedBy'],'expand':opts['expand'],'id':opts['id']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13801
13952
  * Get an Event Definition
13802
13953
  *
13803
13954
  * @param {String} eventDefinitionId Event Definition ID
@@ -13815,7 +13966,6 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
13815
13966
  * @param {Number} opts.pageSize Max number of entities to return (default to 25)
13816
13967
  * @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
13817
13968
  * @param {String} opts.statuses Job statuses to filter for
13818
- * getJourneyViewsJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13819
13969
  */},{key:"getJourneyViewsJobs",value:function getJourneyViewsJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/jobs','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'interval':opts['interval'],'statuses':opts['statuses']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13820
13970
  * Update single action map.
13821
13971
  *
@@ -13929,7 +14079,6 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
13929
14079
  * used for long descriptions
13930
14080
  * @param {String} viewId Journey View Id
13931
14081
  * @param {String} journeyVersionId Journey View Version
13932
- * postJourneyViewVersionJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13933
14082
  */},{key:"postJourneyViewVersionJobs",value:function postJourneyViewVersionJobs(viewId,journeyVersionId){// verify the required parameter 'viewId' is set
13934
14083
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';}// verify the required parameter 'journeyVersionId' is set
13935
14084
  if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the required parameter "journeyVersionId" when calling postJourneyViewVersionJobs';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs','POST',{'viewId':viewId,'journeyVersionId':journeyVersionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -13937,14 +14086,12 @@ if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the requ
13937
14086
  * creates a new version
13938
14087
  * @param {String} viewId viewId
13939
14088
  * @param {Object} body JourneyView
13940
- * postJourneyViewVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13941
14089
  */},{key:"postJourneyViewVersions",value:function postJourneyViewVersions(viewId,body){// verify the required parameter 'viewId' is set
13942
14090
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';}// verify the required parameter 'body' is set
13943
14091
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postJourneyViewVersions';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions','POST',{'viewId':viewId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13944
14092
  * Create a new Journey View
13945
14093
  *
13946
14094
  * @param {Object} body JourneyView
13947
- * postJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
13948
14095
  */},{key:"postJourneyViews",value:function postJourneyViews(body){// verify the required parameter 'body' is set
13949
14096
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postJourneyViews';}return this.apiClient.callApi('/api/v2/journey/views','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13950
14097
  * Validate whether an encoding exist for a label/value combination.
@@ -13955,8 +14102,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13955
14102
  */},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
13956
14103
  * Knowledge service.
13957
14104
  * @module purecloud-platform-client-v2/api/KnowledgeApi
13958
- * @version 202.1.0
13959
- */ /**
14105
+ * @version 204.0.0
14106
+ *//**
13960
14107
  * Constructs a new KnowledgeApi.
13961
14108
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
13962
14109
  * @class
@@ -14476,6 +14623,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14476
14623
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';}// verify the required parameter 'documentId' is set
14477
14624
  if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';}// verify the required parameter 'body' is set
14478
14625
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseDocument';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}','PATCH',{'knowledgeBaseId':knowledgeBaseId,'documentId':documentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14626
+ * Update feedback on a document
14627
+ *
14628
+ * @param {String} knowledgeBaseId Knowledge base ID.
14629
+ * @param {String} documentId Document ID.
14630
+ * @param {String} feedbackId Feedback ID.
14631
+ * @param {Object} opts Optional parameters
14632
+ * @param {Object} opts.body
14633
+ */},{key:"patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId",value:function patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(knowledgeBaseId,documentId,feedbackId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
14634
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';}// verify the required parameter 'documentId' is set
14635
+ if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';}// verify the required parameter 'feedbackId' is set
14636
+ if(feedbackId===undefined||feedbackId===null){throw'Missing the required parameter "feedbackId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}','PATCH',{'knowledgeBaseId':knowledgeBaseId,'documentId':documentId,'feedbackId':feedbackId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
14479
14637
  * Update a variation for a document.
14480
14638
  *
14481
14639
  * @param {String} documentVariationId Globally unique identifier for a document variation.
@@ -14613,6 +14771,13 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
14613
14771
  */},{key:"postKnowledgeGuestSessionDocumentViews",value:function postKnowledgeGuestSessionDocumentViews(sessionId,documentId,opts){opts=opts||{};// verify the required parameter 'sessionId' is set
14614
14772
  if(sessionId===undefined||sessionId===null){throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';}// verify the required parameter 'documentId' is set
14615
14773
  if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentViews';}return this.apiClient.callApi('/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views','POST',{'sessionId':sessionId,'documentId':documentId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
14774
+ * Answer documents.
14775
+ *
14776
+ * @param {String} sessionId Knowledge guest session ID.
14777
+ * @param {Object} body
14778
+ */},{key:"postKnowledgeGuestSessionDocumentsAnswers",value:function postKnowledgeGuestSessionDocumentsAnswers(sessionId,body){// verify the required parameter 'sessionId' is set
14779
+ if(sessionId===undefined||sessionId===null){throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';}// verify the required parameter 'body' is set
14780
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeGuestSessionDocumentsAnswers';}return this.apiClient.callApi('/api/v2/knowledge/guest/sessions/{sessionId}/documents/answers','POST',{'sessionId':sessionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14616
14781
  * Indicate that documents were presented to the user.
14617
14782
  *
14618
14783
  * @param {String} sessionId Knowledge guest session ID.
@@ -14699,6 +14864,13 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
14699
14864
  */},{key:"postKnowledgeKnowledgebaseDocuments",value:function postKnowledgeKnowledgebaseDocuments(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
14700
14865
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';}// verify the required parameter 'body' is set
14701
14866
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14867
+ * Answer documents.
14868
+ *
14869
+ * @param {String} knowledgeBaseId Knowledge base ID
14870
+ * @param {Object} body
14871
+ */},{key:"postKnowledgeKnowledgebaseDocumentsAnswers",value:function postKnowledgeKnowledgebaseDocumentsAnswers(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
14872
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';}// verify the required parameter 'body' is set
14873
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14702
14874
  * Bulk remove documents.
14703
14875
  *
14704
14876
  * @param {String} knowledgeBaseId Knowledge base ID
@@ -14722,6 +14894,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14722
14894
  * @param {Object} opts.body
14723
14895
  */},{key:"postKnowledgeKnowledgebaseDocumentsPresentations",value:function postKnowledgeKnowledgebaseDocumentsPresentations(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
14724
14896
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsPresentations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/presentations','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
14897
+ * Query for knowledge documents.
14898
+ *
14899
+ * @param {String} knowledgeBaseId Knowledge Base ID
14900
+ * @param {Object} opts Optional parameters
14901
+ * @param {Array.<String>} opts.expand Fields, if any, to expand for each document in the search result matching the query.
14902
+ * @param {Object} opts.body
14903
+ */},{key:"postKnowledgeKnowledgebaseDocumentsQuery",value:function postKnowledgeKnowledgebaseDocumentsQuery(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
14904
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsQuery';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/query','POST',{'knowledgeBaseId':knowledgeBaseId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
14725
14905
  * Search the documents in a knowledge base.
14726
14906
  *
14727
14907
  * @param {String} knowledgeBaseId The ID of knowledge base containing the documents to query.
@@ -14868,8 +15048,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14868
15048
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
14869
15049
  * LanguageUnderstanding service.
14870
15050
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
14871
- * @version 202.1.0
14872
- */ /**
15051
+ * @version 204.0.0
15052
+ *//**
14873
15053
  * Constructs a new LanguageUnderstandingApi.
14874
15054
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
14875
15055
  * @class
@@ -15128,8 +15308,8 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
15128
15308
  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(){/**
15129
15309
  * Languages service.
15130
15310
  * @module purecloud-platform-client-v2/api/LanguagesApi
15131
- * @version 202.1.0
15132
- */ /**
15311
+ * @version 204.0.0
15312
+ *//**
15133
15313
  * Constructs a new LanguagesApi.
15134
15314
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
15135
15315
  * @class
@@ -15183,8 +15363,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
15183
15363
  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(){/**
15184
15364
  * Learning service.
15185
15365
  * @module purecloud-platform-client-v2/api/LearningApi
15186
- * @version 202.1.0
15187
- */ /**
15366
+ * @version 204.0.0
15367
+ *//**
15188
15368
  * Constructs a new LearningApi.
15189
15369
  * @alias module:purecloud-platform-client-v2/api/LearningApi
15190
15370
  * @class
@@ -15454,8 +15634,8 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
15454
15634
  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(){/**
15455
15635
  * License service.
15456
15636
  * @module purecloud-platform-client-v2/api/LicenseApi
15457
- * @version 202.1.0
15458
- */ /**
15637
+ * @version 204.0.0
15638
+ *//**
15459
15639
  * Constructs a new LicenseApi.
15460
15640
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
15461
15641
  * @class
@@ -15508,8 +15688,8 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
15508
15688
  */},{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(){/**
15509
15689
  * Locations service.
15510
15690
  * @module purecloud-platform-client-v2/api/LocationsApi
15511
- * @version 202.1.0
15512
- */ /**
15691
+ * @version 204.0.0
15692
+ *//**
15513
15693
  * Constructs a new LocationsApi.
15514
15694
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
15515
15695
  * @class
@@ -15567,8 +15747,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15567
15747
  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(){/**
15568
15748
  * LogCapture service.
15569
15749
  * @module purecloud-platform-client-v2/api/LogCaptureApi
15570
- * @version 202.1.0
15571
- */ /**
15750
+ * @version 204.0.0
15751
+ *//**
15572
15752
  * Constructs a new LogCaptureApi.
15573
15753
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
15574
15754
  * @class
@@ -15617,8 +15797,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
15617
15797
  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(){/**
15618
15798
  * Messaging service.
15619
15799
  * @module purecloud-platform-client-v2/api/MessagingApi
15620
- * @version 202.1.0
15621
- */ /**
15800
+ * @version 204.0.0
15801
+ *//**
15622
15802
  * Constructs a new MessagingApi.
15623
15803
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
15624
15804
  * @class
@@ -15707,8 +15887,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15707
15887
  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(){/**
15708
15888
  * MobileDevices service.
15709
15889
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
15710
- * @version 202.1.0
15711
- */ /**
15890
+ * @version 204.0.0
15891
+ *//**
15712
15892
  * Constructs a new MobileDevicesApi.
15713
15893
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
15714
15894
  * @class
@@ -15746,8 +15926,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15746
15926
  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(){/**
15747
15927
  * Notifications service.
15748
15928
  * @module purecloud-platform-client-v2/api/NotificationsApi
15749
- * @version 202.1.0
15750
- */ /**
15929
+ * @version 204.0.0
15930
+ *//**
15751
15931
  * Constructs a new NotificationsApi.
15752
15932
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
15753
15933
  * @class
@@ -15803,8 +15983,8 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
15803
15983
  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(){/**
15804
15984
  * OAuth service.
15805
15985
  * @module purecloud-platform-client-v2/api/OAuthApi
15806
- * @version 202.1.0
15807
- */ /**
15986
+ * @version 204.0.0
15987
+ *//**
15808
15988
  * Constructs a new OAuthApi.
15809
15989
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
15810
15990
  * @class
@@ -15888,8 +16068,8 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
15888
16068
  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(){/**
15889
16069
  * Objects service.
15890
16070
  * @module purecloud-platform-client-v2/api/ObjectsApi
15891
- * @version 202.1.0
15892
- */ /**
16071
+ * @version 204.0.0
16072
+ *//**
15893
16073
  * Constructs a new ObjectsApi.
15894
16074
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
15895
16075
  * @class
@@ -15959,8 +16139,8 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
15959
16139
  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(){/**
15960
16140
  * OperationalEvents service.
15961
16141
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
15962
- * @version 202.1.0
15963
- */ /**
16142
+ * @version 204.0.0
16143
+ *//**
15964
16144
  * Constructs a new OperationalEventsApi.
15965
16145
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
15966
16146
  * @class
@@ -15977,8 +16157,8 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
15977
16157
  */},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
15978
16158
  * Organization service.
15979
16159
  * @module purecloud-platform-client-v2/api/OrganizationApi
15980
- * @version 202.1.0
15981
- */ /**
16160
+ * @version 204.0.0
16161
+ *//**
15982
16162
  * Constructs a new OrganizationApi.
15983
16163
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
15984
16164
  * @class
@@ -16102,8 +16282,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16102
16282
  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(){/**
16103
16283
  * OrganizationAuthorization service.
16104
16284
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
16105
- * @version 202.1.0
16106
- */ /**
16285
+ * @version 204.0.0
16286
+ *//**
16107
16287
  * Constructs a new OrganizationAuthorizationApi.
16108
16288
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
16109
16289
  * @class
@@ -16425,8 +16605,8 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
16425
16605
  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(){/**
16426
16606
  * Outbound service.
16427
16607
  * @module purecloud-platform-client-v2/api/OutboundApi
16428
- * @version 202.1.0
16429
- */ /**
16608
+ * @version 204.0.0
16609
+ *//**
16430
16610
  * Constructs a new OutboundApi.
16431
16611
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
16432
16612
  * @class
@@ -17504,8 +17684,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17504
17684
  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(){/**
17505
17685
  * Presence service.
17506
17686
  * @module purecloud-platform-client-v2/api/PresenceApi
17507
- * @version 202.1.0
17508
- */ /**
17687
+ * @version 204.0.0
17688
+ *//**
17509
17689
  * Constructs a new PresenceApi.
17510
17690
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
17511
17691
  * @class
@@ -17677,8 +17857,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17677
17857
  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(){/**
17678
17858
  * ProcessAutomation service.
17679
17859
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
17680
- * @version 202.1.0
17681
- */ /**
17860
+ * @version 204.0.0
17861
+ *//**
17682
17862
  * Constructs a new ProcessAutomationApi.
17683
17863
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
17684
17864
  * @class
@@ -17740,8 +17920,8 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
17740
17920
  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(){/**
17741
17921
  * Quality service.
17742
17922
  * @module purecloud-platform-client-v2/api/QualityApi
17743
- * @version 202.1.0
17744
- */ /**
17923
+ * @version 204.0.0
17924
+ *//**
17745
17925
  * Constructs a new QualityApi.
17746
17926
  * @alias module:purecloud-platform-client-v2/api/QualityApi
17747
17927
  * @class
@@ -18217,8 +18397,8 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
18217
18397
  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(){/**
18218
18398
  * Recording service.
18219
18399
  * @module purecloud-platform-client-v2/api/RecordingApi
18220
- * @version 202.1.0
18221
- */ /**
18400
+ * @version 204.0.0
18401
+ *//**
18222
18402
  * Constructs a new RecordingApi.
18223
18403
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
18224
18404
  * @class
@@ -18629,8 +18809,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18629
18809
  */},{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(){/**
18630
18810
  * ResponseManagement service.
18631
18811
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
18632
- * @version 202.1.0
18633
- */ /**
18812
+ * @version 204.0.0
18813
+ *//**
18634
18814
  * Constructs a new ResponseManagementApi.
18635
18815
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
18636
18816
  * @class
@@ -18750,8 +18930,8 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
18750
18930
  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(){/**
18751
18931
  * Routing service.
18752
18932
  * @module purecloud-platform-client-v2/api/RoutingApi
18753
- * @version 202.1.0
18754
- */ /**
18933
+ * @version 204.0.0
18934
+ *//**
18755
18935
  * Constructs a new RoutingApi.
18756
18936
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
18757
18937
  * @class
@@ -19038,6 +19218,13 @@ if(predictorId===undefined||predictorId===null){throw'Missing the required param
19038
19218
  * @param {String} queueId Queue ID
19039
19219
  */},{key:"getRoutingQueue",value:function getRoutingQueue(queueId){// verify the required parameter 'queueId' is set
19040
19220
  if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueue';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}','GET',{'queueId':queueId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19221
+ * Get an assistant associated with a queue.
19222
+ *
19223
+ * @param {String} queueId Queue ID
19224
+ * @param {Object} opts Optional parameters
19225
+ * @param {Object} opts.expand Which fields, if any, to expand.
19226
+ */},{key:"getRoutingQueueAssistant",value:function getRoutingQueueAssistant(queueId,opts){opts=opts||{};// verify the required parameter 'queueId' is set
19227
+ if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueueAssistant';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}/assistant','GET',{'queueId':queueId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19041
19228
  * Get a Comparison Period.
19042
19229
  *
19043
19230
  * @param {String} queueId Queue id
@@ -19747,8 +19934,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
19747
19934
  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(){/**
19748
19935
  * SCIM service.
19749
19936
  * @module purecloud-platform-client-v2/api/SCIMApi
19750
- * @version 202.1.0
19751
- */ /**
19937
+ * @version 204.0.0
19938
+ *//**
19752
19939
  * Constructs a new SCIMApi.
19753
19940
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
19754
19941
  * @class
@@ -19972,8 +20159,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
19972
20159
  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(){/**
19973
20160
  * ScreenRecording service.
19974
20161
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
19975
- * @version 202.1.0
19976
- */ /**
20162
+ * @version 204.0.0
20163
+ *//**
19977
20164
  * Constructs a new ScreenRecordingApi.
19978
20165
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
19979
20166
  * @class
@@ -19987,8 +20174,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19987
20174
  */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(){/**
19988
20175
  * Scripts service.
19989
20176
  * @module purecloud-platform-client-v2/api/ScriptsApi
19990
- * @version 202.1.0
19991
- */ /**
20177
+ * @version 204.0.0
20178
+ *//**
19992
20179
  * Constructs a new ScriptsApi.
19993
20180
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
19994
20181
  * @class
@@ -20123,8 +20310,8 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
20123
20310
  */},{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(){/**
20124
20311
  * Search service.
20125
20312
  * @module purecloud-platform-client-v2/api/SearchApi
20126
- * @version 202.1.0
20127
- */ /**
20313
+ * @version 204.0.0
20314
+ *//**
20128
20315
  * Constructs a new SearchApi.
20129
20316
  * @alias module:purecloud-platform-client-v2/api/SearchApi
20130
20317
  * @class
@@ -20283,8 +20470,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20283
20470
  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(){/**
20284
20471
  * Settings service.
20285
20472
  * @module purecloud-platform-client-v2/api/SettingsApi
20286
- * @version 202.1.0
20287
- */ /**
20473
+ * @version 204.0.0
20474
+ *//**
20288
20475
  * Constructs a new SettingsApi.
20289
20476
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
20290
20477
  * @class
@@ -20301,7 +20488,6 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
20301
20488
  */},{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20302
20489
  * Get the execution history enabled setting.
20303
20490
  * Get the execution history enabled setting.
20304
- * getSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20305
20491
  */},{key:"getSettingsExecutiondata",value:function getSettingsExecutiondata(){return this.apiClient.callApi('/api/v2/settings/executiondata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20306
20492
  * Get agent auto answer settings
20307
20493
  *
@@ -20316,7 +20502,6 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
20316
20502
  * Edit the execution history on off setting.
20317
20503
  * Edit the execution history on off setting.
20318
20504
  * @param {Object} body New Execution Data Setting
20319
- * patchSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20320
20505
  */},{key:"patchSettingsExecutiondata",value:function patchSettingsExecutiondata(body){// verify the required parameter 'body' is set
20321
20506
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20322
20507
  * Update agent auto answer settings
@@ -20335,8 +20520,8 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
20335
20520
  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 SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
20336
20521
  * SpeechTextAnalytics service.
20337
20522
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
20338
- * @version 202.1.0
20339
- */ /**
20523
+ * @version 204.0.0
20524
+ *//**
20340
20525
  * Constructs a new SpeechTextAnalyticsApi.
20341
20526
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
20342
20527
  * @class
@@ -20619,8 +20804,8 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
20619
20804
  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(){/**
20620
20805
  * Stations service.
20621
20806
  * @module purecloud-platform-client-v2/api/StationsApi
20622
- * @version 202.1.0
20623
- */ /**
20807
+ * @version 204.0.0
20808
+ *//**
20624
20809
  * Constructs a new StationsApi.
20625
20810
  * @alias module:purecloud-platform-client-v2/api/StationsApi
20626
20811
  * @class
@@ -20651,8 +20836,8 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
20651
20836
  */},{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(){/**
20652
20837
  * Suggest service.
20653
20838
  * @module purecloud-platform-client-v2/api/SuggestApi
20654
- * @version 202.1.0
20655
- */ /**
20839
+ * @version 204.0.0
20840
+ *//**
20656
20841
  * Constructs a new SuggestApi.
20657
20842
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
20658
20843
  * @class
@@ -20691,8 +20876,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20691
20876
  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(){/**
20692
20877
  * TaskManagement service.
20693
20878
  * @module purecloud-platform-client-v2/api/TaskManagementApi
20694
- * @version 202.1.0
20695
- */ /**
20879
+ * @version 204.0.0
20880
+ *//**
20696
20881
  * Constructs a new TaskManagementApi.
20697
20882
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
20698
20883
  * @class
@@ -21021,8 +21206,8 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
21021
21206
  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(){/**
21022
21207
  * Teams service.
21023
21208
  * @module purecloud-platform-client-v2/api/TeamsApi
21024
- * @version 202.1.0
21025
- */ /**
21209
+ * @version 204.0.0
21210
+ *//**
21026
21211
  * Constructs a new TeamsApi.
21027
21212
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
21028
21213
  * @class
@@ -21099,8 +21284,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21099
21284
  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(){/**
21100
21285
  * Telephony service.
21101
21286
  * @module purecloud-platform-client-v2/api/TelephonyApi
21102
- * @version 202.1.0
21103
- */ /**
21287
+ * @version 204.0.0
21288
+ *//**
21104
21289
  * Constructs a new TelephonyApi.
21105
21290
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
21106
21291
  * @class
@@ -21146,8 +21331,8 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
21146
21331
  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(){/**
21147
21332
  * TelephonyProvidersEdge service.
21148
21333
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
21149
- * @version 202.1.0
21150
- */ /**
21334
+ * @version 204.0.0
21335
+ *//**
21151
21336
  * Constructs a new TelephonyProvidersEdgeApi.
21152
21337
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
21153
21338
  * @class
@@ -21956,8 +22141,8 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
21956
22141
  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(){/**
21957
22142
  * Textbots service.
21958
22143
  * @module purecloud-platform-client-v2/api/TextbotsApi
21959
- * @version 202.1.0
21960
- */ /**
22144
+ * @version 204.0.0
22145
+ *//**
21961
22146
  * Constructs a new TextbotsApi.
21962
22147
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
21963
22148
  * @class
@@ -21991,8 +22176,8 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
21991
22176
  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(){/**
21992
22177
  * Tokens service.
21993
22178
  * @module purecloud-platform-client-v2/api/TokensApi
21994
- * @version 202.1.0
21995
- */ /**
22179
+ * @version 204.0.0
22180
+ *//**
21996
22181
  * Constructs a new TokensApi.
21997
22182
  * @alias module:purecloud-platform-client-v2/api/TokensApi
21998
22183
  * @class
@@ -22025,8 +22210,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
22025
22210
  */},{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(){/**
22026
22211
  * Uploads service.
22027
22212
  * @module purecloud-platform-client-v2/api/UploadsApi
22028
- * @version 202.1.0
22029
- */ /**
22213
+ * @version 204.0.0
22214
+ *//**
22030
22215
  * Constructs a new UploadsApi.
22031
22216
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
22032
22217
  * @class
@@ -22091,8 +22276,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22091
22276
  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(){/**
22092
22277
  * Usage service.
22093
22278
  * @module purecloud-platform-client-v2/api/UsageApi
22094
- * @version 202.1.0
22095
- */ /**
22279
+ * @version 204.0.0
22280
+ *//**
22096
22281
  * Constructs a new UsageApi.
22097
22282
  * @alias module:purecloud-platform-client-v2/api/UsageApi
22098
22283
  * @class
@@ -22145,8 +22330,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22145
22330
  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(){/**
22146
22331
  * UserRecordings service.
22147
22332
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
22148
- * @version 202.1.0
22149
- */ /**
22333
+ * @version 204.0.0
22334
+ *//**
22150
22335
  * Constructs a new UserRecordingsApi.
22151
22336
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
22152
22337
  * @class
@@ -22202,8 +22387,8 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
22202
22387
  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(){/**
22203
22388
  * Users service.
22204
22389
  * @module purecloud-platform-client-v2/api/UsersApi
22205
- * @version 202.1.0
22206
- */ /**
22390
+ * @version 204.0.0
22391
+ *//**
22207
22392
  * Constructs a new UsersApi.
22208
22393
  * @alias module:purecloud-platform-client-v2/api/UsersApi
22209
22394
  * @class
@@ -22892,8 +23077,8 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
22892
23077
  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(){/**
22893
23078
  * Utilities service.
22894
23079
  * @module purecloud-platform-client-v2/api/UtilitiesApi
22895
- * @version 202.1.0
22896
- */ /**
23080
+ * @version 204.0.0
23081
+ *//**
22897
23082
  * Constructs a new UtilitiesApi.
22898
23083
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
22899
23084
  * @class
@@ -22919,8 +23104,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22919
23104
  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(){/**
22920
23105
  * Voicemail service.
22921
23106
  * @module purecloud-platform-client-v2/api/VoicemailApi
22922
- * @version 202.1.0
22923
- */ /**
23107
+ * @version 204.0.0
23108
+ *//**
22924
23109
  * Constructs a new VoicemailApi.
22925
23110
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
22926
23111
  * @class
@@ -23068,8 +23253,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
23068
23253
  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(){/**
23069
23254
  * WebChat service.
23070
23255
  * @module purecloud-platform-client-v2/api/WebChatApi
23071
- * @version 202.1.0
23072
- */ /**
23256
+ * @version 204.0.0
23257
+ *//**
23073
23258
  * Constructs a new WebChatApi.
23074
23259
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
23075
23260
  * @class
@@ -23203,8 +23388,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23203
23388
  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(){/**
23204
23389
  * WebDeployments service.
23205
23390
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
23206
- * @version 202.1.0
23207
- */ /**
23391
+ * @version 204.0.0
23392
+ *//**
23208
23393
  * Constructs a new WebDeploymentsApi.
23209
23394
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
23210
23395
  * @class
@@ -23324,8 +23509,8 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
23324
23509
  if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
23325
23510
  * WebMessaging service.
23326
23511
  * @module purecloud-platform-client-v2/api/WebMessagingApi
23327
- * @version 202.1.0
23328
- */ /**
23512
+ * @version 204.0.0
23513
+ *//**
23329
23514
  * Constructs a new WebMessagingApi.
23330
23515
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
23331
23516
  * @class
@@ -23340,8 +23525,8 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
23340
23525
  */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(){/**
23341
23526
  * Widgets service.
23342
23527
  * @module purecloud-platform-client-v2/api/WidgetsApi
23343
- * @version 202.1.0
23344
- */ /**
23528
+ * @version 204.0.0
23529
+ *//**
23345
23530
  * Constructs a new WidgetsApi.
23346
23531
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
23347
23532
  * @class
@@ -23375,8 +23560,8 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
23375
23560
  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(){/**
23376
23561
  * WorkforceManagement service.
23377
23562
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
23378
- * @version 202.1.0
23379
- */ /**
23563
+ * @version 204.0.0
23564
+ *//**
23380
23565
  * Constructs a new WorkforceManagementApi.
23381
23566
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
23382
23567
  * @class
@@ -25141,7 +25326,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
25141
25326
  * </pre>
25142
25327
  * </p>
25143
25328
  * @module purecloud-platform-client-v2/index
25144
- * @version 202.1.0
25329
+ * @version 204.0.0
25145
25330
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
25146
25331
  * The ApiClient constructor.
25147
25332
  * @property {module:purecloud-platform-client-v2/ApiClient}
@@ -25149,6 +25334,12 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
25149
25334
  * The ApiClient class.
25150
25335
  * @property {module:purecloud-platform-client-v2/ApiClient}
25151
25336
  */this.ApiClientClass=ApiClient;/**
25337
+ * The AgentAssistantsApi service constructor.
25338
+ * @property {module:purecloud-platform-client-v2/api/AgentAssistantsApi}
25339
+ */this.AgentAssistantsApi=AgentAssistantsApi;/**
25340
+ * The AgentCopilotApi service constructor.
25341
+ * @property {module:purecloud-platform-client-v2/api/AgentCopilotApi}
25342
+ */this.AgentCopilotApi=AgentCopilotApi;/**
25152
25343
  * The AgentUIApi service constructor.
25153
25344
  * @property {module:purecloud-platform-client-v2/api/AgentUIApi}
25154
25345
  */this.AgentUIApi=AgentUIApi;/**