purecloud-platform-client-v2 203.0.0 → 204.0.1

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 +8 -10
  2. package/dist/node/purecloud-platform-client-v2.js +810 -95
  3. package/dist/web-amd/purecloud-platform-client-v2.js +810 -95
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +436 -250
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +2364 -2178
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +556 -221
  9. package/package.json +5 -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 -1
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +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 +100 -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
@@ -298,7 +298,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
298
298
  *
299
299
  * @param {Boolean} [allOwnKeys = false]
300
300
  * @returns {any}
301
- */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
301
+ */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
302
302
  if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
303
303
  if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray(obj)){// Iterate over array values
304
304
  for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Iterate over object keys
@@ -319,7 +319,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
319
319
  * @param {Object} obj1 Object to merge
320
320
  *
321
321
  * @returns {Object} Result of all merge properties
322
- */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;}/**
322
+ */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;}/**
323
323
  * Extends object a by mutably adding to it the properties of object b.
324
324
  *
325
325
  * @param {Object} a The object to be extended
@@ -328,7 +328,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
328
328
  *
329
329
  * @param {Boolean} [allOwnKeys]
330
330
  * @returns {Object} The resulting value of object a
331
- */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;};/**
331
+ */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;};/**
332
332
  * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
333
333
  *
334
334
  * @param {string} content with BOM
@@ -372,7 +372,7 @@ if(sourceObj==null)return destObj;do{props=Object.getOwnPropertyNames(sourceObj)
372
372
  * @param {TypedArray}
373
373
  *
374
374
  * @returns {Array}
375
- */ // eslint-disable-next-line func-names
375
+ */// eslint-disable-next-line func-names
376
376
  var isTypedArray=function(TypedArray){// eslint-disable-next-line func-names
377
377
  return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!=='undefined'&&getPrototypeOf(Uint8Array));/**
378
378
  * For each entry in the object, call the function with the key and value.
@@ -388,7 +388,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
388
388
  * @param {string} str - The string to search.
389
389
  *
390
390
  * @returns {Array<boolean>}
391
- */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);/**
391
+ */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);/**
392
392
  * Determine if a value is a RegExp object
393
393
  *
394
394
  * @param {*} val The value to test
@@ -406,7 +406,7 @@ if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return f
406
406
  * @returns {boolean}
407
407
  */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
408
408
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
409
- 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;// *********************
409
+ 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;// *********************
410
410
  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
411
411
  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};/**
412
412
  * Create an Error with the specified message, config, error code, request and response.
@@ -418,11 +418,11 @@ reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toOb
418
418
  * @param {Object} [response] The response.
419
419
  *
420
420
  * @returns {Error} The created error.
421
- */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
421
+ */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
422
422
  message:this.message,name:this.name,// Microsoft
423
423
  description:this.description,number:this.number,// Mozilla
424
424
  fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
425
- 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
425
+ 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
426
426
  ].forEach(function(code){descriptors[code]={value:code};});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,'isAxiosError',{value:true});// eslint-disable-next-line func-names
427
427
  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
428
428
  var httpAdapter=null;/**
@@ -464,7 +464,7 @@ token=removeBrackets(token);return!dots&&i?'['+token+']':token;}).join(dots?'.':
464
464
  * @param {?Boolean} [options.indexes = false]
465
465
  *
466
466
  * @returns {Object}
467
- **/ /**
467
+ **//**
468
468
  * It converts an object into a FormData object
469
469
  *
470
470
  * @param {Object<any, any>} obj - The object to convert to form data.
@@ -544,7 +544,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
544
544
  * @param {Function} fn The function to call for each interceptor
545
545
  *
546
546
  * @returns {void}
547
- */},{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';/**
547
+ */},{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;/**
548
548
  * Determine if we're running in a standard browser environment
549
549
  *
550
550
  * This allows axios to run in a web worker, and react-native.
@@ -560,7 +560,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
560
560
  * navigator.product -> 'NativeScript' or 'NS'
561
561
  *
562
562
  * @returns {boolean}
563
- */var hasStandardBrowserEnv=function(product){return hasBrowserEnv&&['ReactNative','NativeScript','NS'].indexOf(product)<0;}(typeof navigator!=='undefined'&&navigator.product);/**
563
+ */var hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||['ReactNative','NativeScript','NS'].indexOf(_navigator.product)<0);/**
564
564
  * Determine if we're running in a standard browser webWorker environment
565
565
  *
566
566
  * Although the `isStandardBrowserEnv` method indicates that
@@ -569,7 +569,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
569
569
  * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
570
570
  * This leads to a problem when axios post `FormData` in webWorker
571
571
  */var hasStandardBrowserWebWorkerEnv=function(){return typeof WorkerGlobalScope!=='undefined'&&// eslint-disable-next-line no-undef
572
- 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));}/**
572
+ 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));}/**
573
573
  * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
574
574
  *
575
575
  * @param {string} name - The name of the property to get.
@@ -618,8 +618,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
618
618
  * @param {String} rawHeaders Headers needing to be parsed
619
619
  *
620
620
  * @returns {Object} Headers parsed into an object
621
- */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
622
- utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref9,key){var value=_ref9.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
621
+ */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
622
+ utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref10,key){var value=_ref10.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
623
623
  return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
624
624
  * Transform the data for a request or a response
625
625
  *
@@ -656,7 +656,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
656
656
  * @return {Function}
657
657
  */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
658
658
  // whether the request URL is of the same origin as current location.
659
- function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
659
+ function standardBrowserEnv(){var msie=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
660
660
  * Parse a URL to discover its components
661
661
  *
662
662
  * @param {String} url The URL to be parsed
@@ -712,7 +712,7 @@ function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue
712
712
  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
713
713
  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
714
714
  }else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
715
- 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
715
+ 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
716
716
  // This is only done if running in a standard browser environment.
717
717
  // Specifically not if we're in a web worker, or react-native.
718
718
  if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
@@ -746,9 +746,11 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
746
746
  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
747
747
  // eslint-disable-next-line func-names
748
748
  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
749
- 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
750
- 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
751
- }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};/**
749
+ 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
750
+ 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
751
+ // see https://github.com/cloudflare/workerd/issues/902
752
+ 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
753
+ }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};/**
752
754
  * Throws a `CanceledError` if cancellation has been requested.
753
755
  *
754
756
  * @param {Object} config The config that is to be used for the request
@@ -763,7 +765,7 @@ var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encod
763
765
  */function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
764
766
  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
765
767
  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
766
- 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
768
+ 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
767
769
  ['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={};/**
768
770
  * Transitional option validator
769
771
  *
@@ -795,10 +797,10 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
795
797
  * @param {?Object} config
796
798
  *
797
799
  * @returns {Promise} The Promise to be fulfilled
798
- */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
799
- stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context8.t0.stack){_context8.t0.stack=stack;// match without the 2 top stack lines
800
- }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
801
- }}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
800
+ */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
801
+ stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context9.t0.stack){_context9.t0.stack=stack;// match without the 2 top stack lines
802
+ }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
803
+ }}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
802
804
  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
803
805
  config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
804
806
  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
@@ -819,7 +821,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
819
821
  * Subscribe to the cancel signal
820
822
  */},{key:"subscribe",value:function subscribe(listener){if(this.reason){listener(this.reason);return;}if(this._listeners){this._listeners.push(listener);}else{this._listeners=[listener];}}/**
821
823
  * Unsubscribe from the cancel signal
822
- */},{key:"unsubscribe",value:function unsubscribe(listener){if(!this._listeners){return;}var index=this._listeners.indexOf(listener);if(index!==-1){this._listeners.splice(index,1);}}/**
824
+ */},{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;}/**
823
825
  * Returns an object that contains a new `CancelToken` and a function that, when called,
824
826
  * cancels the `CancelToken`.
825
827
  */}],[{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;/**
@@ -848,7 +850,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
848
850
  * @param {*} payload The value to test
849
851
  *
850
852
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
851
- */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;/**
853
+ */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;/**
852
854
  * Create an instance of Axios
853
855
  *
854
856
  * @param {Object} defaultConfig The default config for the instance
@@ -877,7 +879,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
877
879
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
878
880
  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];}}}]);}();/**
879
881
  * @module purecloud-platform-client-v2/ApiClient
880
- * @version 203.0.0
882
+ * @version 204.0.1
881
883
  */var ApiClient=/*#__PURE__*/function(){/**
882
884
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
883
885
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -953,43 +955,43 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
953
955
  * @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.
954
956
  * @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.
955
957
  * @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.
956
- */},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this=this;// Check for auth token in hash
958
+ */},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this2=this;// Check for auth token in hash
957
959
  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
958
960
  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
959
- 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
960
- _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);});});}/**
961
+ 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
962
+ _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);});});}/**
961
963
  * @description Initiates the client credentials login flow. Only available in node apps.
962
964
  * @param {string} clientId - The client ID of an OAuth Implicit Grant client
963
965
  * @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
964
- */},{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
965
- 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
966
- _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
967
- _this2.setAccessToken(response.data['access_token']);// Set expiry time
968
- _this2.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this2.authData.tokenExpiryTimeString=new Date(_this2.authData.tokenExpiryTime).toUTCString();// Return auth data
969
- resolve(_this2.authData);})["catch"](function(error){// Log error
970
- 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);});});}/**
966
+ */},{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
967
+ 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
968
+ _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
969
+ _this3.setAccessToken(response.data['access_token']);// Set expiry time
970
+ _this3.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this3.authData.tokenExpiryTimeString=new Date(_this3.authData.tokenExpiryTime).toUTCString();// Return auth data
971
+ resolve(_this3.authData);})["catch"](function(error){// Log error
972
+ 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);});});}/**
971
973
  * @description Initiates the Saml2Bearerflow. Only available in node apps.
972
974
  * @param {string} clientId - The client ID of an OAuth Implicit Grant client
973
975
  * @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
974
976
  * @param {string} orgName - The orgName of an OAuth Implicit Grant client
975
977
  * @param {string} assertion - The saml2bearer assertion
976
- */},{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
978
+ */},{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
977
979
  request.then(function(response){// Logging
978
- _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
979
- 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
980
- resolve(_this3.authData);})["catch"](function(error){// Log error
981
- 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);});});}/**
980
+ _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
981
+ 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
982
+ resolve(_this4.authData);})["catch"](function(error){// Log error
983
+ 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);});});}/**
982
984
  * @description Completes the PKCE Code Authorization.
983
985
  * @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
984
986
  * @param {string} codeVerifier - code verifier used to generate the code challenge
985
987
  * @param {string} authCode - Authorization code
986
988
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
987
- */},{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
989
+ */},{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
988
990
  request.then(function(response){// Logging
989
- _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
990
- 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
991
- resolve(_this4.authData);})["catch"](function(error){// Log error
992
- 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);});});}/**
991
+ _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
992
+ 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
993
+ resolve(_this5.authData);})["catch"](function(error){// Log error
994
+ 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);});});}/**
993
995
  * @description Generate a random string used as PKCE Code Verifier - length = 43 to 128.
994
996
  * @param {number} nChar - code length
995
997
  */},{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
@@ -1008,23 +1010,23 @@ return reject(new Error("Code Challenge Error ".concat(error)));});});}}/**
1008
1010
  * @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.
1009
1011
  * @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.
1010
1012
  * @param {string} codeVerifier - (optional) code verifier used to generate the code challenge
1011
- */},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var _this5=this;// Need Local Storage or non null codeVerifier as parameter
1013
+ */},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var _this6=this;// Need Local Storage or non null codeVerifier as parameter
1012
1014
  if(!this.hasLocalStorage&&!codeVerifier){throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");}// Check for auth code in query
1013
1015
  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
1014
1016
  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
1015
1017
  if(query&&query.error){// remove codeVerifier from session storage
1016
- if(_this5.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}// reset access token if any was stored
1017
- _this5._saveSettings({accessToken:undefined});return reject(new Error("[".concat(query.error,"] ").concat(query.error_description)));}// Get token on auth code
1018
- if(query&&query.code){if(!_this5.codeVerifier){// load codeVerifier from session storage
1019
- 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
1020
- _this5._testTokenAccess().then(function(){if(!_this5.authData.state&&query.state)_this5.authData.state=query.state;// remove codeVerifier from session storage
1021
- if(_this5.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}resolve(_this5.authData);})["catch"](function(error){// Handle failure response
1022
- _this5._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
1023
- 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
1024
- _this5._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
1025
- 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
1026
- _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
1027
- 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,"]")));});});}});}/**
1018
+ if(_this6.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}// reset access token if any was stored
1019
+ _this6._saveSettings({accessToken:undefined});return reject(new Error("[".concat(query.error,"] ").concat(query.error_description)));}// Get token on auth code
1020
+ if(query&&query.code){if(!_this6.codeVerifier){// load codeVerifier from session storage
1021
+ 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
1022
+ _this6._testTokenAccess().then(function(){if(!_this6.authData.state&&query.state)_this6.authData.state=query.state;// remove codeVerifier from session storage
1023
+ if(_this6.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}resolve(_this6.authData);})["catch"](function(error){// Handle failure response
1024
+ _this6._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
1025
+ 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
1026
+ _this6._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
1027
+ 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
1028
+ _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
1029
+ 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,"]")));});});}});}/**
1028
1030
  * @description Parses the URL Query, grabs the code, and clears the query param. If no code is found, no action is taken.
1029
1031
  */},{key:"_setValuesFromUrlQuery",value:function _setValuesFromUrlQuery(){// Check for window
1030
1032
  if(!(typeof window!=='undefined'&&window.location.search))return;// Process query string
@@ -1041,42 +1043,42 @@ document.body.scrollTop=scrollV;document.body.scrollLeft=scrollH;}return query;}
1041
1043
  * @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
1042
1044
  * @param {string} authCode - Authorization code
1043
1045
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
1044
- */},{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
1045
- _this6._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
1046
+ */},{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
1047
+ _this7._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
1046
1048
  * @description Requests a new access token for Code Authorization. Only available in node apps.
1047
1049
  * @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
1048
1050
  * @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
1049
1051
  * @param {string} authCode - Authorization code
1050
1052
  * @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
1051
- */},{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
1052
- _this7._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
1053
+ */},{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
1054
+ _this8._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
1053
1055
  * @description Handles the response for code auth requests
1054
1056
  * @param {object} request - Authorization request object
1055
1057
  * @param {object} bodyParam - Input body data for authorization request
1056
1058
  * @param {function} resolve - Promise resolve callback
1057
1059
  * @param {function} reject - Promise reject callback
1058
- */},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this8=this;request.then(function(response){// Logging
1059
- _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
1060
- 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
1061
- resolve(_this8.authData);})["catch"](function(error){// Log error
1062
- 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);});}/**
1060
+ */},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this9=this;request.then(function(response){// Logging
1061
+ _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
1062
+ 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
1063
+ resolve(_this9.authData);})["catch"](function(error){// Log error
1064
+ 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);});}/**
1063
1065
  * @description Utility function to create the request for auth requests
1064
1066
  * @param {string} encodedData - Base64 encoded client and clientSecret pair
1065
1067
  * @param {object} data - data to url form encode
1066
1068
  */},{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;}/**
1067
1069
  * @description Handles an expired access token. Only available in node apps.
1068
1070
  * @param {string} statusCode - The status code of a request
1069
- */},{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
1070
- _this9.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
1071
- _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();});}});}/**
1071
+ */},{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
1072
+ _this10.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
1073
+ _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();});}});}/**
1072
1074
  * @description Sleeps for a defined length
1073
1075
  * @param {int} millis - Length to sleep in milliseconds
1074
1076
  */},{key:"_sleep",value:function _sleep(millis){return new Promise(function(resolve){return setTimeout(resolve,millis);});}/**
1075
1077
  * @description Loads token from storage, if enabled, and checks to ensure it works.
1076
- */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this10=this;return new Promise(function(resolve,reject){// Load from storage
1077
- _this10._loadSettings();// Check if there is a token to test
1078
- if(!_this10.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
1079
- _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);});});}/**
1078
+ */},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this11=this;return new Promise(function(resolve,reject){// Load from storage
1079
+ _this11._loadSettings();// Check if there is a token to test
1080
+ if(!_this11.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
1081
+ _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);});});}/**
1080
1082
  * @description Parses the URL hash, grabs the access token, and clears the hash. If no access token is found, no action is taken.
1081
1083
  */},{key:"_setValuesFromUrlHash",value:function _setValuesFromUrlHash(){// Check for window
1082
1084
  if(!(typeof window!=='undefined'&&window.location.hash))return;// Process hash string into object
@@ -1121,7 +1123,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
1121
1123
  * @param {String} path The path to append to the base URL.
1122
1124
  * @param {Object} pathParams The parameter values to append.
1123
1125
  * @returns {String} The encoded path with parameter values substituted.
1124
- */},{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;}/**
1126
+ */},{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;}/**
1125
1127
  * Checks whether the given content type represents JSON.<br>
1126
1128
  * JSON content type examples:<br>
1127
1129
  * <ul>
@@ -1162,7 +1164,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
1162
1164
  * Applies authentication headers to the request.
1163
1165
  * @param {Object} request The axios request config object.
1164
1166
  * @param {Array.<String>} authNames An array of authentication method names.
1165
- */},{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));}});}/**
1167
+ */},{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));}});}/**
1166
1168
  * @description Sets the proxy agent axios will use for requests
1167
1169
  * @param {any} agent - The proxy agent
1168
1170
  */},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;}/**
@@ -1179,18 +1181,141 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
1179
1181
  * @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
1180
1182
  * constructor for a complex type.
1181
1183
  * @returns {Promise} A Promise object.
1182
- */},{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
1184
+ */},{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
1183
1185
  that.applyAuthToRequest(request,authNames);// set header parameters
1184
1186
  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
1185
1187
  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
1186
1188
  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
1187
1189
  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
1188
1190
  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
1189
- 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(){/**
1191
+ 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(){/**
1192
+ * AgentAssistants service.
1193
+ * @module purecloud-platform-client-v2/api/AgentAssistantsApi
1194
+ * @version 204.0.1
1195
+ *//**
1196
+ * Constructs a new AgentAssistantsApi.
1197
+ * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
1198
+ * @class
1199
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
1200
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
1201
+ */function AgentAssistantsApi(apiClient){_classCallCheck(this,AgentAssistantsApi);this.apiClient=apiClient||ApiClient.instance;}/**
1202
+ * Delete an assistant.
1203
+ *
1204
+ * @param {String} assistantId Assistant ID
1205
+ */return _createClass(AgentAssistantsApi,[{key:"deleteAssistant",value:function deleteAssistant(assistantId){// verify the required parameter 'assistantId' is set
1206
+ 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']);}/**
1207
+ * Disassociate a queue from an assistant.
1208
+ *
1209
+ * @param {String} assistantId Assistant ID
1210
+ * @param {String} queueId Queue ID
1211
+ */},{key:"deleteAssistantQueue",value:function deleteAssistantQueue(assistantId,queueId){// verify the required parameter 'assistantId' is set
1212
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';}// verify the required parameter 'queueId' is set
1213
+ 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']);}/**
1214
+ * Disassociate the queues from an assistant for the given assistant ID and queue IDs.
1215
+ *
1216
+ * @param {String} assistantId Assistant ID
1217
+ * @param {Object} opts Optional parameters
1218
+ * @param {String} opts.queueIds Comma-separated identifiers of the queues that need to be deleted.
1219
+ */},{key:"deleteAssistantQueues",value:function deleteAssistantQueues(assistantId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
1220
+ 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']);}/**
1221
+ * Get an assistant.
1222
+ *
1223
+ * @param {String} assistantId Assistant ID
1224
+ * @param {Object} opts Optional parameters
1225
+ * @param {Object} opts.expand Which fields, if any, to expand.
1226
+ */},{key:"getAssistant",value:function getAssistant(assistantId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
1227
+ 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']);}/**
1228
+ * Get queue Information for an assistant.
1229
+ *
1230
+ * @param {String} assistantId Assistant ID
1231
+ * @param {String} queueId Queue ID
1232
+ * @param {Object} opts Optional parameters
1233
+ * @param {Object} opts.expand Which fields, if any, to expand.
1234
+ */},{key:"getAssistantQueue",value:function getAssistantQueue(assistantId,queueId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
1235
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling getAssistantQueue';}// verify the required parameter 'queueId' is set
1236
+ 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']);}/**
1237
+ * Get all the queues associated with an assistant.
1238
+ *
1239
+ * @param {String} assistantId Assistant ID
1240
+ * @param {Object} opts Optional parameters
1241
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
1242
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
1243
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
1244
+ * @param {Object} opts.expand Which fields, if any, to expand.
1245
+ */},{key:"getAssistantQueues",value:function getAssistantQueues(assistantId,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
1246
+ 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']);}/**
1247
+ * Get all assistants.
1248
+ *
1249
+ * @param {Object} opts Optional parameters
1250
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
1251
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
1252
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
1253
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
1254
+ * @param {String} opts.name Return the assistant by the given name.
1255
+ */},{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']);}/**
1256
+ * Get all queues assigned to any assistant.
1257
+ *
1258
+ * @param {Object} opts Optional parameters
1259
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
1260
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
1261
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
1262
+ * @param {String} opts.queueIds Comma-separated identifiers of the queues that need to be retrieved.
1263
+ * @param {Object} opts.expand Which fields, if any, to expand.
1264
+ */},{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']);}/**
1265
+ * Update an assistant.
1266
+ *
1267
+ * @param {String} assistantId Assistant ID
1268
+ * @param {Object} body
1269
+ */},{key:"patchAssistant",value:function patchAssistant(assistantId,body){// verify the required parameter 'assistantId' is set
1270
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling patchAssistant';}// verify the required parameter 'body' is set
1271
+ 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']);}/**
1272
+ * Update Queues for an Assistant.
1273
+ *
1274
+ * @param {String} assistantId Assistant ID
1275
+ * @param {Array.<Object>} body
1276
+ */},{key:"patchAssistantQueues",value:function patchAssistantQueues(assistantId,body){// verify the required parameter 'assistantId' is set
1277
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';}// verify the required parameter 'body' is set
1278
+ 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']);}/**
1279
+ * Create an Assistant.
1280
+ *
1281
+ * @param {Object} body
1282
+ */},{key:"postAssistants",value:function postAssistants(body){// verify the required parameter 'body' is set
1283
+ 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']);}/**
1284
+ * Create a queue assistant association.
1285
+ *
1286
+ * @param {String} assistantId Assistant ID
1287
+ * @param {String} queueId Queue ID
1288
+ * @param {Object} body
1289
+ */},{key:"putAssistantQueue",value:function putAssistantQueue(assistantId,queueId,body){// verify the required parameter 'assistantId' is set
1290
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling putAssistantQueue';}// verify the required parameter 'queueId' is set
1291
+ if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling putAssistantQueue';}// verify the required parameter 'body' is set
1292
+ 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(){/**
1293
+ * AgentCopilot service.
1294
+ * @module purecloud-platform-client-v2/api/AgentCopilotApi
1295
+ * @version 204.0.1
1296
+ *//**
1297
+ * Constructs a new AgentCopilotApi.
1298
+ * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
1299
+ * @class
1300
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
1301
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
1302
+ */function AgentCopilotApi(apiClient){_classCallCheck(this,AgentCopilotApi);this.apiClient=apiClient||ApiClient.instance;}/**
1303
+ * Get copilot configuration of an assistant.
1304
+ *
1305
+ * @param {String} assistantId Assistant ID
1306
+ */return _createClass(AgentCopilotApi,[{key:"getAssistantCopilot",value:function getAssistantCopilot(assistantId){// verify the required parameter 'assistantId' is set
1307
+ 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']);}/**
1308
+ * Update agent copilot configuration
1309
+ *
1310
+ * @param {String} assistantId Assistant ID
1311
+ * @param {Object} body
1312
+ */},{key:"putAssistantCopilot",value:function putAssistantCopilot(assistantId,body){// verify the required parameter 'assistantId' is set
1313
+ if(assistantId===undefined||assistantId===null){throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';}// verify the required parameter 'body' is set
1314
+ 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(){/**
1190
1315
  * AgentUI service.
1191
1316
  * @module purecloud-platform-client-v2/api/AgentUIApi
1192
- * @version 203.0.0
1193
- */ /**
1317
+ * @version 204.0.1
1318
+ *//**
1194
1319
  * Constructs a new AgentUIApi.
1195
1320
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
1196
1321
  * @class
@@ -1223,8 +1348,8 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
1223
1348
  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(){/**
1224
1349
  * Alerting service.
1225
1350
  * @module purecloud-platform-client-v2/api/AlertingApi
1226
- * @version 203.0.0
1227
- */ /**
1351
+ * @version 204.0.1
1352
+ *//**
1228
1353
  * Constructs a new AlertingApi.
1229
1354
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
1230
1355
  * @class
@@ -1380,8 +1505,8 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
1380
1505
  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(){/**
1381
1506
  * Analytics service.
1382
1507
  * @module purecloud-platform-client-v2/api/AnalyticsApi
1383
- * @version 203.0.0
1384
- */ /**
1508
+ * @version 204.0.1
1509
+ *//**
1385
1510
  * Constructs a new AnalyticsApi.
1386
1511
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
1387
1512
  * @class
@@ -1622,12 +1747,13 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
1622
1747
  * @param {Object} dashboardType List dashboard of given type
1623
1748
  * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
1624
1749
  * @param {Object} opts Optional parameters
1750
+ * @param {String} opts.name name of the dashboard
1625
1751
  * @param {String} opts.sortBy (default to desc)
1626
1752
  * @param {Number} opts.pageNumber (default to 1)
1627
1753
  * @param {Number} opts.pageSize (default to 9)
1628
1754
  */},{key:"getAnalyticsReportingSettingsDashboardsQuery",value:function getAnalyticsReportingSettingsDashboardsQuery(dashboardType,dashboardAccessFilter,opts){opts=opts||{};// verify the required parameter 'dashboardType' is set
1629
1755
  if(dashboardType===undefined||dashboardType===null){throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';}// verify the required parameter 'dashboardAccessFilter' is set
1630
- 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']);}/**
1756
+ 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']);}/**
1631
1757
  * Get list of dashboards for an user
1632
1758
  *
1633
1759
  * @param {String} userId User ID
@@ -1751,7 +1877,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
1751
1877
  * Query for agent copilot aggregates
1752
1878
  *
1753
1879
  * @param {Object} body query
1754
- * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1755
1880
  */},{key:"postAnalyticsAgentcopilotsAggregatesQuery",value:function postAnalyticsAgentcopilotsAggregatesQuery(body){// verify the required parameter 'body' is set
1756
1881
  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']);}/**
1757
1882
  * Query for bot aggregates asynchronously
@@ -2001,8 +2126,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
2001
2126
  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(){/**
2002
2127
  * Architect service.
2003
2128
  * @module purecloud-platform-client-v2/api/ArchitectApi
2004
- * @version 203.0.0
2005
- */ /**
2129
+ * @version 204.0.1
2130
+ *//**
2006
2131
  * Constructs a new ArchitectApi.
2007
2132
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
2008
2133
  * @class
@@ -3106,8 +3231,8 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
3106
3231
  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(){/**
3107
3232
  * Audit service.
3108
3233
  * @module purecloud-platform-client-v2/api/AuditApi
3109
- * @version 203.0.0
3110
- */ /**
3234
+ * @version 204.0.1
3235
+ *//**
3111
3236
  * Constructs a new AuditApi.
3112
3237
  * @alias module:purecloud-platform-client-v2/api/AuditApi
3113
3238
  * @class
@@ -3156,8 +3281,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3156
3281
  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(){/**
3157
3282
  * Authorization service.
3158
3283
  * @module purecloud-platform-client-v2/api/AuthorizationApi
3159
- * @version 203.0.0
3160
- */ /**
3284
+ * @version 204.0.1
3285
+ *//**
3161
3286
  * Constructs a new AuthorizationApi.
3162
3287
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
3163
3288
  * @class
@@ -3479,8 +3604,8 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
3479
3604
  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(){/**
3480
3605
  * Billing service.
3481
3606
  * @module purecloud-platform-client-v2/api/BillingApi
3482
- * @version 203.0.0
3483
- */ /**
3607
+ * @version 204.0.1
3608
+ *//**
3484
3609
  * Constructs a new BillingApi.
3485
3610
  * @alias module:purecloud-platform-client-v2/api/BillingApi
3486
3611
  * @class
@@ -3503,8 +3628,8 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
3503
3628
  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(){/**
3504
3629
  * CarrierServices service.
3505
3630
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
3506
- * @version 203.0.0
3507
- */ /**
3631
+ * @version 204.0.1
3632
+ *//**
3508
3633
  * Constructs a new CarrierServicesApi.
3509
3634
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
3510
3635
  * @class
@@ -3523,8 +3648,8 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
3523
3648
  */},{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(){/**
3524
3649
  * Chat service.
3525
3650
  * @module purecloud-platform-client-v2/api/ChatApi
3526
- * @version 203.0.0
3527
- */ /**
3651
+ * @version 204.0.1
3652
+ *//**
3528
3653
  * Constructs a new ChatApi.
3529
3654
  * @alias module:purecloud-platform-client-v2/api/ChatApi
3530
3655
  * @class
@@ -3748,8 +3873,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3748
3873
  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(){/**
3749
3874
  * Coaching service.
3750
3875
  * @module purecloud-platform-client-v2/api/CoachingApi
3751
- * @version 203.0.0
3752
- */ /**
3876
+ * @version 204.0.1
3877
+ *//**
3753
3878
  * Constructs a new CoachingApi.
3754
3879
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
3755
3880
  * @class
@@ -3901,8 +4026,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3901
4026
  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(){/**
3902
4027
  * ContentManagement service.
3903
4028
  * @module purecloud-platform-client-v2/api/ContentManagementApi
3904
- * @version 203.0.0
3905
- */ /**
4029
+ * @version 204.0.1
4030
+ *//**
3906
4031
  * Constructs a new ContentManagementApi.
3907
4032
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
3908
4033
  * @class
@@ -4184,8 +4309,8 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
4184
4309
  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(){/**
4185
4310
  * Conversations service.
4186
4311
  * @module purecloud-platform-client-v2/api/ConversationsApi
4187
- * @version 203.0.0
4188
- */ /**
4312
+ * @version 204.0.1
4313
+ *//**
4189
4314
  * Constructs a new ConversationsApi.
4190
4315
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
4191
4316
  * @class
@@ -5906,8 +6031,8 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
5906
6031
  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(){/**
5907
6032
  * DataExtensions service.
5908
6033
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
5909
- * @version 203.0.0
5910
- */ /**
6034
+ * @version 204.0.1
6035
+ *//**
5911
6036
  * Constructs a new DataExtensionsApi.
5912
6037
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
5913
6038
  * @class
@@ -5927,8 +6052,8 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
5927
6052
  */},{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(){/**
5928
6053
  * Downloads service.
5929
6054
  * @module purecloud-platform-client-v2/api/DownloadsApi
5930
- * @version 203.0.0
5931
- */ /**
6055
+ * @version 204.0.1
6056
+ *//**
5932
6057
  * Constructs a new DownloadsApi.
5933
6058
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
5934
6059
  * @class
@@ -5946,8 +6071,8 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
5946
6071
  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(){/**
5947
6072
  * Emails service.
5948
6073
  * @module purecloud-platform-client-v2/api/EmailsApi
5949
- * @version 203.0.0
5950
- */ /**
6074
+ * @version 204.0.1
6075
+ *//**
5951
6076
  * Constructs a new EmailsApi.
5952
6077
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
5953
6078
  * @class
@@ -5964,8 +6089,8 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
5964
6089
  */},{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(){/**
5965
6090
  * EmployeeEngagement service.
5966
6091
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
5967
- * @version 203.0.0
5968
- */ /**
6092
+ * @version 204.0.1
6093
+ *//**
5969
6094
  * Constructs a new EmployeeEngagementApi.
5970
6095
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
5971
6096
  * @class
@@ -6002,8 +6127,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6002
6127
  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(){/**
6003
6128
  * Events service.
6004
6129
  * @module purecloud-platform-client-v2/api/EventsApi
6005
- * @version 203.0.0
6006
- */ /**
6130
+ * @version 204.0.1
6131
+ *//**
6007
6132
  * Constructs a new EventsApi.
6008
6133
  * @alias module:purecloud-platform-client-v2/api/EventsApi
6009
6134
  * @class
@@ -6027,8 +6152,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6027
6152
  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(){/**
6028
6153
  * ExternalContacts service.
6029
6154
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
6030
- * @version 203.0.0
6031
- */ /**
6155
+ * @version 204.0.1
6156
+ *//**
6032
6157
  * Constructs a new ExternalContactsApi.
6033
6158
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
6034
6159
  * @class
@@ -6052,6 +6177,12 @@ if(noteId===undefined||noteId===null){throw'Missing the required parameter "note
6052
6177
  * @param {String} schemaId Schema ID
6053
6178
  */},{key:"deleteExternalcontactsContactsSchema",value:function deleteExternalcontactsContactsSchema(schemaId){// verify the required parameter 'schemaId' is set
6054
6179
  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']);}/**
6180
+ * 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.
6181
+ *
6182
+ * @param {String} externalSourceId External Source ID
6183
+ * deleteExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6184
+ */},{key:"deleteExternalcontactsExternalsource",value:function deleteExternalcontactsExternalsource(externalSourceId){// verify the required parameter 'externalSourceId' is set
6185
+ 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']);}/**
6055
6186
  * Delete an external organization
6056
6187
  *
6057
6188
  * @param {String} externalOrganizationId External Organization ID
@@ -6078,7 +6209,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
6078
6209
  *
6079
6210
  * @param {String} contactId ExternalContact ID
6080
6211
  * @param {Object} opts Optional parameters
6081
- * @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources,identifiers)
6212
+ * @param {Array.<String>} opts.expand which fields, if any, to expand
6082
6213
  */},{key:"getExternalcontactsContact",value:function getExternalcontactsContact(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
6083
6214
  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']);}/**
6084
6215
  * List the identifiers for a contact
@@ -6150,6 +6281,21 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
6150
6281
  * Get a list of schemas.
6151
6282
  *
6152
6283
  */},{key:"getExternalcontactsContactsSchemas",value:function getExternalcontactsContactsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6284
+ * Fetch an External Source
6285
+ *
6286
+ * @param {String} externalSourceId External Source ID
6287
+ * getExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6288
+ */},{key:"getExternalcontactsExternalsource",value:function getExternalcontactsExternalsource(externalSourceId){// verify the required parameter 'externalSourceId' is set
6289
+ 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']);}/**
6290
+ * Fetch a list of External Sources
6291
+ *
6292
+ * @param {Object} opts Optional parameters
6293
+ * @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
6294
+ * @param {Number} opts.limit The number of ExternalSources per page; must be between 10 and 200, default is 100
6295
+ * @param {String} opts.name Filter by external source name. Filtering is prefix filtering and not an exact match
6296
+ * @param {Boolean} opts.active Filter by active status of external source
6297
+ * getExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6298
+ */},{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']);}/**
6153
6299
  * Fetch an external organization
6154
6300
  *
6155
6301
  * @param {String} externalOrganizationId External Organization ID
@@ -6381,6 +6527,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6381
6527
  * @param {Object} body Schema
6382
6528
  */},{key:"postExternalcontactsContactsSchemas",value:function postExternalcontactsContactsSchemas(body){// verify the required parameter 'body' is set
6383
6529
  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']);}/**
6530
+ * Create an External Source
6531
+ *
6532
+ * @param {Object} body External Source
6533
+ * postExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6534
+ */},{key:"postExternalcontactsExternalsources",value:function postExternalcontactsExternalsources(body){// verify the required parameter 'body' is set
6535
+ 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']);}/**
6384
6536
  * Fetch a contact using an identifier type and value.
6385
6537
  * Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
6386
6538
  * @param {Object} identifier
@@ -6445,6 +6597,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6445
6597
  */},{key:"putExternalcontactsConversation",value:function putExternalcontactsConversation(conversationId,body){// verify the required parameter 'conversationId' is set
6446
6598
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';}// verify the required parameter 'body' is set
6447
6599
  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']);}/**
6600
+ * Update an External Source
6601
+ *
6602
+ * @param {String} externalSourceId External Source ID
6603
+ * @param {Object} body External Source
6604
+ * putExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
6605
+ */},{key:"putExternalcontactsExternalsource",value:function putExternalcontactsExternalsource(externalSourceId,body){// verify the required parameter 'externalSourceId' is set
6606
+ if(externalSourceId===undefined||externalSourceId===null){throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';}// verify the required parameter 'body' is set
6607
+ 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']);}/**
6448
6608
  * Update an external organization
6449
6609
  *
6450
6610
  * @param {String} externalOrganizationId External Organization ID
@@ -6484,8 +6644,8 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
6484
6644
  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(){/**
6485
6645
  * Fax service.
6486
6646
  * @module purecloud-platform-client-v2/api/FaxApi
6487
- * @version 203.0.0
6488
- */ /**
6647
+ * @version 204.0.1
6648
+ *//**
6489
6649
  * Constructs a new FaxApi.
6490
6650
  * @alias module:purecloud-platform-client-v2/api/FaxApi
6491
6651
  * @class
@@ -6533,8 +6693,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6533
6693
  */},{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(){/**
6534
6694
  * Flows service.
6535
6695
  * @module purecloud-platform-client-v2/api/FlowsApi
6536
- * @version 203.0.0
6537
- */ /**
6696
+ * @version 204.0.1
6697
+ *//**
6538
6698
  * Constructs a new FlowsApi.
6539
6699
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
6540
6700
  * @class
@@ -6581,8 +6741,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6581
6741
  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(){/**
6582
6742
  * Gamification service.
6583
6743
  * @module purecloud-platform-client-v2/api/GamificationApi
6584
- * @version 203.0.0
6585
- */ /**
6744
+ * @version 204.0.1
6745
+ *//**
6586
6746
  * Constructs a new GamificationApi.
6587
6747
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
6588
6748
  * @class
@@ -7121,8 +7281,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7121
7281
  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(){/**
7122
7282
  * GeneralDataProtectionRegulation service.
7123
7283
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
7124
- * @version 203.0.0
7125
- */ /**
7284
+ * @version 204.0.1
7285
+ *//**
7126
7286
  * Constructs a new GeneralDataProtectionRegulationApi.
7127
7287
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
7128
7288
  * @class
@@ -7156,8 +7316,8 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
7156
7316
  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(){/**
7157
7317
  * Geolocation service.
7158
7318
  * @module purecloud-platform-client-v2/api/GeolocationApi
7159
- * @version 203.0.0
7160
- */ /**
7319
+ * @version 204.0.1
7320
+ *//**
7161
7321
  * Constructs a new GeolocationApi.
7162
7322
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
7163
7323
  * @class
@@ -7190,8 +7350,8 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
7190
7350
  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(){/**
7191
7351
  * Greetings service.
7192
7352
  * @module purecloud-platform-client-v2/api/GreetingsApi
7193
- * @version 203.0.0
7194
- */ /**
7353
+ * @version 204.0.1
7354
+ *//**
7195
7355
  * Constructs a new GreetingsApi.
7196
7356
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
7197
7357
  * @class
@@ -7297,8 +7457,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
7297
7457
  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(){/**
7298
7458
  * Groups service.
7299
7459
  * @module purecloud-platform-client-v2/api/GroupsApi
7300
- * @version 203.0.0
7301
- */ /**
7460
+ * @version 204.0.1
7461
+ *//**
7302
7462
  * Constructs a new GroupsApi.
7303
7463
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
7304
7464
  * @class
@@ -7430,8 +7590,8 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
7430
7590
  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(){/**
7431
7591
  * IdentityProvider service.
7432
7592
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
7433
- * @version 203.0.0
7434
- */ /**
7593
+ * @version 204.0.1
7594
+ *//**
7435
7595
  * Constructs a new IdentityProviderApi.
7436
7596
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
7437
7597
  * @class
@@ -7586,8 +7746,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7586
7746
  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(){/**
7587
7747
  * InfrastructureAsCode service.
7588
7748
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
7589
- * @version 203.0.0
7590
- */ /**
7749
+ * @version 204.0.1
7750
+ *//**
7591
7751
  * Constructs a new InfrastructureAsCodeApi.
7592
7752
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
7593
7753
  * @class
@@ -7640,8 +7800,8 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
7640
7800
  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(){/**
7641
7801
  * Integrations service.
7642
7802
  * @module purecloud-platform-client-v2/api/IntegrationsApi
7643
- * @version 203.0.0
7644
- */ /**
7803
+ * @version 204.0.1
7804
+ *//**
7645
7805
  * Constructs a new IntegrationsApi.
7646
7806
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
7647
7807
  * @class
@@ -8254,8 +8414,8 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
8254
8414
  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(){/**
8255
8415
  * Journey service.
8256
8416
  * @module purecloud-platform-client-v2/api/JourneyApi
8257
- * @version 203.0.0
8258
- */ /**
8417
+ * @version 204.0.1
8418
+ *//**
8259
8419
  * Constructs a new JourneyApi.
8260
8420
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
8261
8421
  * @class
@@ -8292,7 +8452,6 @@ if(segmentId===undefined||segmentId===null){throw'Missing the required parameter
8292
8452
  * Delete a Journey View by ID
8293
8453
  * deletes all versions
8294
8454
  * @param {String} viewId viewId
8295
- * deleteJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8296
8455
  */},{key:"deleteJourneyView",value:function deleteJourneyView(viewId){// verify the required parameter 'viewId' is set
8297
8456
  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']);}/**
8298
8457
  * Get status for async query for journey aggregates
@@ -8458,14 +8617,12 @@ if(sessionId===undefined||sessionId===null){throw'Missing the required parameter
8458
8617
  * Get a Journey View by ID
8459
8618
  * returns the latest version
8460
8619
  * @param {String} viewId viewId
8461
- * getJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8462
8620
  */},{key:"getJourneyView",value:function getJourneyView(viewId){// verify the required parameter 'viewId' is set
8463
8621
  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']);}/**
8464
8622
  * Get a Journey View by ID and version
8465
8623
  *
8466
8624
  * @param {String} viewId viewId
8467
8625
  * @param {String} versionId versionId
8468
- * getJourneyViewVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8469
8626
  */},{key:"getJourneyViewVersion",value:function getJourneyViewVersion(viewId,versionId){// verify the required parameter 'viewId' is set
8470
8627
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';}// verify the required parameter 'versionId' is set
8471
8628
  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']);}/**
@@ -8474,7 +8631,6 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
8474
8631
  * @param {String} viewId Journey View Id
8475
8632
  * @param {String} journeyVersionId Journey View Version
8476
8633
  * @param {String} jobId JobId
8477
- * getJourneyViewVersionJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8478
8634
  */},{key:"getJourneyViewVersionJob",value:function getJourneyViewVersionJob(viewId,journeyVersionId,jobId){// verify the required parameter 'viewId' is set
8479
8635
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';}// verify the required parameter 'journeyVersionId' is set
8480
8636
  if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';}// verify the required parameter 'jobId' is set
@@ -8484,7 +8640,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
8484
8640
  * @param {String} viewId JourneyViewResult id
8485
8641
  * @param {String} journeyViewVersion Journey View Version
8486
8642
  * @param {String} jobId Id of the executing job
8487
- * getJourneyViewVersionJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8488
8643
  */},{key:"getJourneyViewVersionJobResults",value:function getJourneyViewVersionJobResults(viewId,journeyViewVersion,jobId){// verify the required parameter 'viewId' is set
8489
8644
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';}// verify the required parameter 'journeyViewVersion' is set
8490
8645
  if(journeyViewVersion===undefined||journeyViewVersion===null){throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';}// verify the required parameter 'jobId' is set
@@ -8493,7 +8648,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
8493
8648
  * used for long descriptions
8494
8649
  * @param {String} viewId Journey View Id
8495
8650
  * @param {String} journeyVersionId Journey View Version
8496
- * getJourneyViewVersionJobsLatest is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8497
8651
  */},{key:"getJourneyViewVersionJobsLatest",value:function getJourneyViewVersionJobsLatest(viewId,journeyVersionId){// verify the required parameter 'viewId' is set
8498
8652
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';}// verify the required parameter 'journeyVersionId' is set
8499
8653
  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']);}/**
@@ -8504,8 +8658,8 @@ if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the requ
8504
8658
  * @param {Number} opts.pageSize Page size (default to 25)
8505
8659
  * @param {String} opts.nameOrCreatedBy Journey View Name or Created By
8506
8660
  * @param {Object} opts.expand Parameter to request additional data to return in Journey payload
8507
- * getJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8508
- */},{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']);}/**
8661
+ * @param {String} opts.id Parameter to request a list of Journey Views by id, separated by commas. Limit of 100 items.
8662
+ */},{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']);}/**
8509
8663
  * Get an Event Definition
8510
8664
  *
8511
8665
  * @param {String} eventDefinitionId Event Definition ID
@@ -8523,7 +8677,6 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
8523
8677
  * @param {Number} opts.pageSize Max number of entities to return (default to 25)
8524
8678
  * @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
8525
8679
  * @param {String} opts.statuses Job statuses to filter for
8526
- * getJourneyViewsJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8527
8680
  */},{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']);}/**
8528
8681
  * Update single action map.
8529
8682
  *
@@ -8637,7 +8790,6 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
8637
8790
  * used for long descriptions
8638
8791
  * @param {String} viewId Journey View Id
8639
8792
  * @param {String} journeyVersionId Journey View Version
8640
- * postJourneyViewVersionJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8641
8793
  */},{key:"postJourneyViewVersionJobs",value:function postJourneyViewVersionJobs(viewId,journeyVersionId){// verify the required parameter 'viewId' is set
8642
8794
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';}// verify the required parameter 'journeyVersionId' is set
8643
8795
  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']);}/**
@@ -8645,14 +8797,12 @@ if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the requ
8645
8797
  * creates a new version
8646
8798
  * @param {String} viewId viewId
8647
8799
  * @param {Object} body JourneyView
8648
- * postJourneyViewVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8649
8800
  */},{key:"postJourneyViewVersions",value:function postJourneyViewVersions(viewId,body){// verify the required parameter 'viewId' is set
8650
8801
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';}// verify the required parameter 'body' is set
8651
8802
  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']);}/**
8652
8803
  * Create a new Journey View
8653
8804
  *
8654
8805
  * @param {Object} body JourneyView
8655
- * postJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8656
8806
  */},{key:"postJourneyViews",value:function postJourneyViews(body){// verify the required parameter 'body' is set
8657
8807
  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']);}/**
8658
8808
  * Validate whether an encoding exist for a label/value combination.
@@ -8663,8 +8813,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8663
8813
  */},{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(){/**
8664
8814
  * Knowledge service.
8665
8815
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8666
- * @version 203.0.0
8667
- */ /**
8816
+ * @version 204.0.1
8817
+ *//**
8668
8818
  * Constructs a new KnowledgeApi.
8669
8819
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
8670
8820
  * @class
@@ -9184,6 +9334,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9184
9334
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';}// verify the required parameter 'documentId' is set
9185
9335
  if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';}// verify the required parameter 'body' is set
9186
9336
  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']);}/**
9337
+ * Update feedback on a document
9338
+ *
9339
+ * @param {String} knowledgeBaseId Knowledge base ID.
9340
+ * @param {String} documentId Document ID.
9341
+ * @param {String} feedbackId Feedback ID.
9342
+ * @param {Object} opts Optional parameters
9343
+ * @param {Object} opts.body
9344
+ */},{key:"patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId",value:function patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(knowledgeBaseId,documentId,feedbackId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
9345
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';}// verify the required parameter 'documentId' is set
9346
+ if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';}// verify the required parameter 'feedbackId' is set
9347
+ 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']);}/**
9187
9348
  * Update a variation for a document.
9188
9349
  *
9189
9350
  * @param {String} documentVariationId Globally unique identifier for a document variation.
@@ -9321,6 +9482,13 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
9321
9482
  */},{key:"postKnowledgeGuestSessionDocumentViews",value:function postKnowledgeGuestSessionDocumentViews(sessionId,documentId,opts){opts=opts||{};// verify the required parameter 'sessionId' is set
9322
9483
  if(sessionId===undefined||sessionId===null){throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';}// verify the required parameter 'documentId' is set
9323
9484
  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']);}/**
9485
+ * Answer documents.
9486
+ *
9487
+ * @param {String} sessionId Knowledge guest session ID.
9488
+ * @param {Object} body
9489
+ */},{key:"postKnowledgeGuestSessionDocumentsAnswers",value:function postKnowledgeGuestSessionDocumentsAnswers(sessionId,body){// verify the required parameter 'sessionId' is set
9490
+ if(sessionId===undefined||sessionId===null){throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';}// verify the required parameter 'body' is set
9491
+ 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']);}/**
9324
9492
  * Indicate that documents were presented to the user.
9325
9493
  *
9326
9494
  * @param {String} sessionId Knowledge guest session ID.
@@ -9407,6 +9575,13 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
9407
9575
  */},{key:"postKnowledgeKnowledgebaseDocuments",value:function postKnowledgeKnowledgebaseDocuments(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
9408
9576
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';}// verify the required parameter 'body' is set
9409
9577
  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']);}/**
9578
+ * Answer documents.
9579
+ *
9580
+ * @param {String} knowledgeBaseId Knowledge base ID
9581
+ * @param {Object} body
9582
+ */},{key:"postKnowledgeKnowledgebaseDocumentsAnswers",value:function postKnowledgeKnowledgebaseDocumentsAnswers(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
9583
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';}// verify the required parameter 'body' is set
9584
+ 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']);}/**
9410
9585
  * Bulk remove documents.
9411
9586
  *
9412
9587
  * @param {String} knowledgeBaseId Knowledge base ID
@@ -9584,8 +9759,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9584
9759
  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(){/**
9585
9760
  * LanguageUnderstanding service.
9586
9761
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
9587
- * @version 203.0.0
9588
- */ /**
9762
+ * @version 204.0.1
9763
+ *//**
9589
9764
  * Constructs a new LanguageUnderstandingApi.
9590
9765
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
9591
9766
  * @class
@@ -9844,8 +10019,8 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
9844
10019
  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(){/**
9845
10020
  * Languages service.
9846
10021
  * @module purecloud-platform-client-v2/api/LanguagesApi
9847
- * @version 203.0.0
9848
- */ /**
10022
+ * @version 204.0.1
10023
+ *//**
9849
10024
  * Constructs a new LanguagesApi.
9850
10025
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
9851
10026
  * @class
@@ -9899,8 +10074,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
9899
10074
  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(){/**
9900
10075
  * Learning service.
9901
10076
  * @module purecloud-platform-client-v2/api/LearningApi
9902
- * @version 203.0.0
9903
- */ /**
10077
+ * @version 204.0.1
10078
+ *//**
9904
10079
  * Constructs a new LearningApi.
9905
10080
  * @alias module:purecloud-platform-client-v2/api/LearningApi
9906
10081
  * @class
@@ -10170,8 +10345,8 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
10170
10345
  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(){/**
10171
10346
  * License service.
10172
10347
  * @module purecloud-platform-client-v2/api/LicenseApi
10173
- * @version 203.0.0
10174
- */ /**
10348
+ * @version 204.0.1
10349
+ *//**
10175
10350
  * Constructs a new LicenseApi.
10176
10351
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
10177
10352
  * @class
@@ -10224,8 +10399,8 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
10224
10399
  */},{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(){/**
10225
10400
  * Locations service.
10226
10401
  * @module purecloud-platform-client-v2/api/LocationsApi
10227
- * @version 203.0.0
10228
- */ /**
10402
+ * @version 204.0.1
10403
+ *//**
10229
10404
  * Constructs a new LocationsApi.
10230
10405
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
10231
10406
  * @class
@@ -10283,8 +10458,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10283
10458
  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(){/**
10284
10459
  * LogCapture service.
10285
10460
  * @module purecloud-platform-client-v2/api/LogCaptureApi
10286
- * @version 203.0.0
10287
- */ /**
10461
+ * @version 204.0.1
10462
+ *//**
10288
10463
  * Constructs a new LogCaptureApi.
10289
10464
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
10290
10465
  * @class
@@ -10333,8 +10508,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
10333
10508
  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(){/**
10334
10509
  * Messaging service.
10335
10510
  * @module purecloud-platform-client-v2/api/MessagingApi
10336
- * @version 203.0.0
10337
- */ /**
10511
+ * @version 204.0.1
10512
+ *//**
10338
10513
  * Constructs a new MessagingApi.
10339
10514
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
10340
10515
  * @class
@@ -10423,8 +10598,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10423
10598
  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(){/**
10424
10599
  * MobileDevices service.
10425
10600
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
10426
- * @version 203.0.0
10427
- */ /**
10601
+ * @version 204.0.1
10602
+ *//**
10428
10603
  * Constructs a new MobileDevicesApi.
10429
10604
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
10430
10605
  * @class
@@ -10462,8 +10637,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10462
10637
  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(){/**
10463
10638
  * Notifications service.
10464
10639
  * @module purecloud-platform-client-v2/api/NotificationsApi
10465
- * @version 203.0.0
10466
- */ /**
10640
+ * @version 204.0.1
10641
+ *//**
10467
10642
  * Constructs a new NotificationsApi.
10468
10643
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
10469
10644
  * @class
@@ -10519,8 +10694,8 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
10519
10694
  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(){/**
10520
10695
  * OAuth service.
10521
10696
  * @module purecloud-platform-client-v2/api/OAuthApi
10522
- * @version 203.0.0
10523
- */ /**
10697
+ * @version 204.0.1
10698
+ *//**
10524
10699
  * Constructs a new OAuthApi.
10525
10700
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
10526
10701
  * @class
@@ -10604,8 +10779,8 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
10604
10779
  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(){/**
10605
10780
  * Objects service.
10606
10781
  * @module purecloud-platform-client-v2/api/ObjectsApi
10607
- * @version 203.0.0
10608
- */ /**
10782
+ * @version 204.0.1
10783
+ *//**
10609
10784
  * Constructs a new ObjectsApi.
10610
10785
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
10611
10786
  * @class
@@ -10675,8 +10850,8 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
10675
10850
  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(){/**
10676
10851
  * OperationalEvents service.
10677
10852
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
10678
- * @version 203.0.0
10679
- */ /**
10853
+ * @version 204.0.1
10854
+ *//**
10680
10855
  * Constructs a new OperationalEventsApi.
10681
10856
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
10682
10857
  * @class
@@ -10693,8 +10868,8 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
10693
10868
  */},{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(){/**
10694
10869
  * Organization service.
10695
10870
  * @module purecloud-platform-client-v2/api/OrganizationApi
10696
- * @version 203.0.0
10697
- */ /**
10871
+ * @version 204.0.1
10872
+ *//**
10698
10873
  * Constructs a new OrganizationApi.
10699
10874
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
10700
10875
  * @class
@@ -10818,8 +10993,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10818
10993
  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(){/**
10819
10994
  * OrganizationAuthorization service.
10820
10995
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
10821
- * @version 203.0.0
10822
- */ /**
10996
+ * @version 204.0.1
10997
+ *//**
10823
10998
  * Constructs a new OrganizationAuthorizationApi.
10824
10999
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
10825
11000
  * @class
@@ -11141,8 +11316,8 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
11141
11316
  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(){/**
11142
11317
  * Outbound service.
11143
11318
  * @module purecloud-platform-client-v2/api/OutboundApi
11144
- * @version 203.0.0
11145
- */ /**
11319
+ * @version 204.0.1
11320
+ *//**
11146
11321
  * Constructs a new OutboundApi.
11147
11322
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
11148
11323
  * @class
@@ -12220,8 +12395,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12220
12395
  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(){/**
12221
12396
  * Presence service.
12222
12397
  * @module purecloud-platform-client-v2/api/PresenceApi
12223
- * @version 203.0.0
12224
- */ /**
12398
+ * @version 204.0.1
12399
+ *//**
12225
12400
  * Constructs a new PresenceApi.
12226
12401
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
12227
12402
  * @class
@@ -12393,8 +12568,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12393
12568
  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(){/**
12394
12569
  * ProcessAutomation service.
12395
12570
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
12396
- * @version 203.0.0
12397
- */ /**
12571
+ * @version 204.0.1
12572
+ *//**
12398
12573
  * Constructs a new ProcessAutomationApi.
12399
12574
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
12400
12575
  * @class
@@ -12456,8 +12631,8 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
12456
12631
  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(){/**
12457
12632
  * Quality service.
12458
12633
  * @module purecloud-platform-client-v2/api/QualityApi
12459
- * @version 203.0.0
12460
- */ /**
12634
+ * @version 204.0.1
12635
+ *//**
12461
12636
  * Constructs a new QualityApi.
12462
12637
  * @alias module:purecloud-platform-client-v2/api/QualityApi
12463
12638
  * @class
@@ -12933,8 +13108,8 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
12933
13108
  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(){/**
12934
13109
  * Recording service.
12935
13110
  * @module purecloud-platform-client-v2/api/RecordingApi
12936
- * @version 203.0.0
12937
- */ /**
13111
+ * @version 204.0.1
13112
+ *//**
12938
13113
  * Constructs a new RecordingApi.
12939
13114
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
12940
13115
  * @class
@@ -13345,8 +13520,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13345
13520
  */},{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(){/**
13346
13521
  * ResponseManagement service.
13347
13522
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
13348
- * @version 203.0.0
13349
- */ /**
13523
+ * @version 204.0.1
13524
+ *//**
13350
13525
  * Constructs a new ResponseManagementApi.
13351
13526
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
13352
13527
  * @class
@@ -13466,8 +13641,8 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
13466
13641
  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(){/**
13467
13642
  * Routing service.
13468
13643
  * @module purecloud-platform-client-v2/api/RoutingApi
13469
- * @version 203.0.0
13470
- */ /**
13644
+ * @version 204.0.1
13645
+ *//**
13471
13646
  * Constructs a new RoutingApi.
13472
13647
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
13473
13648
  * @class
@@ -13754,6 +13929,13 @@ if(predictorId===undefined||predictorId===null){throw'Missing the required param
13754
13929
  * @param {String} queueId Queue ID
13755
13930
  */},{key:"getRoutingQueue",value:function getRoutingQueue(queueId){// verify the required parameter 'queueId' is set
13756
13931
  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']);}/**
13932
+ * Get an assistant associated with a queue.
13933
+ *
13934
+ * @param {String} queueId Queue ID
13935
+ * @param {Object} opts Optional parameters
13936
+ * @param {Object} opts.expand Which fields, if any, to expand.
13937
+ */},{key:"getRoutingQueueAssistant",value:function getRoutingQueueAssistant(queueId,opts){opts=opts||{};// verify the required parameter 'queueId' is set
13938
+ 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']);}/**
13757
13939
  * Get a Comparison Period.
13758
13940
  *
13759
13941
  * @param {String} queueId Queue id
@@ -14463,8 +14645,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14463
14645
  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(){/**
14464
14646
  * SCIM service.
14465
14647
  * @module purecloud-platform-client-v2/api/SCIMApi
14466
- * @version 203.0.0
14467
- */ /**
14648
+ * @version 204.0.1
14649
+ *//**
14468
14650
  * Constructs a new SCIMApi.
14469
14651
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
14470
14652
  * @class
@@ -14688,8 +14870,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14688
14870
  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(){/**
14689
14871
  * ScreenRecording service.
14690
14872
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
14691
- * @version 203.0.0
14692
- */ /**
14873
+ * @version 204.0.1
14874
+ *//**
14693
14875
  * Constructs a new ScreenRecordingApi.
14694
14876
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
14695
14877
  * @class
@@ -14703,8 +14885,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14703
14885
  */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(){/**
14704
14886
  * Scripts service.
14705
14887
  * @module purecloud-platform-client-v2/api/ScriptsApi
14706
- * @version 203.0.0
14707
- */ /**
14888
+ * @version 204.0.1
14889
+ *//**
14708
14890
  * Constructs a new ScriptsApi.
14709
14891
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
14710
14892
  * @class
@@ -14839,8 +15021,8 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
14839
15021
  */},{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(){/**
14840
15022
  * Search service.
14841
15023
  * @module purecloud-platform-client-v2/api/SearchApi
14842
- * @version 203.0.0
14843
- */ /**
15024
+ * @version 204.0.1
15025
+ *//**
14844
15026
  * Constructs a new SearchApi.
14845
15027
  * @alias module:purecloud-platform-client-v2/api/SearchApi
14846
15028
  * @class
@@ -14999,8 +15181,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14999
15181
  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(){/**
15000
15182
  * Settings service.
15001
15183
  * @module purecloud-platform-client-v2/api/SettingsApi
15002
- * @version 203.0.0
15003
- */ /**
15184
+ * @version 204.0.1
15185
+ *//**
15004
15186
  * Constructs a new SettingsApi.
15005
15187
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
15006
15188
  * @class
@@ -15017,7 +15199,6 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
15017
15199
  */},{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
15018
15200
  * Get the execution history enabled setting.
15019
15201
  * Get the execution history enabled setting.
15020
- * getSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
15021
15202
  */},{key:"getSettingsExecutiondata",value:function getSettingsExecutiondata(){return this.apiClient.callApi('/api/v2/settings/executiondata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
15022
15203
  * Get agent auto answer settings
15023
15204
  *
@@ -15032,7 +15213,6 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
15032
15213
  * Edit the execution history on off setting.
15033
15214
  * Edit the execution history on off setting.
15034
15215
  * @param {Object} body New Execution Data Setting
15035
- * patchSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
15036
15216
  */},{key:"patchSettingsExecutiondata",value:function patchSettingsExecutiondata(body){// verify the required parameter 'body' is set
15037
15217
  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']);}/**
15038
15218
  * Update agent auto answer settings
@@ -15051,8 +15231,8 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
15051
15231
  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(){/**
15052
15232
  * SpeechTextAnalytics service.
15053
15233
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
15054
- * @version 203.0.0
15055
- */ /**
15234
+ * @version 204.0.1
15235
+ *//**
15056
15236
  * Constructs a new SpeechTextAnalyticsApi.
15057
15237
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
15058
15238
  * @class
@@ -15335,8 +15515,8 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
15335
15515
  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(){/**
15336
15516
  * Stations service.
15337
15517
  * @module purecloud-platform-client-v2/api/StationsApi
15338
- * @version 203.0.0
15339
- */ /**
15518
+ * @version 204.0.1
15519
+ *//**
15340
15520
  * Constructs a new StationsApi.
15341
15521
  * @alias module:purecloud-platform-client-v2/api/StationsApi
15342
15522
  * @class
@@ -15367,8 +15547,8 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
15367
15547
  */},{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(){/**
15368
15548
  * Suggest service.
15369
15549
  * @module purecloud-platform-client-v2/api/SuggestApi
15370
- * @version 203.0.0
15371
- */ /**
15550
+ * @version 204.0.1
15551
+ *//**
15372
15552
  * Constructs a new SuggestApi.
15373
15553
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
15374
15554
  * @class
@@ -15407,8 +15587,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15407
15587
  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(){/**
15408
15588
  * TaskManagement service.
15409
15589
  * @module purecloud-platform-client-v2/api/TaskManagementApi
15410
- * @version 203.0.0
15411
- */ /**
15590
+ * @version 204.0.1
15591
+ *//**
15412
15592
  * Constructs a new TaskManagementApi.
15413
15593
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
15414
15594
  * @class
@@ -15737,8 +15917,8 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
15737
15917
  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(){/**
15738
15918
  * Teams service.
15739
15919
  * @module purecloud-platform-client-v2/api/TeamsApi
15740
- * @version 203.0.0
15741
- */ /**
15920
+ * @version 204.0.1
15921
+ *//**
15742
15922
  * Constructs a new TeamsApi.
15743
15923
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
15744
15924
  * @class
@@ -15815,8 +15995,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15815
15995
  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(){/**
15816
15996
  * Telephony service.
15817
15997
  * @module purecloud-platform-client-v2/api/TelephonyApi
15818
- * @version 203.0.0
15819
- */ /**
15998
+ * @version 204.0.1
15999
+ *//**
15820
16000
  * Constructs a new TelephonyApi.
15821
16001
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
15822
16002
  * @class
@@ -15862,8 +16042,8 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
15862
16042
  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(){/**
15863
16043
  * TelephonyProvidersEdge service.
15864
16044
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
15865
- * @version 203.0.0
15866
- */ /**
16045
+ * @version 204.0.1
16046
+ *//**
15867
16047
  * Constructs a new TelephonyProvidersEdgeApi.
15868
16048
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
15869
16049
  * @class
@@ -16672,8 +16852,8 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
16672
16852
  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(){/**
16673
16853
  * Textbots service.
16674
16854
  * @module purecloud-platform-client-v2/api/TextbotsApi
16675
- * @version 203.0.0
16676
- */ /**
16855
+ * @version 204.0.1
16856
+ *//**
16677
16857
  * Constructs a new TextbotsApi.
16678
16858
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
16679
16859
  * @class
@@ -16707,8 +16887,8 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
16707
16887
  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(){/**
16708
16888
  * Tokens service.
16709
16889
  * @module purecloud-platform-client-v2/api/TokensApi
16710
- * @version 203.0.0
16711
- */ /**
16890
+ * @version 204.0.1
16891
+ *//**
16712
16892
  * Constructs a new TokensApi.
16713
16893
  * @alias module:purecloud-platform-client-v2/api/TokensApi
16714
16894
  * @class
@@ -16741,8 +16921,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16741
16921
  */},{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(){/**
16742
16922
  * Uploads service.
16743
16923
  * @module purecloud-platform-client-v2/api/UploadsApi
16744
- * @version 203.0.0
16745
- */ /**
16924
+ * @version 204.0.1
16925
+ *//**
16746
16926
  * Constructs a new UploadsApi.
16747
16927
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
16748
16928
  * @class
@@ -16807,8 +16987,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16807
16987
  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(){/**
16808
16988
  * Usage service.
16809
16989
  * @module purecloud-platform-client-v2/api/UsageApi
16810
- * @version 203.0.0
16811
- */ /**
16990
+ * @version 204.0.1
16991
+ *//**
16812
16992
  * Constructs a new UsageApi.
16813
16993
  * @alias module:purecloud-platform-client-v2/api/UsageApi
16814
16994
  * @class
@@ -16861,8 +17041,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16861
17041
  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(){/**
16862
17042
  * UserRecordings service.
16863
17043
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
16864
- * @version 203.0.0
16865
- */ /**
17044
+ * @version 204.0.1
17045
+ *//**
16866
17046
  * Constructs a new UserRecordingsApi.
16867
17047
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
16868
17048
  * @class
@@ -16918,8 +17098,8 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
16918
17098
  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(){/**
16919
17099
  * Users service.
16920
17100
  * @module purecloud-platform-client-v2/api/UsersApi
16921
- * @version 203.0.0
16922
- */ /**
17101
+ * @version 204.0.1
17102
+ *//**
16923
17103
  * Constructs a new UsersApi.
16924
17104
  * @alias module:purecloud-platform-client-v2/api/UsersApi
16925
17105
  * @class
@@ -17608,8 +17788,8 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
17608
17788
  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(){/**
17609
17789
  * Utilities service.
17610
17790
  * @module purecloud-platform-client-v2/api/UtilitiesApi
17611
- * @version 203.0.0
17612
- */ /**
17791
+ * @version 204.0.1
17792
+ *//**
17613
17793
  * Constructs a new UtilitiesApi.
17614
17794
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
17615
17795
  * @class
@@ -17635,8 +17815,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17635
17815
  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(){/**
17636
17816
  * Voicemail service.
17637
17817
  * @module purecloud-platform-client-v2/api/VoicemailApi
17638
- * @version 203.0.0
17639
- */ /**
17818
+ * @version 204.0.1
17819
+ *//**
17640
17820
  * Constructs a new VoicemailApi.
17641
17821
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
17642
17822
  * @class
@@ -17784,8 +17964,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17784
17964
  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(){/**
17785
17965
  * WebChat service.
17786
17966
  * @module purecloud-platform-client-v2/api/WebChatApi
17787
- * @version 203.0.0
17788
- */ /**
17967
+ * @version 204.0.1
17968
+ *//**
17789
17969
  * Constructs a new WebChatApi.
17790
17970
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
17791
17971
  * @class
@@ -17919,8 +18099,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17919
18099
  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(){/**
17920
18100
  * WebDeployments service.
17921
18101
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
17922
- * @version 203.0.0
17923
- */ /**
18102
+ * @version 204.0.1
18103
+ *//**
17924
18104
  * Constructs a new WebDeploymentsApi.
17925
18105
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
17926
18106
  * @class
@@ -18040,8 +18220,8 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
18040
18220
  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(){/**
18041
18221
  * WebMessaging service.
18042
18222
  * @module purecloud-platform-client-v2/api/WebMessagingApi
18043
- * @version 203.0.0
18044
- */ /**
18223
+ * @version 204.0.1
18224
+ *//**
18045
18225
  * Constructs a new WebMessagingApi.
18046
18226
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
18047
18227
  * @class
@@ -18056,8 +18236,8 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
18056
18236
  */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(){/**
18057
18237
  * Widgets service.
18058
18238
  * @module purecloud-platform-client-v2/api/WidgetsApi
18059
- * @version 203.0.0
18060
- */ /**
18239
+ * @version 204.0.1
18240
+ *//**
18061
18241
  * Constructs a new WidgetsApi.
18062
18242
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
18063
18243
  * @class
@@ -18091,8 +18271,8 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
18091
18271
  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(){/**
18092
18272
  * WorkforceManagement service.
18093
18273
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
18094
- * @version 203.0.0
18095
- */ /**
18274
+ * @version 204.0.1
18275
+ *//**
18096
18276
  * Constructs a new WorkforceManagementApi.
18097
18277
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
18098
18278
  * @class
@@ -19857,7 +20037,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
19857
20037
  * </pre>
19858
20038
  * </p>
19859
20039
  * @module purecloud-platform-client-v2/index
19860
- * @version 203.0.0
20040
+ * @version 204.0.1
19861
20041
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
19862
20042
  * The ApiClient constructor.
19863
20043
  * @property {module:purecloud-platform-client-v2/ApiClient}
@@ -19865,6 +20045,12 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
19865
20045
  * The ApiClient class.
19866
20046
  * @property {module:purecloud-platform-client-v2/ApiClient}
19867
20047
  */this.ApiClientClass=ApiClient;/**
20048
+ * The AgentAssistantsApi service constructor.
20049
+ * @property {module:purecloud-platform-client-v2/api/AgentAssistantsApi}
20050
+ */this.AgentAssistantsApi=AgentAssistantsApi;/**
20051
+ * The AgentCopilotApi service constructor.
20052
+ * @property {module:purecloud-platform-client-v2/api/AgentCopilotApi}
20053
+ */this.AgentCopilotApi=AgentCopilotApi;/**
19868
20054
  * The AgentUIApi service constructor.
19869
20055
  * @property {module:purecloud-platform-client-v2/api/AgentUIApi}
19870
20056
  */this.AgentUIApi=AgentUIApi;/**