purecloud-platform-client-v2 202.1.0 → 204.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +885 -106
  3. package/dist/web-amd/purecloud-platform-client-v2.js +885 -106
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +452 -261
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +452 -261
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +589 -224
  9. package/package.json +2 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +381 -0
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +81 -0
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +3 -3
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -12
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +46 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +139 -2
  31. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/JourneyApi.js +3 -13
  42. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +130 -1
  43. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RoutingApi.js +30 -1
  64. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -3
  69. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/index.js +13 -1
@@ -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 202.1.0
882
+ * @version 204.0.0
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.0
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.0
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 202.1.0
1193
- */ /**
1317
+ * @version 204.0.0
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 202.1.0
1227
- */ /**
1351
+ * @version 204.0.0
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 202.1.0
1384
- */ /**
1508
+ * @version 204.0.0
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 202.1.0
2005
- */ /**
2129
+ * @version 204.0.0
2130
+ *//**
2006
2131
  * Constructs a new ArchitectApi.
2007
2132
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
2008
2133
  * @class
@@ -2100,7 +2225,6 @@ if(flowId===undefined||flowId===null){throw'Missing the required parameter "flow
2100
2225
  * Deletes a log level for a flow by flow id.
2101
2226
  * Deletes the associated log level for a flow by flow id
2102
2227
  * @param {String} flowId The flow id to delete the loglevel for
2103
- * deleteFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2104
2228
  */},{key:"deleteFlowInstancesSettingsLoglevels",value:function deleteFlowInstancesSettingsLoglevels(flowId){// verify the required parameter 'flowId' is set
2105
2229
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling deleteFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','DELETE',{'flowId':flowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2106
2230
  * Batch-delete a list of flows
@@ -2124,7 +2248,6 @@ if(datatableId===undefined||datatableId===null){throw'Missing the required param
2124
2248
  if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';}return this.apiClient.callApi('/api/v2/flows/datatables/{datatableId}/rows/{rowId}','DELETE',{'datatableId':datatableId,'rowId':rowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2125
2249
  * Resets the org log level to default, base
2126
2250
  * Resets the org log level to default, base
2127
- * deleteFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2128
2251
  */},{key:"deleteFlowsInstancesSettingsLoglevelsDefault",value:function deleteFlowsInstancesSettingsLoglevelsDefault(){return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/default','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2129
2252
  * Delete a flow milestone.
2130
2253
  *
@@ -2482,7 +2605,6 @@ if(historyId===undefined||historyId===null){throw'Missing the required parameter
2482
2605
  * @param {String} flowId The flow id to get the loglevel for
2483
2606
  * @param {Object} opts Optional parameters
2484
2607
  * @param {Array.<String>} opts.expand Expand instructions for the result
2485
- * getFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2486
2608
  */},{key:"getFlowInstancesSettingsLoglevels",value:function getFlowInstancesSettingsLoglevels(flowId,opts){opts=opts||{};// verify the required parameter 'flowId' is set
2487
2609
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling getFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','GET',{'flowId':flowId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2488
2610
  * Get the latest configuration for flow
@@ -2692,7 +2814,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
2692
2814
  */},{key:"getFlowsInstancesQuerycapabilities",value:function getFlowsInstancesQuerycapabilities(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/instances/querycapabilities','GET',{},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2693
2815
  * Get the execution history enabled setting.
2694
2816
  * Get the execution history enabled setting.
2695
- * getFlowsInstancesSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2696
2817
  */},{key:"getFlowsInstancesSettingsExecutiondata",value:function getFlowsInstancesSettingsExecutiondata(){return this.apiClient.callApi('/api/v2/flows/instances/settings/executiondata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2697
2818
  * Retrieve a list of LogLevels for the organization.
2698
2819
  * Returns a paged set of LogLevels per flow id
@@ -2700,17 +2821,14 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
2700
2821
  * @param {Array.<String>} opts.expand Expand instructions for the result
2701
2822
  * @param {Number} opts.pageNumber Page number (default to 1)
2702
2823
  * @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
2703
- * getFlowsInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2704
2824
  */},{key:"getFlowsInstancesSettingsLoglevels",value:function getFlowsInstancesSettingsLoglevels(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2705
2825
  * Gets the available flow log level characteristics for this organization.
2706
2826
  * Log levels can be customized and this returns the set of available characteristics that can be enabled/disabled.
2707
- * getFlowsInstancesSettingsLoglevelsCharacteristics is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2708
2827
  */},{key:"getFlowsInstancesSettingsLoglevelsCharacteristics",value:function getFlowsInstancesSettingsLoglevelsCharacteristics(){return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/characteristics','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2709
2828
  * Returns the flow default log level.
2710
2829
  * Returns the flow default log level which will be used if no specific flow id log level is found.
2711
2830
  * @param {Object} opts Optional parameters
2712
2831
  * @param {Array.<String>} opts.expand Expand instructions for the result
2713
- * getFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2714
2832
  */},{key:"getFlowsInstancesSettingsLoglevelsDefault",value:function getFlowsInstancesSettingsLoglevelsDefault(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/default','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2715
2833
  * Fetch Architect Job Status
2716
2834
  *
@@ -2798,7 +2916,6 @@ if(languageCode===undefined||languageCode===null){throw'Missing the required par
2798
2916
  * Edit the execution history enabled setting.
2799
2917
  * Edit the execution history enabled setting.
2800
2918
  * @param {Object} body New Execution Data Setting
2801
- * patchFlowsInstancesSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2802
2919
  */},{key:"patchFlowsInstancesSettingsExecutiondata",value:function patchFlowsInstancesSettingsExecutiondata(body){// verify the required parameter 'body' is set
2803
2920
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchFlowsInstancesSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/flows/instances/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2804
2921
  * Rebuild Dependency Tracking data for an organization
@@ -2898,7 +3015,6 @@ if(flowId===undefined||flowId===null){throw'Missing the required parameter "flow
2898
3015
  * @param {Object} body New LogLevel settings
2899
3016
  * @param {Object} opts Optional parameters
2900
3017
  * @param {Array.<String>} opts.expand Expand instructions for the result
2901
- * postFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2902
3018
  */},{key:"postFlowInstancesSettingsLoglevels",value:function postFlowInstancesSettingsLoglevels(flowId,body,opts){opts=opts||{};// verify the required parameter 'flowId' is set
2903
3019
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';}// verify the required parameter 'body' is set
2904
3020
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','POST',{'flowId':flowId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -3071,7 +3187,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3071
3187
  * @param {Object} body New LogLevel settings
3072
3188
  * @param {Object} opts Optional parameters
3073
3189
  * @param {Array.<String>} opts.expand Expand instructions for the result
3074
- * putFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3075
3190
  */},{key:"putFlowInstancesSettingsLoglevels",value:function putFlowInstancesSettingsLoglevels(flowId,body,opts){opts=opts||{};// verify the required parameter 'flowId' is set
3076
3191
  if(flowId===undefined||flowId===null){throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';}// verify the required parameter 'body' is set
3077
3192
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFlowInstancesSettingsLoglevels';}return this.apiClient.callApi('/api/v2/flows/{flowId}/instances/settings/loglevels','PUT',{'flowId':flowId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -3098,7 +3213,6 @@ if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId"
3098
3213
  * @param {Object} body New LogLevel settings
3099
3214
  * @param {Object} opts Optional parameters
3100
3215
  * @param {Array.<String>} opts.expand Expand instructions for the result
3101
- * putFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3102
3216
  */},{key:"putFlowsInstancesSettingsLoglevelsDefault",value:function putFlowsInstancesSettingsLoglevelsDefault(body,opts){opts=opts||{};// verify the required parameter 'body' is set
3103
3217
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFlowsInstancesSettingsLoglevelsDefault';}return this.apiClient.callApi('/api/v2/flows/instances/settings/loglevels/default','PUT',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
3104
3218
  * Updates a flow milestone
@@ -3117,8 +3231,8 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
3117
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(){/**
3118
3232
  * Audit service.
3119
3233
  * @module purecloud-platform-client-v2/api/AuditApi
3120
- * @version 202.1.0
3121
- */ /**
3234
+ * @version 204.0.0
3235
+ *//**
3122
3236
  * Constructs a new AuditApi.
3123
3237
  * @alias module:purecloud-platform-client-v2/api/AuditApi
3124
3238
  * @class
@@ -3167,8 +3281,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3167
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(){/**
3168
3282
  * Authorization service.
3169
3283
  * @module purecloud-platform-client-v2/api/AuthorizationApi
3170
- * @version 202.1.0
3171
- */ /**
3284
+ * @version 204.0.0
3285
+ *//**
3172
3286
  * Constructs a new AuthorizationApi.
3173
3287
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
3174
3288
  * @class
@@ -3318,6 +3432,9 @@ if(roleId===undefined||roleId===null){throw'Missing the required parameter "role
3318
3432
  * @param {Boolean} opts.userCount (default to true)
3319
3433
  * @param {Array.<String>} opts.id id
3320
3434
  */},{key:"getAuthorizationRoles",value:function getAuthorizationRoles(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/roles','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'name':opts['name'],'permission':this.apiClient.buildCollectionParam(opts['permission'],'multi'),'defaultRoleId':this.apiClient.buildCollectionParam(opts['defaultRoleId'],'multi'),'userCount':opts['userCount'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
3435
+ * Get authorization role settings
3436
+ *
3437
+ */},{key:"getAuthorizationRolesSettings",value:function getAuthorizationRolesSettings(){return this.apiClient.callApi('/api/v2/authorization/roles/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
3321
3438
  * Get authorization settings
3322
3439
  *
3323
3440
  */},{key:"getAuthorizationSettings",value:function getAuthorizationSettings(){return this.apiClient.callApi('/api/v2/authorization/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -3473,6 +3590,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3473
3590
  * @param {Array.<Object>} body Organization roles list
3474
3591
  */},{key:"putAuthorizationRolesDefault",value:function putAuthorizationRolesDefault(body){// verify the required parameter 'body' is set
3475
3592
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationRolesDefault';}return this.apiClient.callApi('/api/v2/authorization/roles/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
3593
+ * Change authorization role settings
3594
+ * Change role settings
3595
+ * @param {Object} body Authorization Role Settings
3596
+ */},{key:"putAuthorizationRolesSettings",value:function putAuthorizationRolesSettings(body){// verify the required parameter 'body' is set
3597
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationRolesSettings';}return this.apiClient.callApi('/api/v2/authorization/roles/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
3476
3598
  * Sets the user's roles
3477
3599
  *
3478
3600
  * @param {String} subjectId User ID
@@ -3482,8 +3604,8 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
3482
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(){/**
3483
3605
  * Billing service.
3484
3606
  * @module purecloud-platform-client-v2/api/BillingApi
3485
- * @version 202.1.0
3486
- */ /**
3607
+ * @version 204.0.0
3608
+ *//**
3487
3609
  * Constructs a new BillingApi.
3488
3610
  * @alias module:purecloud-platform-client-v2/api/BillingApi
3489
3611
  * @class
@@ -3506,8 +3628,8 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
3506
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(){/**
3507
3629
  * CarrierServices service.
3508
3630
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
3509
- * @version 202.1.0
3510
- */ /**
3631
+ * @version 204.0.0
3632
+ *//**
3511
3633
  * Constructs a new CarrierServicesApi.
3512
3634
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
3513
3635
  * @class
@@ -3526,8 +3648,8 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
3526
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(){/**
3527
3649
  * Chat service.
3528
3650
  * @module purecloud-platform-client-v2/api/ChatApi
3529
- * @version 202.1.0
3530
- */ /**
3651
+ * @version 204.0.0
3652
+ *//**
3531
3653
  * Constructs a new ChatApi.
3532
3654
  * @alias module:purecloud-platform-client-v2/api/ChatApi
3533
3655
  * @class
@@ -3751,8 +3873,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3751
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(){/**
3752
3874
  * Coaching service.
3753
3875
  * @module purecloud-platform-client-v2/api/CoachingApi
3754
- * @version 202.1.0
3755
- */ /**
3876
+ * @version 204.0.0
3877
+ *//**
3756
3878
  * Constructs a new CoachingApi.
3757
3879
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
3758
3880
  * @class
@@ -3904,8 +4026,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3904
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(){/**
3905
4027
  * ContentManagement service.
3906
4028
  * @module purecloud-platform-client-v2/api/ContentManagementApi
3907
- * @version 202.1.0
3908
- */ /**
4029
+ * @version 204.0.0
4030
+ *//**
3909
4031
  * Constructs a new ContentManagementApi.
3910
4032
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
3911
4033
  * @class
@@ -4187,8 +4309,8 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
4187
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(){/**
4188
4310
  * Conversations service.
4189
4311
  * @module purecloud-platform-client-v2/api/ConversationsApi
4190
- * @version 202.1.0
4191
- */ /**
4312
+ * @version 204.0.0
4313
+ *//**
4192
4314
  * Constructs a new ConversationsApi.
4193
4315
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
4194
4316
  * @class
@@ -5909,8 +6031,8 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
5909
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(){/**
5910
6032
  * DataExtensions service.
5911
6033
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
5912
- * @version 202.1.0
5913
- */ /**
6034
+ * @version 204.0.0
6035
+ *//**
5914
6036
  * Constructs a new DataExtensionsApi.
5915
6037
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
5916
6038
  * @class
@@ -5930,8 +6052,8 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
5930
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(){/**
5931
6053
  * Downloads service.
5932
6054
  * @module purecloud-platform-client-v2/api/DownloadsApi
5933
- * @version 202.1.0
5934
- */ /**
6055
+ * @version 204.0.0
6056
+ *//**
5935
6057
  * Constructs a new DownloadsApi.
5936
6058
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
5937
6059
  * @class
@@ -5949,8 +6071,8 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
5949
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(){/**
5950
6072
  * Emails service.
5951
6073
  * @module purecloud-platform-client-v2/api/EmailsApi
5952
- * @version 202.1.0
5953
- */ /**
6074
+ * @version 204.0.0
6075
+ *//**
5954
6076
  * Constructs a new EmailsApi.
5955
6077
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
5956
6078
  * @class
@@ -5967,8 +6089,8 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
5967
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(){/**
5968
6090
  * EmployeeEngagement service.
5969
6091
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
5970
- * @version 202.1.0
5971
- */ /**
6092
+ * @version 204.0.0
6093
+ *//**
5972
6094
  * Constructs a new EmployeeEngagementApi.
5973
6095
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
5974
6096
  * @class
@@ -6005,8 +6127,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6005
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(){/**
6006
6128
  * Events service.
6007
6129
  * @module purecloud-platform-client-v2/api/EventsApi
6008
- * @version 202.1.0
6009
- */ /**
6130
+ * @version 204.0.0
6131
+ *//**
6010
6132
  * Constructs a new EventsApi.
6011
6133
  * @alias module:purecloud-platform-client-v2/api/EventsApi
6012
6134
  * @class
@@ -6030,8 +6152,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6030
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(){/**
6031
6153
  * ExternalContacts service.
6032
6154
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
6033
- * @version 202.1.0
6034
- */ /**
6155
+ * @version 204.0.0
6156
+ *//**
6035
6157
  * Constructs a new ExternalContactsApi.
6036
6158
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
6037
6159
  * @class
@@ -6055,6 +6177,12 @@ if(noteId===undefined||noteId===null){throw'Missing the required parameter "note
6055
6177
  * @param {String} schemaId Schema ID
6056
6178
  */},{key:"deleteExternalcontactsContactsSchema",value:function deleteExternalcontactsContactsSchema(schemaId){// verify the required parameter 'schemaId' is set
6057
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']);}/**
6058
6186
  * Delete an external organization
6059
6187
  *
6060
6188
  * @param {String} externalOrganizationId External Organization ID
@@ -6081,7 +6209,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
6081
6209
  *
6082
6210
  * @param {String} contactId ExternalContact ID
6083
6211
  * @param {Object} opts Optional parameters
6084
- * @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
6085
6213
  */},{key:"getExternalcontactsContact",value:function getExternalcontactsContact(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
6086
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']);}/**
6087
6215
  * List the identifiers for a contact
@@ -6153,6 +6281,21 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
6153
6281
  * Get a list of schemas.
6154
6282
  *
6155
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']);}/**
6156
6299
  * Fetch an external organization
6157
6300
  *
6158
6301
  * @param {String} externalOrganizationId External Organization ID
@@ -6384,6 +6527,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6384
6527
  * @param {Object} body Schema
6385
6528
  */},{key:"postExternalcontactsContactsSchemas",value:function postExternalcontactsContactsSchemas(body){// verify the required parameter 'body' is set
6386
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']);}/**
6387
6536
  * Fetch a contact using an identifier type and value.
6388
6537
  * Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
6389
6538
  * @param {Object} identifier
@@ -6448,6 +6597,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6448
6597
  */},{key:"putExternalcontactsConversation",value:function putExternalcontactsConversation(conversationId,body){// verify the required parameter 'conversationId' is set
6449
6598
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';}// verify the required parameter 'body' is set
6450
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']);}/**
6451
6608
  * Update an external organization
6452
6609
  *
6453
6610
  * @param {String} externalOrganizationId External Organization ID
@@ -6487,8 +6644,8 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
6487
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(){/**
6488
6645
  * Fax service.
6489
6646
  * @module purecloud-platform-client-v2/api/FaxApi
6490
- * @version 202.1.0
6491
- */ /**
6647
+ * @version 204.0.0
6648
+ *//**
6492
6649
  * Constructs a new FaxApi.
6493
6650
  * @alias module:purecloud-platform-client-v2/api/FaxApi
6494
6651
  * @class
@@ -6536,8 +6693,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6536
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(){/**
6537
6694
  * Flows service.
6538
6695
  * @module purecloud-platform-client-v2/api/FlowsApi
6539
- * @version 202.1.0
6540
- */ /**
6696
+ * @version 204.0.0
6697
+ *//**
6541
6698
  * Constructs a new FlowsApi.
6542
6699
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
6543
6700
  * @class
@@ -6584,8 +6741,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6584
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(){/**
6585
6742
  * Gamification service.
6586
6743
  * @module purecloud-platform-client-v2/api/GamificationApi
6587
- * @version 202.1.0
6588
- */ /**
6744
+ * @version 204.0.0
6745
+ *//**
6589
6746
  * Constructs a new GamificationApi.
6590
6747
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
6591
6748
  * @class
@@ -7124,8 +7281,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7124
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(){/**
7125
7282
  * GeneralDataProtectionRegulation service.
7126
7283
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
7127
- * @version 202.1.0
7128
- */ /**
7284
+ * @version 204.0.0
7285
+ *//**
7129
7286
  * Constructs a new GeneralDataProtectionRegulationApi.
7130
7287
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
7131
7288
  * @class
@@ -7159,8 +7316,8 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
7159
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(){/**
7160
7317
  * Geolocation service.
7161
7318
  * @module purecloud-platform-client-v2/api/GeolocationApi
7162
- * @version 202.1.0
7163
- */ /**
7319
+ * @version 204.0.0
7320
+ *//**
7164
7321
  * Constructs a new GeolocationApi.
7165
7322
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
7166
7323
  * @class
@@ -7193,8 +7350,8 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
7193
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(){/**
7194
7351
  * Greetings service.
7195
7352
  * @module purecloud-platform-client-v2/api/GreetingsApi
7196
- * @version 202.1.0
7197
- */ /**
7353
+ * @version 204.0.0
7354
+ *//**
7198
7355
  * Constructs a new GreetingsApi.
7199
7356
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
7200
7357
  * @class
@@ -7300,8 +7457,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
7300
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(){/**
7301
7458
  * Groups service.
7302
7459
  * @module purecloud-platform-client-v2/api/GroupsApi
7303
- * @version 202.1.0
7304
- */ /**
7460
+ * @version 204.0.0
7461
+ *//**
7305
7462
  * Constructs a new GroupsApi.
7306
7463
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
7307
7464
  * @class
@@ -7433,8 +7590,8 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
7433
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(){/**
7434
7591
  * IdentityProvider service.
7435
7592
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
7436
- * @version 202.1.0
7437
- */ /**
7593
+ * @version 204.0.0
7594
+ *//**
7438
7595
  * Constructs a new IdentityProviderApi.
7439
7596
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
7440
7597
  * @class
@@ -7589,8 +7746,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7589
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(){/**
7590
7747
  * InfrastructureAsCode service.
7591
7748
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
7592
- * @version 202.1.0
7593
- */ /**
7749
+ * @version 204.0.0
7750
+ *//**
7594
7751
  * Constructs a new InfrastructureAsCodeApi.
7595
7752
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
7596
7753
  * @class
@@ -7643,8 +7800,8 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
7643
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(){/**
7644
7801
  * Integrations service.
7645
7802
  * @module purecloud-platform-client-v2/api/IntegrationsApi
7646
- * @version 202.1.0
7647
- */ /**
7803
+ * @version 204.0.0
7804
+ *//**
7648
7805
  * Constructs a new IntegrationsApi.
7649
7806
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
7650
7807
  * @class
@@ -8257,8 +8414,8 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
8257
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(){/**
8258
8415
  * Journey service.
8259
8416
  * @module purecloud-platform-client-v2/api/JourneyApi
8260
- * @version 202.1.0
8261
- */ /**
8417
+ * @version 204.0.0
8418
+ *//**
8262
8419
  * Constructs a new JourneyApi.
8263
8420
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
8264
8421
  * @class
@@ -8295,7 +8452,6 @@ if(segmentId===undefined||segmentId===null){throw'Missing the required parameter
8295
8452
  * Delete a Journey View by ID
8296
8453
  * deletes all versions
8297
8454
  * @param {String} viewId viewId
8298
- * deleteJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8299
8455
  */},{key:"deleteJourneyView",value:function deleteJourneyView(viewId){// verify the required parameter 'viewId' is set
8300
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']);}/**
8301
8457
  * Get status for async query for journey aggregates
@@ -8461,14 +8617,12 @@ if(sessionId===undefined||sessionId===null){throw'Missing the required parameter
8461
8617
  * Get a Journey View by ID
8462
8618
  * returns the latest version
8463
8619
  * @param {String} viewId viewId
8464
- * getJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8465
8620
  */},{key:"getJourneyView",value:function getJourneyView(viewId){// verify the required parameter 'viewId' is set
8466
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']);}/**
8467
8622
  * Get a Journey View by ID and version
8468
8623
  *
8469
8624
  * @param {String} viewId viewId
8470
8625
  * @param {String} versionId versionId
8471
- * getJourneyViewVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8472
8626
  */},{key:"getJourneyViewVersion",value:function getJourneyViewVersion(viewId,versionId){// verify the required parameter 'viewId' is set
8473
8627
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';}// verify the required parameter 'versionId' is set
8474
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']);}/**
@@ -8477,7 +8631,6 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
8477
8631
  * @param {String} viewId Journey View Id
8478
8632
  * @param {String} journeyVersionId Journey View Version
8479
8633
  * @param {String} jobId JobId
8480
- * getJourneyViewVersionJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8481
8634
  */},{key:"getJourneyViewVersionJob",value:function getJourneyViewVersionJob(viewId,journeyVersionId,jobId){// verify the required parameter 'viewId' is set
8482
8635
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';}// verify the required parameter 'journeyVersionId' is set
8483
8636
  if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';}// verify the required parameter 'jobId' is set
@@ -8487,7 +8640,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
8487
8640
  * @param {String} viewId JourneyViewResult id
8488
8641
  * @param {String} journeyViewVersion Journey View Version
8489
8642
  * @param {String} jobId Id of the executing job
8490
- * getJourneyViewVersionJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8491
8643
  */},{key:"getJourneyViewVersionJobResults",value:function getJourneyViewVersionJobResults(viewId,journeyViewVersion,jobId){// verify the required parameter 'viewId' is set
8492
8644
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';}// verify the required parameter 'journeyViewVersion' is set
8493
8645
  if(journeyViewVersion===undefined||journeyViewVersion===null){throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';}// verify the required parameter 'jobId' is set
@@ -8496,7 +8648,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
8496
8648
  * used for long descriptions
8497
8649
  * @param {String} viewId Journey View Id
8498
8650
  * @param {String} journeyVersionId Journey View Version
8499
- * getJourneyViewVersionJobsLatest is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8500
8651
  */},{key:"getJourneyViewVersionJobsLatest",value:function getJourneyViewVersionJobsLatest(viewId,journeyVersionId){// verify the required parameter 'viewId' is set
8501
8652
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';}// verify the required parameter 'journeyVersionId' is set
8502
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']);}/**
@@ -8507,8 +8658,8 @@ if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the requ
8507
8658
  * @param {Number} opts.pageSize Page size (default to 25)
8508
8659
  * @param {String} opts.nameOrCreatedBy Journey View Name or Created By
8509
8660
  * @param {Object} opts.expand Parameter to request additional data to return in Journey payload
8510
- * getJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8511
- */},{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']);}/**
8512
8663
  * Get an Event Definition
8513
8664
  *
8514
8665
  * @param {String} eventDefinitionId Event Definition ID
@@ -8526,7 +8677,6 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
8526
8677
  * @param {Number} opts.pageSize Max number of entities to return (default to 25)
8527
8678
  * @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
8528
8679
  * @param {String} opts.statuses Job statuses to filter for
8529
- * getJourneyViewsJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8530
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']);}/**
8531
8681
  * Update single action map.
8532
8682
  *
@@ -8640,7 +8790,6 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
8640
8790
  * used for long descriptions
8641
8791
  * @param {String} viewId Journey View Id
8642
8792
  * @param {String} journeyVersionId Journey View Version
8643
- * postJourneyViewVersionJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8644
8793
  */},{key:"postJourneyViewVersionJobs",value:function postJourneyViewVersionJobs(viewId,journeyVersionId){// verify the required parameter 'viewId' is set
8645
8794
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';}// verify the required parameter 'journeyVersionId' is set
8646
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']);}/**
@@ -8648,14 +8797,12 @@ if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the requ
8648
8797
  * creates a new version
8649
8798
  * @param {String} viewId viewId
8650
8799
  * @param {Object} body JourneyView
8651
- * postJourneyViewVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8652
8800
  */},{key:"postJourneyViewVersions",value:function postJourneyViewVersions(viewId,body){// verify the required parameter 'viewId' is set
8653
8801
  if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';}// verify the required parameter 'body' is set
8654
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']);}/**
8655
8803
  * Create a new Journey View
8656
8804
  *
8657
8805
  * @param {Object} body JourneyView
8658
- * postJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8659
8806
  */},{key:"postJourneyViews",value:function postJourneyViews(body){// verify the required parameter 'body' is set
8660
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']);}/**
8661
8808
  * Validate whether an encoding exist for a label/value combination.
@@ -8666,8 +8813,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8666
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(){/**
8667
8814
  * Knowledge service.
8668
8815
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8669
- * @version 202.1.0
8670
- */ /**
8816
+ * @version 204.0.0
8817
+ *//**
8671
8818
  * Constructs a new KnowledgeApi.
8672
8819
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
8673
8820
  * @class
@@ -9187,6 +9334,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9187
9334
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';}// verify the required parameter 'documentId' is set
9188
9335
  if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';}// verify the required parameter 'body' is set
9189
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']);}/**
9190
9348
  * Update a variation for a document.
9191
9349
  *
9192
9350
  * @param {String} documentVariationId Globally unique identifier for a document variation.
@@ -9324,6 +9482,13 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
9324
9482
  */},{key:"postKnowledgeGuestSessionDocumentViews",value:function postKnowledgeGuestSessionDocumentViews(sessionId,documentId,opts){opts=opts||{};// verify the required parameter 'sessionId' is set
9325
9483
  if(sessionId===undefined||sessionId===null){throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';}// verify the required parameter 'documentId' is set
9326
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']);}/**
9327
9492
  * Indicate that documents were presented to the user.
9328
9493
  *
9329
9494
  * @param {String} sessionId Knowledge guest session ID.
@@ -9410,6 +9575,13 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
9410
9575
  */},{key:"postKnowledgeKnowledgebaseDocuments",value:function postKnowledgeKnowledgebaseDocuments(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
9411
9576
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';}// verify the required parameter 'body' is set
9412
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']);}/**
9413
9585
  * Bulk remove documents.
9414
9586
  *
9415
9587
  * @param {String} knowledgeBaseId Knowledge base ID
@@ -9433,6 +9605,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9433
9605
  * @param {Object} opts.body
9434
9606
  */},{key:"postKnowledgeKnowledgebaseDocumentsPresentations",value:function postKnowledgeKnowledgebaseDocumentsPresentations(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
9435
9607
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsPresentations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/presentations','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
9608
+ * Query for knowledge documents.
9609
+ *
9610
+ * @param {String} knowledgeBaseId Knowledge Base ID
9611
+ * @param {Object} opts Optional parameters
9612
+ * @param {Array.<String>} opts.expand Fields, if any, to expand for each document in the search result matching the query.
9613
+ * @param {Object} opts.body
9614
+ */},{key:"postKnowledgeKnowledgebaseDocumentsQuery",value:function postKnowledgeKnowledgebaseDocumentsQuery(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
9615
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsQuery';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/query','POST',{'knowledgeBaseId':knowledgeBaseId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
9436
9616
  * Search the documents in a knowledge base.
9437
9617
  *
9438
9618
  * @param {String} knowledgeBaseId The ID of knowledge base containing the documents to query.
@@ -9579,8 +9759,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9579
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(){/**
9580
9760
  * LanguageUnderstanding service.
9581
9761
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
9582
- * @version 202.1.0
9583
- */ /**
9762
+ * @version 204.0.0
9763
+ *//**
9584
9764
  * Constructs a new LanguageUnderstandingApi.
9585
9765
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
9586
9766
  * @class
@@ -9839,8 +10019,8 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
9839
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(){/**
9840
10020
  * Languages service.
9841
10021
  * @module purecloud-platform-client-v2/api/LanguagesApi
9842
- * @version 202.1.0
9843
- */ /**
10022
+ * @version 204.0.0
10023
+ *//**
9844
10024
  * Constructs a new LanguagesApi.
9845
10025
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
9846
10026
  * @class
@@ -9894,8 +10074,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
9894
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(){/**
9895
10075
  * Learning service.
9896
10076
  * @module purecloud-platform-client-v2/api/LearningApi
9897
- * @version 202.1.0
9898
- */ /**
10077
+ * @version 204.0.0
10078
+ *//**
9899
10079
  * Constructs a new LearningApi.
9900
10080
  * @alias module:purecloud-platform-client-v2/api/LearningApi
9901
10081
  * @class
@@ -10165,8 +10345,8 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
10165
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(){/**
10166
10346
  * License service.
10167
10347
  * @module purecloud-platform-client-v2/api/LicenseApi
10168
- * @version 202.1.0
10169
- */ /**
10348
+ * @version 204.0.0
10349
+ *//**
10170
10350
  * Constructs a new LicenseApi.
10171
10351
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
10172
10352
  * @class
@@ -10219,8 +10399,8 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
10219
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(){/**
10220
10400
  * Locations service.
10221
10401
  * @module purecloud-platform-client-v2/api/LocationsApi
10222
- * @version 202.1.0
10223
- */ /**
10402
+ * @version 204.0.0
10403
+ *//**
10224
10404
  * Constructs a new LocationsApi.
10225
10405
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
10226
10406
  * @class
@@ -10278,8 +10458,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10278
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(){/**
10279
10459
  * LogCapture service.
10280
10460
  * @module purecloud-platform-client-v2/api/LogCaptureApi
10281
- * @version 202.1.0
10282
- */ /**
10461
+ * @version 204.0.0
10462
+ *//**
10283
10463
  * Constructs a new LogCaptureApi.
10284
10464
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
10285
10465
  * @class
@@ -10328,8 +10508,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
10328
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(){/**
10329
10509
  * Messaging service.
10330
10510
  * @module purecloud-platform-client-v2/api/MessagingApi
10331
- * @version 202.1.0
10332
- */ /**
10511
+ * @version 204.0.0
10512
+ *//**
10333
10513
  * Constructs a new MessagingApi.
10334
10514
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
10335
10515
  * @class
@@ -10418,8 +10598,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10418
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(){/**
10419
10599
  * MobileDevices service.
10420
10600
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
10421
- * @version 202.1.0
10422
- */ /**
10601
+ * @version 204.0.0
10602
+ *//**
10423
10603
  * Constructs a new MobileDevicesApi.
10424
10604
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
10425
10605
  * @class
@@ -10457,8 +10637,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10457
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(){/**
10458
10638
  * Notifications service.
10459
10639
  * @module purecloud-platform-client-v2/api/NotificationsApi
10460
- * @version 202.1.0
10461
- */ /**
10640
+ * @version 204.0.0
10641
+ *//**
10462
10642
  * Constructs a new NotificationsApi.
10463
10643
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
10464
10644
  * @class
@@ -10514,8 +10694,8 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
10514
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(){/**
10515
10695
  * OAuth service.
10516
10696
  * @module purecloud-platform-client-v2/api/OAuthApi
10517
- * @version 202.1.0
10518
- */ /**
10697
+ * @version 204.0.0
10698
+ *//**
10519
10699
  * Constructs a new OAuthApi.
10520
10700
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
10521
10701
  * @class
@@ -10599,8 +10779,8 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
10599
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(){/**
10600
10780
  * Objects service.
10601
10781
  * @module purecloud-platform-client-v2/api/ObjectsApi
10602
- * @version 202.1.0
10603
- */ /**
10782
+ * @version 204.0.0
10783
+ *//**
10604
10784
  * Constructs a new ObjectsApi.
10605
10785
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
10606
10786
  * @class
@@ -10670,8 +10850,8 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
10670
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(){/**
10671
10851
  * OperationalEvents service.
10672
10852
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
10673
- * @version 202.1.0
10674
- */ /**
10853
+ * @version 204.0.0
10854
+ *//**
10675
10855
  * Constructs a new OperationalEventsApi.
10676
10856
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
10677
10857
  * @class
@@ -10688,8 +10868,8 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
10688
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(){/**
10689
10869
  * Organization service.
10690
10870
  * @module purecloud-platform-client-v2/api/OrganizationApi
10691
- * @version 202.1.0
10692
- */ /**
10871
+ * @version 204.0.0
10872
+ *//**
10693
10873
  * Constructs a new OrganizationApi.
10694
10874
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
10695
10875
  * @class
@@ -10813,8 +10993,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10813
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(){/**
10814
10994
  * OrganizationAuthorization service.
10815
10995
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
10816
- * @version 202.1.0
10817
- */ /**
10996
+ * @version 204.0.0
10997
+ *//**
10818
10998
  * Constructs a new OrganizationAuthorizationApi.
10819
10999
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
10820
11000
  * @class
@@ -11136,8 +11316,8 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
11136
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(){/**
11137
11317
  * Outbound service.
11138
11318
  * @module purecloud-platform-client-v2/api/OutboundApi
11139
- * @version 202.1.0
11140
- */ /**
11319
+ * @version 204.0.0
11320
+ *//**
11141
11321
  * Constructs a new OutboundApi.
11142
11322
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
11143
11323
  * @class
@@ -12215,8 +12395,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12215
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(){/**
12216
12396
  * Presence service.
12217
12397
  * @module purecloud-platform-client-v2/api/PresenceApi
12218
- * @version 202.1.0
12219
- */ /**
12398
+ * @version 204.0.0
12399
+ *//**
12220
12400
  * Constructs a new PresenceApi.
12221
12401
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
12222
12402
  * @class
@@ -12388,8 +12568,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12388
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(){/**
12389
12569
  * ProcessAutomation service.
12390
12570
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
12391
- * @version 202.1.0
12392
- */ /**
12571
+ * @version 204.0.0
12572
+ *//**
12393
12573
  * Constructs a new ProcessAutomationApi.
12394
12574
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
12395
12575
  * @class
@@ -12451,8 +12631,8 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
12451
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(){/**
12452
12632
  * Quality service.
12453
12633
  * @module purecloud-platform-client-v2/api/QualityApi
12454
- * @version 202.1.0
12455
- */ /**
12634
+ * @version 204.0.0
12635
+ *//**
12456
12636
  * Constructs a new QualityApi.
12457
12637
  * @alias module:purecloud-platform-client-v2/api/QualityApi
12458
12638
  * @class
@@ -12928,8 +13108,8 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
12928
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(){/**
12929
13109
  * Recording service.
12930
13110
  * @module purecloud-platform-client-v2/api/RecordingApi
12931
- * @version 202.1.0
12932
- */ /**
13111
+ * @version 204.0.0
13112
+ *//**
12933
13113
  * Constructs a new RecordingApi.
12934
13114
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
12935
13115
  * @class
@@ -13340,8 +13520,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13340
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(){/**
13341
13521
  * ResponseManagement service.
13342
13522
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
13343
- * @version 202.1.0
13344
- */ /**
13523
+ * @version 204.0.0
13524
+ *//**
13345
13525
  * Constructs a new ResponseManagementApi.
13346
13526
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
13347
13527
  * @class
@@ -13461,8 +13641,8 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
13461
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(){/**
13462
13642
  * Routing service.
13463
13643
  * @module purecloud-platform-client-v2/api/RoutingApi
13464
- * @version 202.1.0
13465
- */ /**
13644
+ * @version 204.0.0
13645
+ *//**
13466
13646
  * Constructs a new RoutingApi.
13467
13647
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
13468
13648
  * @class
@@ -13749,6 +13929,13 @@ if(predictorId===undefined||predictorId===null){throw'Missing the required param
13749
13929
  * @param {String} queueId Queue ID
13750
13930
  */},{key:"getRoutingQueue",value:function getRoutingQueue(queueId){// verify the required parameter 'queueId' is set
13751
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']);}/**
13752
13939
  * Get a Comparison Period.
13753
13940
  *
13754
13941
  * @param {String} queueId Queue id
@@ -14458,8 +14645,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14458
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(){/**
14459
14646
  * SCIM service.
14460
14647
  * @module purecloud-platform-client-v2/api/SCIMApi
14461
- * @version 202.1.0
14462
- */ /**
14648
+ * @version 204.0.0
14649
+ *//**
14463
14650
  * Constructs a new SCIMApi.
14464
14651
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
14465
14652
  * @class
@@ -14683,8 +14870,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14683
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(){/**
14684
14871
  * ScreenRecording service.
14685
14872
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
14686
- * @version 202.1.0
14687
- */ /**
14873
+ * @version 204.0.0
14874
+ *//**
14688
14875
  * Constructs a new ScreenRecordingApi.
14689
14876
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
14690
14877
  * @class
@@ -14698,8 +14885,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14698
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(){/**
14699
14886
  * Scripts service.
14700
14887
  * @module purecloud-platform-client-v2/api/ScriptsApi
14701
- * @version 202.1.0
14702
- */ /**
14888
+ * @version 204.0.0
14889
+ *//**
14703
14890
  * Constructs a new ScriptsApi.
14704
14891
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
14705
14892
  * @class
@@ -14834,8 +15021,8 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
14834
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(){/**
14835
15022
  * Search service.
14836
15023
  * @module purecloud-platform-client-v2/api/SearchApi
14837
- * @version 202.1.0
14838
- */ /**
15024
+ * @version 204.0.0
15025
+ *//**
14839
15026
  * Constructs a new SearchApi.
14840
15027
  * @alias module:purecloud-platform-client-v2/api/SearchApi
14841
15028
  * @class
@@ -14994,8 +15181,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14994
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(){/**
14995
15182
  * Settings service.
14996
15183
  * @module purecloud-platform-client-v2/api/SettingsApi
14997
- * @version 202.1.0
14998
- */ /**
15184
+ * @version 204.0.0
15185
+ *//**
14999
15186
  * Constructs a new SettingsApi.
15000
15187
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
15001
15188
  * @class
@@ -15012,7 +15199,6 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
15012
15199
  */},{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
15013
15200
  * Get the execution history enabled setting.
15014
15201
  * Get the execution history enabled setting.
15015
- * getSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
15016
15202
  */},{key:"getSettingsExecutiondata",value:function getSettingsExecutiondata(){return this.apiClient.callApi('/api/v2/settings/executiondata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
15017
15203
  * Get agent auto answer settings
15018
15204
  *
@@ -15027,7 +15213,6 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
15027
15213
  * Edit the execution history on off setting.
15028
15214
  * Edit the execution history on off setting.
15029
15215
  * @param {Object} body New Execution Data Setting
15030
- * patchSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
15031
15216
  */},{key:"patchSettingsExecutiondata",value:function patchSettingsExecutiondata(body){// verify the required parameter 'body' is set
15032
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']);}/**
15033
15218
  * Update agent auto answer settings
@@ -15046,8 +15231,8 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
15046
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(){/**
15047
15232
  * SpeechTextAnalytics service.
15048
15233
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
15049
- * @version 202.1.0
15050
- */ /**
15234
+ * @version 204.0.0
15235
+ *//**
15051
15236
  * Constructs a new SpeechTextAnalyticsApi.
15052
15237
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
15053
15238
  * @class
@@ -15330,8 +15515,8 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
15330
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(){/**
15331
15516
  * Stations service.
15332
15517
  * @module purecloud-platform-client-v2/api/StationsApi
15333
- * @version 202.1.0
15334
- */ /**
15518
+ * @version 204.0.0
15519
+ *//**
15335
15520
  * Constructs a new StationsApi.
15336
15521
  * @alias module:purecloud-platform-client-v2/api/StationsApi
15337
15522
  * @class
@@ -15362,8 +15547,8 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
15362
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(){/**
15363
15548
  * Suggest service.
15364
15549
  * @module purecloud-platform-client-v2/api/SuggestApi
15365
- * @version 202.1.0
15366
- */ /**
15550
+ * @version 204.0.0
15551
+ *//**
15367
15552
  * Constructs a new SuggestApi.
15368
15553
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
15369
15554
  * @class
@@ -15402,8 +15587,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15402
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(){/**
15403
15588
  * TaskManagement service.
15404
15589
  * @module purecloud-platform-client-v2/api/TaskManagementApi
15405
- * @version 202.1.0
15406
- */ /**
15590
+ * @version 204.0.0
15591
+ *//**
15407
15592
  * Constructs a new TaskManagementApi.
15408
15593
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
15409
15594
  * @class
@@ -15732,8 +15917,8 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
15732
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(){/**
15733
15918
  * Teams service.
15734
15919
  * @module purecloud-platform-client-v2/api/TeamsApi
15735
- * @version 202.1.0
15736
- */ /**
15920
+ * @version 204.0.0
15921
+ *//**
15737
15922
  * Constructs a new TeamsApi.
15738
15923
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
15739
15924
  * @class
@@ -15810,8 +15995,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15810
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(){/**
15811
15996
  * Telephony service.
15812
15997
  * @module purecloud-platform-client-v2/api/TelephonyApi
15813
- * @version 202.1.0
15814
- */ /**
15998
+ * @version 204.0.0
15999
+ *//**
15815
16000
  * Constructs a new TelephonyApi.
15816
16001
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
15817
16002
  * @class
@@ -15857,8 +16042,8 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
15857
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(){/**
15858
16043
  * TelephonyProvidersEdge service.
15859
16044
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
15860
- * @version 202.1.0
15861
- */ /**
16045
+ * @version 204.0.0
16046
+ *//**
15862
16047
  * Constructs a new TelephonyProvidersEdgeApi.
15863
16048
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
15864
16049
  * @class
@@ -16667,8 +16852,8 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
16667
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(){/**
16668
16853
  * Textbots service.
16669
16854
  * @module purecloud-platform-client-v2/api/TextbotsApi
16670
- * @version 202.1.0
16671
- */ /**
16855
+ * @version 204.0.0
16856
+ *//**
16672
16857
  * Constructs a new TextbotsApi.
16673
16858
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
16674
16859
  * @class
@@ -16702,8 +16887,8 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
16702
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(){/**
16703
16888
  * Tokens service.
16704
16889
  * @module purecloud-platform-client-v2/api/TokensApi
16705
- * @version 202.1.0
16706
- */ /**
16890
+ * @version 204.0.0
16891
+ *//**
16707
16892
  * Constructs a new TokensApi.
16708
16893
  * @alias module:purecloud-platform-client-v2/api/TokensApi
16709
16894
  * @class
@@ -16736,8 +16921,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16736
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(){/**
16737
16922
  * Uploads service.
16738
16923
  * @module purecloud-platform-client-v2/api/UploadsApi
16739
- * @version 202.1.0
16740
- */ /**
16924
+ * @version 204.0.0
16925
+ *//**
16741
16926
  * Constructs a new UploadsApi.
16742
16927
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
16743
16928
  * @class
@@ -16802,8 +16987,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16802
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(){/**
16803
16988
  * Usage service.
16804
16989
  * @module purecloud-platform-client-v2/api/UsageApi
16805
- * @version 202.1.0
16806
- */ /**
16990
+ * @version 204.0.0
16991
+ *//**
16807
16992
  * Constructs a new UsageApi.
16808
16993
  * @alias module:purecloud-platform-client-v2/api/UsageApi
16809
16994
  * @class
@@ -16856,8 +17041,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16856
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(){/**
16857
17042
  * UserRecordings service.
16858
17043
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
16859
- * @version 202.1.0
16860
- */ /**
17044
+ * @version 204.0.0
17045
+ *//**
16861
17046
  * Constructs a new UserRecordingsApi.
16862
17047
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
16863
17048
  * @class
@@ -16913,8 +17098,8 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
16913
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(){/**
16914
17099
  * Users service.
16915
17100
  * @module purecloud-platform-client-v2/api/UsersApi
16916
- * @version 202.1.0
16917
- */ /**
17101
+ * @version 204.0.0
17102
+ *//**
16918
17103
  * Constructs a new UsersApi.
16919
17104
  * @alias module:purecloud-platform-client-v2/api/UsersApi
16920
17105
  * @class
@@ -17603,8 +17788,8 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
17603
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(){/**
17604
17789
  * Utilities service.
17605
17790
  * @module purecloud-platform-client-v2/api/UtilitiesApi
17606
- * @version 202.1.0
17607
- */ /**
17791
+ * @version 204.0.0
17792
+ *//**
17608
17793
  * Constructs a new UtilitiesApi.
17609
17794
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
17610
17795
  * @class
@@ -17630,8 +17815,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17630
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(){/**
17631
17816
  * Voicemail service.
17632
17817
  * @module purecloud-platform-client-v2/api/VoicemailApi
17633
- * @version 202.1.0
17634
- */ /**
17818
+ * @version 204.0.0
17819
+ *//**
17635
17820
  * Constructs a new VoicemailApi.
17636
17821
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
17637
17822
  * @class
@@ -17779,8 +17964,8 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17779
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(){/**
17780
17965
  * WebChat service.
17781
17966
  * @module purecloud-platform-client-v2/api/WebChatApi
17782
- * @version 202.1.0
17783
- */ /**
17967
+ * @version 204.0.0
17968
+ *//**
17784
17969
  * Constructs a new WebChatApi.
17785
17970
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
17786
17971
  * @class
@@ -17914,8 +18099,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17914
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(){/**
17915
18100
  * WebDeployments service.
17916
18101
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
17917
- * @version 202.1.0
17918
- */ /**
18102
+ * @version 204.0.0
18103
+ *//**
17919
18104
  * Constructs a new WebDeploymentsApi.
17920
18105
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
17921
18106
  * @class
@@ -18035,8 +18220,8 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
18035
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(){/**
18036
18221
  * WebMessaging service.
18037
18222
  * @module purecloud-platform-client-v2/api/WebMessagingApi
18038
- * @version 202.1.0
18039
- */ /**
18223
+ * @version 204.0.0
18224
+ *//**
18040
18225
  * Constructs a new WebMessagingApi.
18041
18226
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
18042
18227
  * @class
@@ -18051,8 +18236,8 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
18051
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(){/**
18052
18237
  * Widgets service.
18053
18238
  * @module purecloud-platform-client-v2/api/WidgetsApi
18054
- * @version 202.1.0
18055
- */ /**
18239
+ * @version 204.0.0
18240
+ *//**
18056
18241
  * Constructs a new WidgetsApi.
18057
18242
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
18058
18243
  * @class
@@ -18086,8 +18271,8 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
18086
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(){/**
18087
18272
  * WorkforceManagement service.
18088
18273
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
18089
- * @version 202.1.0
18090
- */ /**
18274
+ * @version 204.0.0
18275
+ *//**
18091
18276
  * Constructs a new WorkforceManagementApi.
18092
18277
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
18093
18278
  * @class
@@ -19852,7 +20037,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
19852
20037
  * </pre>
19853
20038
  * </p>
19854
20039
  * @module purecloud-platform-client-v2/index
19855
- * @version 202.1.0
20040
+ * @version 204.0.0
19856
20041
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
19857
20042
  * The ApiClient constructor.
19858
20043
  * @property {module:purecloud-platform-client-v2/ApiClient}
@@ -19860,6 +20045,12 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
19860
20045
  * The ApiClient class.
19861
20046
  * @property {module:purecloud-platform-client-v2/ApiClient}
19862
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;/**
19863
20054
  * The AgentUIApi service constructor.
19864
20055
  * @property {module:purecloud-platform-client-v2/api/AgentUIApi}
19865
20056
  */this.AgentUIApi=AgentUIApi;/**