purecloud-platform-client-v2 207.0.0 → 209.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 (90) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1392 -162
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1392 -162
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +511 -178
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +669 -256
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +4261 -3234
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +4 -4
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -2
  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 +3 -8
  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 +31 -11
  41. package/src/purecloud-platform-client-v2/api/JourneyApi.js +136 -1
  42. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +11 -5
  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 +52 -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 +5 -3
  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 +40 -36
  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 +55 -1
  68. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +910 -0
  70. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +4 -4
  71. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +55 -1
  77. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UsersApi.js +12 -12
  83. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +7 -7
  90. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -1933,7 +1933,66 @@ function numberIsNaN (obj) {
1933
1933
  }
1934
1934
 
1935
1935
  }).call(this)}).call(this,require("buffer").Buffer)
1936
- },{"base64-js":1,"buffer":3,"ieee754":24}],4:[function(require,module,exports){
1936
+ },{"base64-js":1,"buffer":3,"ieee754":31}],4:[function(require,module,exports){
1937
+ 'use strict';
1938
+
1939
+ var bind = require('function-bind');
1940
+
1941
+ var $apply = require('./functionApply');
1942
+ var $call = require('./functionCall');
1943
+ var $reflectApply = require('./reflectApply');
1944
+
1945
+ /** @type {import('./actualApply')} */
1946
+ module.exports = $reflectApply || bind.call($call, $apply);
1947
+
1948
+ },{"./functionApply":6,"./functionCall":7,"./reflectApply":9,"function-bind":22}],5:[function(require,module,exports){
1949
+ 'use strict';
1950
+
1951
+ var bind = require('function-bind');
1952
+ var $apply = require('./functionApply');
1953
+ var actualApply = require('./actualApply');
1954
+
1955
+ /** @type {import('./applyBind')} */
1956
+ module.exports = function applyBind() {
1957
+ return actualApply(bind, $apply, arguments);
1958
+ };
1959
+
1960
+ },{"./actualApply":4,"./functionApply":6,"function-bind":22}],6:[function(require,module,exports){
1961
+ 'use strict';
1962
+
1963
+ /** @type {import('./functionApply')} */
1964
+ module.exports = Function.prototype.apply;
1965
+
1966
+ },{}],7:[function(require,module,exports){
1967
+ 'use strict';
1968
+
1969
+ /** @type {import('./functionCall')} */
1970
+ module.exports = Function.prototype.call;
1971
+
1972
+ },{}],8:[function(require,module,exports){
1973
+ 'use strict';
1974
+
1975
+ var bind = require('function-bind');
1976
+ var $TypeError = require('es-errors/type');
1977
+
1978
+ var $call = require('./functionCall');
1979
+ var $actualApply = require('./actualApply');
1980
+
1981
+ /** @type {import('.')} */
1982
+ module.exports = function callBindBasic(args) {
1983
+ if (args.length < 1 || typeof args[0] !== 'function') {
1984
+ throw new $TypeError('a function is required');
1985
+ }
1986
+ return $actualApply(bind, $call, args);
1987
+ };
1988
+
1989
+ },{"./actualApply":4,"./functionCall":7,"es-errors/type":19,"function-bind":22}],9:[function(require,module,exports){
1990
+ 'use strict';
1991
+
1992
+ /** @type {import('./reflectApply')} */
1993
+ module.exports = typeof Reflect === 'function' && Reflect.apply;
1994
+
1995
+ },{}],10:[function(require,module,exports){
1937
1996
  'use strict';
1938
1997
 
1939
1998
  var GetIntrinsic = require('get-intrinsic');
@@ -1950,44 +2009,33 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
1950
2009
  return intrinsic;
1951
2010
  };
1952
2011
 
1953
- },{"./":5,"get-intrinsic":17}],5:[function(require,module,exports){
2012
+ },{"./":11,"get-intrinsic":23}],11:[function(require,module,exports){
1954
2013
  'use strict';
1955
2014
 
1956
- var bind = require('function-bind');
1957
- var GetIntrinsic = require('get-intrinsic');
1958
2015
  var setFunctionLength = require('set-function-length');
1959
2016
 
1960
- var $TypeError = require('es-errors/type');
1961
- var $apply = GetIntrinsic('%Function.prototype.apply%');
1962
- var $call = GetIntrinsic('%Function.prototype.call%');
1963
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
1964
-
1965
2017
  var $defineProperty = require('es-define-property');
1966
- var $max = GetIntrinsic('%Math.max%');
2018
+
2019
+ var callBindBasic = require('call-bind-apply-helpers');
2020
+ var applyBind = require('call-bind-apply-helpers/applyBind');
1967
2021
 
1968
2022
  module.exports = function callBind(originalFunction) {
1969
- if (typeof originalFunction !== 'function') {
1970
- throw new $TypeError('a function is required');
1971
- }
1972
- var func = $reflectApply(bind, $call, arguments);
2023
+ var func = callBindBasic(arguments);
2024
+ var adjustedLength = originalFunction.length - (arguments.length - 1);
1973
2025
  return setFunctionLength(
1974
2026
  func,
1975
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
2027
+ 1 + (adjustedLength > 0 ? adjustedLength : 0),
1976
2028
  true
1977
2029
  );
1978
2030
  };
1979
2031
 
1980
- var applyBind = function applyBind() {
1981
- return $reflectApply(bind, $apply, arguments);
1982
- };
1983
-
1984
2032
  if ($defineProperty) {
1985
2033
  $defineProperty(module.exports, 'apply', { value: applyBind });
1986
2034
  } else {
1987
2035
  module.exports.apply = applyBind;
1988
2036
  }
1989
2037
 
1990
- },{"es-define-property":7,"es-errors/type":13,"function-bind":16,"get-intrinsic":17,"set-function-length":34}],6:[function(require,module,exports){
2038
+ },{"call-bind-apply-helpers":8,"call-bind-apply-helpers/applyBind":5,"es-define-property":13,"set-function-length":41}],12:[function(require,module,exports){
1991
2039
  'use strict';
1992
2040
 
1993
2041
  var $defineProperty = require('es-define-property');
@@ -2045,7 +2093,7 @@ module.exports = function defineDataProperty(
2045
2093
  }
2046
2094
  };
2047
2095
 
2048
- },{"es-define-property":7,"es-errors/syntax":12,"es-errors/type":13,"gopd":18}],7:[function(require,module,exports){
2096
+ },{"es-define-property":13,"es-errors/syntax":18,"es-errors/type":19,"gopd":25}],13:[function(require,module,exports){
2049
2097
  'use strict';
2050
2098
 
2051
2099
  var GetIntrinsic = require('get-intrinsic');
@@ -2063,49 +2111,49 @@ if ($defineProperty) {
2063
2111
 
2064
2112
  module.exports = $defineProperty;
2065
2113
 
2066
- },{"get-intrinsic":17}],8:[function(require,module,exports){
2114
+ },{"get-intrinsic":23}],14:[function(require,module,exports){
2067
2115
  'use strict';
2068
2116
 
2069
2117
  /** @type {import('./eval')} */
2070
2118
  module.exports = EvalError;
2071
2119
 
2072
- },{}],9:[function(require,module,exports){
2120
+ },{}],15:[function(require,module,exports){
2073
2121
  'use strict';
2074
2122
 
2075
2123
  /** @type {import('.')} */
2076
2124
  module.exports = Error;
2077
2125
 
2078
- },{}],10:[function(require,module,exports){
2126
+ },{}],16:[function(require,module,exports){
2079
2127
  'use strict';
2080
2128
 
2081
2129
  /** @type {import('./range')} */
2082
2130
  module.exports = RangeError;
2083
2131
 
2084
- },{}],11:[function(require,module,exports){
2132
+ },{}],17:[function(require,module,exports){
2085
2133
  'use strict';
2086
2134
 
2087
2135
  /** @type {import('./ref')} */
2088
2136
  module.exports = ReferenceError;
2089
2137
 
2090
- },{}],12:[function(require,module,exports){
2138
+ },{}],18:[function(require,module,exports){
2091
2139
  'use strict';
2092
2140
 
2093
2141
  /** @type {import('./syntax')} */
2094
2142
  module.exports = SyntaxError;
2095
2143
 
2096
- },{}],13:[function(require,module,exports){
2144
+ },{}],19:[function(require,module,exports){
2097
2145
  'use strict';
2098
2146
 
2099
2147
  /** @type {import('./type')} */
2100
2148
  module.exports = TypeError;
2101
2149
 
2102
- },{}],14:[function(require,module,exports){
2150
+ },{}],20:[function(require,module,exports){
2103
2151
  'use strict';
2104
2152
 
2105
2153
  /** @type {import('./uri')} */
2106
2154
  module.exports = URIError;
2107
2155
 
2108
- },{}],15:[function(require,module,exports){
2156
+ },{}],21:[function(require,module,exports){
2109
2157
  'use strict';
2110
2158
 
2111
2159
  /* eslint no-invalid-this: 1 */
@@ -2191,14 +2239,14 @@ module.exports = function bind(that) {
2191
2239
  return bound;
2192
2240
  };
2193
2241
 
2194
- },{}],16:[function(require,module,exports){
2242
+ },{}],22:[function(require,module,exports){
2195
2243
  'use strict';
2196
2244
 
2197
2245
  var implementation = require('./implementation');
2198
2246
 
2199
2247
  module.exports = Function.prototype.bind || implementation;
2200
2248
 
2201
- },{"./implementation":15}],17:[function(require,module,exports){
2249
+ },{"./implementation":21}],23:[function(require,module,exports){
2202
2250
  'use strict';
2203
2251
 
2204
2252
  var undefined;
@@ -2559,12 +2607,17 @@ module.exports = function GetIntrinsic(name, allowMissing) {
2559
2607
  return value;
2560
2608
  };
2561
2609
 
2562
- },{"es-errors":9,"es-errors/eval":8,"es-errors/range":10,"es-errors/ref":11,"es-errors/syntax":12,"es-errors/type":13,"es-errors/uri":14,"function-bind":16,"has-proto":20,"has-symbols":21,"hasown":23}],18:[function(require,module,exports){
2610
+ },{"es-errors":15,"es-errors/eval":14,"es-errors/range":16,"es-errors/ref":17,"es-errors/syntax":18,"es-errors/type":19,"es-errors/uri":20,"function-bind":22,"has-proto":27,"has-symbols":28,"hasown":30}],24:[function(require,module,exports){
2563
2611
  'use strict';
2564
2612
 
2565
- var GetIntrinsic = require('get-intrinsic');
2613
+ /** @type {import('./gOPD')} */
2614
+ module.exports = Object.getOwnPropertyDescriptor;
2615
+
2616
+ },{}],25:[function(require,module,exports){
2617
+ 'use strict';
2566
2618
 
2567
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
2619
+ /** @type {import('.')} */
2620
+ var $gOPD = require('./gOPD');
2568
2621
 
2569
2622
  if ($gOPD) {
2570
2623
  try {
@@ -2577,7 +2630,7 @@ if ($gOPD) {
2577
2630
 
2578
2631
  module.exports = $gOPD;
2579
2632
 
2580
- },{"get-intrinsic":17}],19:[function(require,module,exports){
2633
+ },{"./gOPD":24}],26:[function(require,module,exports){
2581
2634
  'use strict';
2582
2635
 
2583
2636
  var $defineProperty = require('es-define-property');
@@ -2601,7 +2654,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
2601
2654
 
2602
2655
  module.exports = hasPropertyDescriptors;
2603
2656
 
2604
- },{"es-define-property":7}],20:[function(require,module,exports){
2657
+ },{"es-define-property":13}],27:[function(require,module,exports){
2605
2658
  'use strict';
2606
2659
 
2607
2660
  var test = {
@@ -2609,21 +2662,22 @@ var test = {
2609
2662
  foo: {}
2610
2663
  };
2611
2664
 
2612
- var $Object = Object;
2665
+ // @ts-expect-error: TS errors on an inherited property for some reason
2666
+ var result = { __proto__: test }.foo === test.foo
2667
+ && !(test instanceof Object);
2613
2668
 
2614
2669
  /** @type {import('.')} */
2615
2670
  module.exports = function hasProto() {
2616
- // @ts-expect-error: TS errors on an inherited property for some reason
2617
- return { __proto__: test }.foo === test.foo
2618
- && !(test instanceof $Object);
2671
+ return result;
2619
2672
  };
2620
2673
 
2621
- },{}],21:[function(require,module,exports){
2674
+ },{}],28:[function(require,module,exports){
2622
2675
  'use strict';
2623
2676
 
2624
2677
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
2625
2678
  var hasSymbolSham = require('./shams');
2626
2679
 
2680
+ /** @type {import('.')} */
2627
2681
  module.exports = function hasNativeSymbols() {
2628
2682
  if (typeof origSymbol !== 'function') { return false; }
2629
2683
  if (typeof Symbol !== 'function') { return false; }
@@ -2633,14 +2687,16 @@ module.exports = function hasNativeSymbols() {
2633
2687
  return hasSymbolSham();
2634
2688
  };
2635
2689
 
2636
- },{"./shams":22}],22:[function(require,module,exports){
2690
+ },{"./shams":29}],29:[function(require,module,exports){
2637
2691
  'use strict';
2638
2692
 
2693
+ /** @type {import('./shams')} */
2639
2694
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
2640
2695
  module.exports = function hasSymbols() {
2641
2696
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
2642
2697
  if (typeof Symbol.iterator === 'symbol') { return true; }
2643
2698
 
2699
+ /** @type {{ [k in symbol]?: unknown }} */
2644
2700
  var obj = {};
2645
2701
  var sym = Symbol('test');
2646
2702
  var symObj = Object(sym);
@@ -2659,7 +2715,7 @@ module.exports = function hasSymbols() {
2659
2715
 
2660
2716
  var symVal = 42;
2661
2717
  obj[sym] = symVal;
2662
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
2718
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
2663
2719
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
2664
2720
 
2665
2721
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -2670,14 +2726,15 @@ module.exports = function hasSymbols() {
2670
2726
  if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
2671
2727
 
2672
2728
  if (typeof Object.getOwnPropertyDescriptor === 'function') {
2673
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
2729
+ // eslint-disable-next-line no-extra-parens
2730
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
2674
2731
  if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
2675
2732
  }
2676
2733
 
2677
2734
  return true;
2678
2735
  };
2679
2736
 
2680
- },{}],23:[function(require,module,exports){
2737
+ },{}],30:[function(require,module,exports){
2681
2738
  'use strict';
2682
2739
 
2683
2740
  var call = Function.prototype.call;
@@ -2687,7 +2744,7 @@ var bind = require('function-bind');
2687
2744
  /** @type {import('.')} */
2688
2745
  module.exports = bind.call(call, $hasOwn);
2689
2746
 
2690
- },{"function-bind":16}],24:[function(require,module,exports){
2747
+ },{"function-bind":22}],31:[function(require,module,exports){
2691
2748
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2692
2749
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
2693
2750
  var e, m
@@ -2774,7 +2831,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
2774
2831
  buffer[offset + i - d] |= s * 128
2775
2832
  }
2776
2833
 
2777
- },{}],25:[function(require,module,exports){
2834
+ },{}],32:[function(require,module,exports){
2778
2835
  (function (global){(function (){
2779
2836
  var hasMap = typeof Map === 'function' && Map.prototype;
2780
2837
  var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
@@ -2847,10 +2904,21 @@ var utilInspect = require('./util.inspect');
2847
2904
  var inspectCustom = utilInspect.custom;
2848
2905
  var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
2849
2906
 
2907
+ var quotes = {
2908
+ __proto__: null,
2909
+ 'double': '"',
2910
+ single: "'"
2911
+ };
2912
+ var quoteREs = {
2913
+ __proto__: null,
2914
+ 'double': /(["\\])/g,
2915
+ single: /(['\\])/g
2916
+ };
2917
+
2850
2918
  module.exports = function inspect_(obj, options, depth, seen) {
2851
2919
  var opts = options || {};
2852
2920
 
2853
- if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
2921
+ if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
2854
2922
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
2855
2923
  }
2856
2924
  if (
@@ -3045,7 +3113,8 @@ module.exports = function inspect_(obj, options, depth, seen) {
3045
3113
  };
3046
3114
 
3047
3115
  function wrapQuotes(s, defaultStyle, opts) {
3048
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
3116
+ var style = opts.quoteStyle || defaultStyle;
3117
+ var quoteChar = quotes[style];
3049
3118
  return quoteChar + s + quoteChar;
3050
3119
  }
3051
3120
 
@@ -3203,8 +3272,10 @@ function inspectString(str, opts) {
3203
3272
  var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
3204
3273
  return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
3205
3274
  }
3275
+ var quoteRE = quoteREs[opts.quoteStyle || 'single'];
3276
+ quoteRE.lastIndex = 0;
3206
3277
  // eslint-disable-next-line no-control-regex
3207
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
3278
+ var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
3208
3279
  return wrapQuotes(s, 'single', opts);
3209
3280
  }
3210
3281
 
@@ -3305,7 +3376,7 @@ function arrObjKeys(obj, inspect) {
3305
3376
  }
3306
3377
 
3307
3378
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3308
- },{"./util.inspect":2}],26:[function(require,module,exports){
3379
+ },{"./util.inspect":2}],33:[function(require,module,exports){
3309
3380
  exports.endianness = function () { return 'LE' };
3310
3381
 
3311
3382
  exports.hostname = function () {
@@ -3356,7 +3427,7 @@ exports.homedir = function () {
3356
3427
  return '/'
3357
3428
  };
3358
3429
 
3359
- },{}],27:[function(require,module,exports){
3430
+ },{}],34:[function(require,module,exports){
3360
3431
  (function (process){(function (){
3361
3432
  // 'path' module extracted from Node.js v8.11.1 (only the posix part)
3362
3433
  // transplited with Babel
@@ -3889,7 +3960,7 @@ posix.posix = posix;
3889
3960
  module.exports = posix;
3890
3961
 
3891
3962
  }).call(this)}).call(this,require('_process'))
3892
- },{"_process":28}],28:[function(require,module,exports){
3963
+ },{"_process":35}],35:[function(require,module,exports){
3893
3964
  // shim for using process in browser
3894
3965
  var process = module.exports = {};
3895
3966
 
@@ -4075,7 +4146,7 @@ process.chdir = function (dir) {
4075
4146
  };
4076
4147
  process.umask = function() { return 0; };
4077
4148
 
4078
- },{}],29:[function(require,module,exports){
4149
+ },{}],36:[function(require,module,exports){
4079
4150
  'use strict';
4080
4151
 
4081
4152
  var replace = String.prototype.replace;
@@ -4100,7 +4171,7 @@ module.exports = {
4100
4171
  RFC3986: Format.RFC3986
4101
4172
  };
4102
4173
 
4103
- },{}],30:[function(require,module,exports){
4174
+ },{}],37:[function(require,module,exports){
4104
4175
  'use strict';
4105
4176
 
4106
4177
  var stringify = require('./stringify');
@@ -4113,7 +4184,7 @@ module.exports = {
4113
4184
  stringify: stringify
4114
4185
  };
4115
4186
 
4116
- },{"./formats":29,"./parse":31,"./stringify":32}],31:[function(require,module,exports){
4187
+ },{"./formats":36,"./parse":38,"./stringify":39}],38:[function(require,module,exports){
4117
4188
  'use strict';
4118
4189
 
4119
4190
  var utils = require('./utils');
@@ -4202,7 +4273,8 @@ var parseValues = function parseQueryStringValues(str, options) {
4202
4273
  var bracketEqualsPos = part.indexOf(']=');
4203
4274
  var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
4204
4275
 
4205
- var key, val;
4276
+ var key;
4277
+ var val;
4206
4278
  if (pos === -1) {
4207
4279
  key = options.decoder(part, defaults.decoder, charset, 'key');
4208
4280
  val = options.strictNullHandling ? null : '';
@@ -4217,7 +4289,7 @@ var parseValues = function parseQueryStringValues(str, options) {
4217
4289
  }
4218
4290
 
4219
4291
  if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
4220
- val = interpretNumericEntities(val);
4292
+ val = interpretNumericEntities(String(val));
4221
4293
  }
4222
4294
 
4223
4295
  if (part.indexOf('[]=') > -1) {
@@ -4247,7 +4319,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
4247
4319
  ? []
4248
4320
  : [].concat(leaf);
4249
4321
  } else {
4250
- obj = options.plainObjects ? Object.create(null) : {};
4322
+ obj = options.plainObjects ? { __proto__: null } : {};
4251
4323
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
4252
4324
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
4253
4325
  var index = parseInt(decodedRoot, 10);
@@ -4389,11 +4461,11 @@ module.exports = function (str, opts) {
4389
4461
  var options = normalizeParseOptions(opts);
4390
4462
 
4391
4463
  if (str === '' || str === null || typeof str === 'undefined') {
4392
- return options.plainObjects ? Object.create(null) : {};
4464
+ return options.plainObjects ? { __proto__: null } : {};
4393
4465
  }
4394
4466
 
4395
4467
  var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
4396
- var obj = options.plainObjects ? Object.create(null) : {};
4468
+ var obj = options.plainObjects ? { __proto__: null } : {};
4397
4469
 
4398
4470
  // Iterate over the keys and setup the new object
4399
4471
 
@@ -4411,7 +4483,7 @@ module.exports = function (str, opts) {
4411
4483
  return utils.compact(obj);
4412
4484
  };
4413
4485
 
4414
- },{"./utils":33}],32:[function(require,module,exports){
4486
+ },{"./utils":40}],39:[function(require,module,exports){
4415
4487
  'use strict';
4416
4488
 
4417
4489
  var getSideChannel = require('side-channel');
@@ -4448,11 +4520,13 @@ var defaults = {
4448
4520
  arrayFormat: 'indices',
4449
4521
  charset: 'utf-8',
4450
4522
  charsetSentinel: false,
4523
+ commaRoundTrip: false,
4451
4524
  delimiter: '&',
4452
4525
  encode: true,
4453
4526
  encodeDotInKeys: false,
4454
4527
  encoder: utils.encode,
4455
4528
  encodeValuesOnly: false,
4529
+ filter: void undefined,
4456
4530
  format: defaultFormat,
4457
4531
  formatter: formats.formatters[defaultFormat],
4458
4532
  // deprecated
@@ -4564,7 +4638,7 @@ var stringify = function stringify(
4564
4638
  objKeys = sort ? keys.sort(sort) : keys;
4565
4639
  }
4566
4640
 
4567
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
4641
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
4568
4642
 
4569
4643
  var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
4570
4644
 
@@ -4574,13 +4648,15 @@ var stringify = function stringify(
4574
4648
 
4575
4649
  for (var j = 0; j < objKeys.length; ++j) {
4576
4650
  var key = objKeys[j];
4577
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
4651
+ var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
4652
+ ? key.value
4653
+ : obj[key];
4578
4654
 
4579
4655
  if (skipNulls && value === null) {
4580
4656
  continue;
4581
4657
  }
4582
4658
 
4583
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
4659
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
4584
4660
  var keyPrefix = isArray(obj)
4585
4661
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
4586
4662
  : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
@@ -4671,7 +4747,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
4671
4747
  arrayFormat: arrayFormat,
4672
4748
  charset: charset,
4673
4749
  charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
4674
- commaRoundTrip: opts.commaRoundTrip,
4750
+ commaRoundTrip: !!opts.commaRoundTrip,
4675
4751
  delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
4676
4752
  encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
4677
4753
  encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
@@ -4722,12 +4798,13 @@ module.exports = function (object, opts) {
4722
4798
  var sideChannel = getSideChannel();
4723
4799
  for (var i = 0; i < objKeys.length; ++i) {
4724
4800
  var key = objKeys[i];
4801
+ var value = obj[key];
4725
4802
 
4726
- if (options.skipNulls && obj[key] === null) {
4803
+ if (options.skipNulls && value === null) {
4727
4804
  continue;
4728
4805
  }
4729
4806
  pushToArray(keys, stringify(
4730
- obj[key],
4807
+ value,
4731
4808
  key,
4732
4809
  generateArrayPrefix,
4733
4810
  commaRoundTrip,
@@ -4764,7 +4841,7 @@ module.exports = function (object, opts) {
4764
4841
  return joined.length > 0 ? prefix + joined : '';
4765
4842
  };
4766
4843
 
4767
- },{"./formats":29,"./utils":33,"side-channel":35}],33:[function(require,module,exports){
4844
+ },{"./formats":36,"./utils":40,"side-channel":42}],40:[function(require,module,exports){
4768
4845
  'use strict';
4769
4846
 
4770
4847
  var formats = require('./formats');
@@ -4801,7 +4878,7 @@ var compactQueue = function compactQueue(queue) {
4801
4878
  };
4802
4879
 
4803
4880
  var arrayToObject = function arrayToObject(source, options) {
4804
- var obj = options && options.plainObjects ? Object.create(null) : {};
4881
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
4805
4882
  for (var i = 0; i < source.length; ++i) {
4806
4883
  if (typeof source[i] !== 'undefined') {
4807
4884
  obj[i] = source[i];
@@ -4817,11 +4894,14 @@ var merge = function merge(target, source, options) {
4817
4894
  return target;
4818
4895
  }
4819
4896
 
4820
- if (typeof source !== 'object') {
4897
+ if (typeof source !== 'object' && typeof source !== 'function') {
4821
4898
  if (isArray(target)) {
4822
4899
  target.push(source);
4823
4900
  } else if (target && typeof target === 'object') {
4824
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
4901
+ if (
4902
+ (options && (options.plainObjects || options.allowPrototypes))
4903
+ || !has.call(Object.prototype, source)
4904
+ ) {
4825
4905
  target[source] = true;
4826
4906
  }
4827
4907
  } else {
@@ -4875,7 +4955,7 @@ var assign = function assignSingleSource(target, source) {
4875
4955
  }, target);
4876
4956
  };
4877
4957
 
4878
- var decode = function (str, decoder, charset) {
4958
+ var decode = function (str, defaultDecoder, charset) {
4879
4959
  var strWithoutPlus = str.replace(/\+/g, ' ');
4880
4960
  if (charset === 'iso-8859-1') {
4881
4961
  // unescape never throws, no try...catch needed:
@@ -5031,7 +5111,7 @@ module.exports = {
5031
5111
  merge: merge
5032
5112
  };
5033
5113
 
5034
- },{"./formats":29}],34:[function(require,module,exports){
5114
+ },{"./formats":36}],41:[function(require,module,exports){
5035
5115
  'use strict';
5036
5116
 
5037
5117
  var GetIntrinsic = require('get-intrinsic');
@@ -5075,7 +5155,7 @@ module.exports = function setFunctionLength(fn, length) {
5075
5155
  return fn;
5076
5156
  };
5077
5157
 
5078
- },{"define-data-property":6,"es-errors/type":13,"get-intrinsic":17,"gopd":18,"has-property-descriptors":19}],35:[function(require,module,exports){
5158
+ },{"define-data-property":12,"es-errors/type":19,"get-intrinsic":23,"gopd":25,"has-property-descriptors":26}],42:[function(require,module,exports){
5079
5159
  'use strict';
5080
5160
 
5081
5161
  var GetIntrinsic = require('get-intrinsic');
@@ -5206,7 +5286,7 @@ module.exports = function getSideChannel() {
5206
5286
  return channel;
5207
5287
  };
5208
5288
 
5209
- },{"call-bind/callBound":4,"es-errors/type":13,"get-intrinsic":17,"object-inspect":25}],36:[function(require,module,exports){
5289
+ },{"call-bind/callBound":10,"es-errors/type":19,"get-intrinsic":23,"object-inspect":32}],43:[function(require,module,exports){
5210
5290
  (function (setImmediate,clearImmediate){(function (){
5211
5291
  var nextTick = require('process/browser.js').nextTick;
5212
5292
  var apply = Function.prototype.apply;
@@ -5285,7 +5365,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
5285
5365
  delete immediateIds[id];
5286
5366
  };
5287
5367
  }).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
5288
- },{"process/browser.js":28,"timers":36}],"platformClient":[function(require,module,exports){
5368
+ },{"process/browser.js":35,"timers":43}],"platformClient":[function(require,module,exports){
5289
5369
  (function (global,Buffer,setImmediate){(function (){
5290
5370
  'use strict';function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
5291
5371
  // if there are two placeholders, than the two characters before it
@@ -5804,10 +5884,10 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
5804
5884
  *
5805
5885
  * @param {string} url The base of the url (e.g., http://www.google.com)
5806
5886
  * @param {object} [params] The params to be appended
5807
- * @param {?object} options
5887
+ * @param {?(object|Function)} options
5808
5888
  *
5809
5889
  * @returns {string} The formatted url
5810
- */function buildURL(url,params,options){/*eslint no-param-reassign:0*/if(!params){return url;}var _encode=options&&options.encode||encode;var serializeFn=options&&options.serialize;var serializedParams;if(serializeFn){serializedParams=serializeFn(params,options);}else{serializedParams=utils$1.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams(params,options).toString(_encode);}if(serializedParams){var hashmarkIndex=url.indexOf("#");if(hashmarkIndex!==-1){url=url.slice(0,hashmarkIndex);}url+=(url.indexOf('?')===-1?'?':'&')+serializedParams;}return url;}var InterceptorManager=/*#__PURE__*/function(){function InterceptorManager(){_classCallCheck(this,InterceptorManager);this.handlers=[];}/**
5890
+ */function buildURL(url,params,options){/*eslint no-param-reassign:0*/if(!params){return url;}var _encode=options&&options.encode||encode;if(utils$1.isFunction(options)){options={serialize:options};}var serializeFn=options&&options.serialize;var serializedParams;if(serializeFn){serializedParams=serializeFn(params,options);}else{serializedParams=utils$1.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams(params,options).toString(_encode);}if(serializedParams){var hashmarkIndex=url.indexOf("#");if(hashmarkIndex!==-1){url=url.slice(0,hashmarkIndex);}url+=(url.indexOf('?')===-1?'?':'&')+serializedParams;}return url;}var InterceptorManager=/*#__PURE__*/function(){function InterceptorManager(){_classCallCheck(this,InterceptorManager);this.handlers=[];}/**
5811
5891
  * Add a new interceptor to the stack
5812
5892
  *
5813
5893
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
@@ -5943,22 +6023,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
5943
6023
  * @param {Function} fn
5944
6024
  * @param {Number} freq
5945
6025
  * @return {Function}
5946
- */function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var lastArgs;var timer;var invoke=function invoke(args){var now=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();timestamp=now;lastArgs=null;if(timer){clearTimeout(timer);timer=null;}fn.apply(null,args);};var throttled=function throttled(){var now=Date.now();var passed=now-timestamp;for(var _len3=arguments.length,args=new Array(_len3),_key4=0;_key4<_len3;_key4++){args[_key4]=arguments[_key4];}if(passed>=threshold){invoke(args,now);}else{lastArgs=args;if(!timer){timer=setTimeout(function(){timer=null;invoke(lastArgs);},threshold-passed);}}};var flush=function flush(){return lastArgs&&invoke(lastArgs);};return[throttled,flush];}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data=_defineProperty({loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null},isDownloadStream?'download':'upload',true);listener(data);},freq);};var progressEventDecorator=function progressEventDecorator(total,throttled){var lengthComputable=total!=null;return[function(loaded){return throttled[0]({lengthComputable:lengthComputable,total:total,loaded:loaded});},throttled[1]];};var asyncDecorator=function asyncDecorator(fn){return function(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}return utils$1.asap(function(){return fn.apply(void 0,args);});};};var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
5947
- // whether the request URL is of the same origin as current location.
5948
- function standardBrowserEnv(){var msie=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
5949
- * Parse a URL to discover its components
5950
- *
5951
- * @param {String} url The URL to be parsed
5952
- * @returns {Object}
5953
- */function resolveURL(url){var href=url;if(msie){// IE needs attribute set twice to normalize properties
5954
- urlParsingNode.setAttribute('href',href);href=urlParsingNode.href;}urlParsingNode.setAttribute('href',href);// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
5955
- return{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,''):'',host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,''):'',hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,''):'',hostname:urlParsingNode.hostname,port:urlParsingNode.port,pathname:urlParsingNode.pathname.charAt(0)==='/'?urlParsingNode.pathname:'/'+urlParsingNode.pathname};}originURL=resolveURL(window.location.href);/**
5956
- * Determine if a URL shares the same origin as the current location
5957
- *
5958
- * @param {String} requestURL The URL to test
5959
- * @returns {boolean} True if URL shares the same origin, otherwise false
5960
- */return function isURLSameOrigin(requestURL){var parsed=utils$1.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host;};}():// Non standard browser envs (web workers, react-native) lack needed support.
5961
- function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};}();var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
6026
+ */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?function(origin,isMSIE){return function(url){url=new URL(url,platform.origin);return origin.protocol===url.protocol&&origin.host===url.host&&(isMSIE||origin.port===url.port);};}(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):function(){return true;};var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
5962
6027
  {write:function write(name,value,expires,path,domain,secure){var cookie=[name+'='+encodeURIComponent(value)];utils$1.isNumber(expires)&&cookie.push('expires='+new Date(expires).toGMTString());utils$1.isString(path)&&cookie.push('path='+path);utils$1.isString(domain)&&cookie.push('domain='+domain);secure===true&&cookie.push('secure');document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}}:// Non-standard browser env (web workers, react-native) lack needed support.
5963
6028
  {write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
5964
6029
  * Determines whether the specified URL is absolute
@@ -5994,11 +6059,11 @@ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);}/**
5994
6059
  *
5995
6060
  * @returns {Object} New object resulting from merging config2 to config1
5996
6061
  */function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
5997
- config2=config2||{};var config={};function getMergedValue(target,source,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
5998
- function mergeDeepProperties(a,b,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,caseless);}}// eslint-disable-next-line consistent-return
6062
+ config2=config2||{};var config={};function getMergedValue(target,source,prop,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
6063
+ function mergeDeepProperties(a,b,prop,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,prop,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,prop,caseless);}}// eslint-disable-next-line consistent-return
5999
6064
  function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
6000
6065
  function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
6001
- function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url),config.params,config.paramsSerializer);// HTTP basic authentication
6066
+ function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url),config.params,config.paramsSerializer);// HTTP basic authentication
6002
6067
  if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
6003
6068
  }else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
6004
6069
  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
@@ -6054,7 +6119,7 @@ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url
6054
6119
  */function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
6055
6120
  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
6056
6121
  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
6057
- if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.7.7";var validators$1={};// eslint-disable-next-line func-names
6122
+ 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.9";var validators$1={};// eslint-disable-next-line func-names
6058
6123
  ['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={};/**
6059
6124
  * Transitional option validator
6060
6125
  *
@@ -6065,7 +6130,8 @@ if(reason&&reason.response){reason.response.data=transformData.call(config,confi
6065
6130
  * @returns {function}
6066
6131
  */validators$1.transitional=function transitional(validator,version,message){function formatMessage(opt,desc){return'[Axios v'+VERSION+'] Transitional option \''+opt+'\''+desc+(message?'. '+message:'');}// eslint-disable-next-line func-names
6067
6132
  return function(value,opt,opts){if(validator===false){throw new AxiosError(formatMessage(opt,' has been removed'+(version?' in '+version:'')),AxiosError.ERR_DEPRECATED);}if(version&&!deprecatedWarnings[opt]){deprecatedWarnings[opt]=true;// eslint-disable-next-line no-console
6068
- console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will be removed in the near future'));}return validator?validator(value,opt,opts):true;};};/**
6133
+ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will be removed in the near future'));}return validator?validator(value,opt,opts):true;};};validators$1.spelling=function spelling(correctSpelling){return function(value,opt){// eslint-disable-next-line no-console
6134
+ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpelling));return true;};};/**
6069
6135
  * Assert object's properties type
6070
6136
  *
6071
6137
  * @param {object} options
@@ -6086,11 +6152,11 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
6086
6152
  * @param {?Object} config
6087
6153
  *
6088
6154
  * @returns {Promise} The Promise to be fulfilled
6089
- */return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.prev=0;_context9.next=3;return this._request(configOrUrl,config);case 3:return _context9.abrupt("return",_context9.sent);case 6:_context9.prev=6;_context9.t0=_context9["catch"](0);if(_context9.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
6155
+ */return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.prev=0;_context9.next=3;return this._request(configOrUrl,config);case 3:return _context9.abrupt("return",_context9.sent);case 6:_context9.prev=6;_context9.t0=_context9["catch"](0);if(_context9.t0 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
6090
6156
  stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context9.t0.stack){_context9.t0.stack=stack;// match without the 2 top stack lines
6091
6157
  }else if(stack&&!String(_context9.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context9.t0.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
6092
6158
  }}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
6093
- if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else{config=configOrUrl||{};}config=mergeConfig(this.defaults,config);var _config2=config,transitional=_config2.transitional,paramsSerializer=_config2.paramsSerializer,headers=_config2.headers;if(transitional!==undefined){validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators["boolean"]),forcedJSONParsing:validators.transitional(validators["boolean"]),clarifyTimeoutError:validators.transitional(validators["boolean"])},false);}if(paramsSerializer!=null){if(utils$1.isFunction(paramsSerializer)){config.paramsSerializer={serialize:paramsSerializer};}else{validator.assertOptions(paramsSerializer,{encode:validators["function"],serialize:validators["function"]},true);}}// Set config.method
6159
+ 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);}}validator.assertOptions(config,{baseUrl:validators.spelling('baseURL'),withXsrfToken:validators.spelling('withXSRFToken')},true);// Set config.method
6094
6160
  config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
6095
6161
  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
6096
6162
  var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;i=0;while(i<len){var onFulfilled=requestInterceptorChain[i++];var onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig);}catch(error){onRejected.call(this,error);break;}}try{promise=dispatchRequest.call(this,newConfig);}catch(error){return Promise.reject(error);}i=0;len=responseInterceptorChain.length;while(i<len){promise=promise.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);}return promise;}},{key:"getUri",value:function getUri(config){config=mergeConfig(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url);return buildURL(fullPath,config.params,config.paramsSerializer);}}]);}();// Provide aliases for supported request methods
@@ -6180,7 +6246,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
6180
6246
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
6181
6247
  if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfUrl",value:function getConfUrl(pathType,regionUrl){if(!this.gateway)return regionUrl;if(!this.gateway.host)return regionUrl;var url=this.gateway.protocol+'://'+this.gateway.host;if(this.gateway.port>-1)url=url+':'+this.gateway.port.toString();if(pathType==='login'){if(this.gateway.path_params_login){if(this.gateway.path_params_login.startsWith('/'))url=url+this.gateway.path_params_login;else url=url+'/'+this.gateway.path_params_login;}}else{if(this.gateway.path_params_api){if(this.gateway.path_params_api.startsWith('/'))url=url+this.gateway.path_params_api;else url=url+'/'+this.gateway.path_params_api;}}return url;}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
6182
6248
  * @module purecloud-platform-client-v2/ApiClient
6183
- * @version 207.0.0
6249
+ * @version 209.0.0
6184
6250
  */var ApiClient=/*#__PURE__*/function(){/**
6185
6251
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
6186
6252
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -6502,7 +6568,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
6502
6568
  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(){/**
6503
6569
  * AgentAssistants service.
6504
6570
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
6505
- * @version 207.0.0
6571
+ * @version 209.0.0
6506
6572
  *//**
6507
6573
  * Constructs a new AgentAssistantsApi.
6508
6574
  * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -6603,7 +6669,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
6603
6669
  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(){/**
6604
6670
  * AgentCopilot service.
6605
6671
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
6606
- * @version 207.0.0
6672
+ * @version 209.0.0
6607
6673
  *//**
6608
6674
  * Constructs a new AgentCopilotApi.
6609
6675
  * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -6625,7 +6691,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6625
6691
  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(){/**
6626
6692
  * AgentUI service.
6627
6693
  * @module purecloud-platform-client-v2/api/AgentUIApi
6628
- * @version 207.0.0
6694
+ * @version 209.0.0
6629
6695
  *//**
6630
6696
  * Constructs a new AgentUIApi.
6631
6697
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -6659,7 +6725,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
6659
6725
  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(){/**
6660
6726
  * Alerting service.
6661
6727
  * @module purecloud-platform-client-v2/api/AlertingApi
6662
- * @version 207.0.0
6728
+ * @version 209.0.0
6663
6729
  *//**
6664
6730
  * Constructs a new AlertingApi.
6665
6731
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -6816,7 +6882,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
6816
6882
  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(){/**
6817
6883
  * Analytics service.
6818
6884
  * @module purecloud-platform-client-v2/api/AnalyticsApi
6819
- * @version 207.0.0
6885
+ * @version 209.0.0
6820
6886
  *//**
6821
6887
  * Constructs a new AnalyticsApi.
6822
6888
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -6863,7 +6929,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
6863
6929
  */},{key:"getAnalyticsAgentcopilotsAggregatesJobResults",value:function getAnalyticsAgentcopilotsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
6864
6930
  if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6865
6931
  * Get Reporting Turns (division aware).
6866
- * Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
6932
+ * Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. It is expected that the client will URL encode the request URI once only. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. The nextUri value in the response is already URL encoded (so it doesnt need to be encoded again). Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
6867
6933
  * @param {String} botFlowId ID of the bot flow.
6868
6934
  * @param {Object} opts Optional parameters
6869
6935
  * @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
@@ -6876,7 +6942,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
6876
6942
  */},{key:"getAnalyticsBotflowDivisionsReportingturns",value:function getAnalyticsBotflowDivisionsReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
6877
6943
  if(botFlowId===undefined||botFlowId===null){throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowDivisionsReportingturns';}return this.apiClient.callApi('/api/v2/analytics/botflows/{botFlowId}/divisions/reportingturns','GET',{'botFlowId':botFlowId},{'after':opts['after'],'pageSize':opts['pageSize'],'interval':opts['interval'],'actionId':opts['actionId'],'sessionId':opts['sessionId'],'language':opts['language'],'askActionResults':opts['askActionResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6878
6944
  * Get Reporting Turns.
6879
- * Deprecated: Please use GET /analytics/botflows/{botFlowId}/divisions/reportingturns instead. Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
6945
+ * Deprecated: Please use GET /analytics/botflows/{botFlowId}/divisions/reportingturns instead. Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. It is expected that the client will URL encode the request URI once only. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. The nextUri value in the response is already URL encoded (so it doesnt need to be encoded again). Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
6880
6946
  * @param {String} botFlowId ID of the bot flow.
6881
6947
  * @param {Object} opts Optional parameters
6882
6948
  * @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
@@ -6890,7 +6956,7 @@ if(botFlowId===undefined||botFlowId===null){throw'Missing the required parameter
6890
6956
  */},{key:"getAnalyticsBotflowReportingturns",value:function getAnalyticsBotflowReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
6891
6957
  if(botFlowId===undefined||botFlowId===null){throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowReportingturns';}return this.apiClient.callApi('/api/v2/analytics/botflows/{botFlowId}/reportingturns','GET',{'botFlowId':botFlowId},{'after':opts['after'],'pageSize':opts['pageSize'],'interval':opts['interval'],'actionId':opts['actionId'],'sessionId':opts['sessionId'],'language':opts['language'],'askActionResults':opts['askActionResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6892
6958
  * Get Bot Flow Sessions.
6893
- * Returns the bot flow sessions in reverse chronological order from the date they were created. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
6959
+ * Returns the bot flow sessions in reverse chronological order from the date they were created. It is expected that the client will URL encode the request URI once only. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. The nextUri value in the response is already URL encoded (so it doesnt need to be encoded again). Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
6894
6960
  * @param {String} botFlowId ID of the bot flow.
6895
6961
  * @param {Object} opts Optional parameters
6896
6962
  * @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
@@ -7438,7 +7504,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7438
7504
  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(){/**
7439
7505
  * Architect service.
7440
7506
  * @module purecloud-platform-client-v2/api/ArchitectApi
7441
- * @version 207.0.0
7507
+ * @version 209.0.0
7442
7508
  *//**
7443
7509
  * Constructs a new ArchitectApi.
7444
7510
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -8530,7 +8596,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
8530
8596
  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(){/**
8531
8597
  * Audit service.
8532
8598
  * @module purecloud-platform-client-v2/api/AuditApi
8533
- * @version 207.0.0
8599
+ * @version 209.0.0
8534
8600
  *//**
8535
8601
  * Constructs a new AuditApi.
8536
8602
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -8580,7 +8646,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8580
8646
  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(){/**
8581
8647
  * Authorization service.
8582
8648
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8583
- * @version 207.0.0
8649
+ * @version 209.0.0
8584
8650
  *//**
8585
8651
  * Constructs a new AuthorizationApi.
8586
8652
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -8903,7 +8969,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
8903
8969
  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(){/**
8904
8970
  * Billing service.
8905
8971
  * @module purecloud-platform-client-v2/api/BillingApi
8906
- * @version 207.0.0
8972
+ * @version 209.0.0
8907
8973
  *//**
8908
8974
  * Constructs a new BillingApi.
8909
8975
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -8927,7 +8993,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
8927
8993
  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(){/**
8928
8994
  * CarrierServices service.
8929
8995
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
8930
- * @version 207.0.0
8996
+ * @version 209.0.0
8931
8997
  *//**
8932
8998
  * Constructs a new CarrierServicesApi.
8933
8999
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -8947,7 +9013,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
8947
9013
  */},{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(){/**
8948
9014
  * Chat service.
8949
9015
  * @module purecloud-platform-client-v2/api/ChatApi
8950
- * @version 207.0.0
9016
+ * @version 209.0.0
8951
9017
  *//**
8952
9018
  * Constructs a new ChatApi.
8953
9019
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -9172,7 +9238,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9172
9238
  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(){/**
9173
9239
  * Coaching service.
9174
9240
  * @module purecloud-platform-client-v2/api/CoachingApi
9175
- * @version 207.0.0
9241
+ * @version 209.0.0
9176
9242
  *//**
9177
9243
  * Constructs a new CoachingApi.
9178
9244
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -9325,7 +9391,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9325
9391
  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(){/**
9326
9392
  * ContentManagement service.
9327
9393
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9328
- * @version 207.0.0
9394
+ * @version 209.0.0
9329
9395
  *//**
9330
9396
  * Constructs a new ContentManagementApi.
9331
9397
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -9607,7 +9673,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
9607
9673
  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(){/**
9608
9674
  * Conversations service.
9609
9675
  * @module purecloud-platform-client-v2/api/ConversationsApi
9610
- * @version 207.0.0
9676
+ * @version 209.0.0
9611
9677
  *//**
9612
9678
  * Constructs a new ConversationsApi.
9613
9679
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -9791,7 +9857,6 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
9791
9857
  * Get the summaries of the conversation.
9792
9858
  *
9793
9859
  * @param {String} conversationId Conversation ID
9794
- * getConversationSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9795
9860
  */},{key:"getConversationSummaries",value:function getConversationSummaries(conversationId){// verify the required parameter 'conversationId' is set
9796
9861
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationSummaries';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/summaries','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9797
9862
  * Get active conversations for the logged in user
@@ -11336,7 +11401,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
11336
11401
  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(){/**
11337
11402
  * DataExtensions service.
11338
11403
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
11339
- * @version 207.0.0
11404
+ * @version 209.0.0
11340
11405
  *//**
11341
11406
  * Constructs a new DataExtensionsApi.
11342
11407
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -11357,7 +11422,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
11357
11422
  */},{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(){/**
11358
11423
  * Downloads service.
11359
11424
  * @module purecloud-platform-client-v2/api/DownloadsApi
11360
- * @version 207.0.0
11425
+ * @version 209.0.0
11361
11426
  *//**
11362
11427
  * Constructs a new DownloadsApi.
11363
11428
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -11376,7 +11441,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
11376
11441
  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(){/**
11377
11442
  * Emails service.
11378
11443
  * @module purecloud-platform-client-v2/api/EmailsApi
11379
- * @version 207.0.0
11444
+ * @version 209.0.0
11380
11445
  *//**
11381
11446
  * Constructs a new EmailsApi.
11382
11447
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -11394,7 +11459,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
11394
11459
  */},{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(){/**
11395
11460
  * EmployeeEngagement service.
11396
11461
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
11397
- * @version 207.0.0
11462
+ * @version 209.0.0
11398
11463
  *//**
11399
11464
  * Constructs a new EmployeeEngagementApi.
11400
11465
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -11432,7 +11497,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11432
11497
  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(){/**
11433
11498
  * Events service.
11434
11499
  * @module purecloud-platform-client-v2/api/EventsApi
11435
- * @version 207.0.0
11500
+ * @version 209.0.0
11436
11501
  *//**
11437
11502
  * Constructs a new EventsApi.
11438
11503
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -11457,7 +11522,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11457
11522
  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(){/**
11458
11523
  * ExternalContacts service.
11459
11524
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
11460
- * @version 207.0.0
11525
+ * @version 209.0.0
11461
11526
  *//**
11462
11527
  * Constructs a new ExternalContactsApi.
11463
11528
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -11485,7 +11550,6 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
11485
11550
  * 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.
11486
11551
  *
11487
11552
  * @param {String} externalSourceId External Source ID
11488
- * deleteExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11489
11553
  */},{key:"deleteExternalcontactsExternalsource",value:function deleteExternalcontactsExternalsource(externalSourceId){// verify the required parameter 'externalSourceId' is set
11490
11554
  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']);}/**
11491
11555
  * Delete settings for CSV import
@@ -11559,7 +11623,7 @@ if(contactId===undefined||contactId===null){throw'Missing the required parameter
11559
11623
  *
11560
11624
  * @param {String} contactId ExternalContact ID
11561
11625
  * @param {Object} opts Optional parameters
11562
- * @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources,identifiers)
11626
+ * @param {Array.<String>} opts.expand which fields, if any, to expand
11563
11627
  */},{key:"getExternalcontactsContactUnresolved",value:function getExternalcontactsContactUnresolved(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
11564
11628
  if(contactId===undefined||contactId===null){throw'Missing the required parameter "contactId" when calling getExternalcontactsContactUnresolved';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/unresolved','GET',{'contactId':contactId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11565
11629
  * Search for external contacts
@@ -11594,7 +11658,6 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
11594
11658
  * Fetch an External Source
11595
11659
  *
11596
11660
  * @param {String} externalSourceId External Source ID
11597
- * getExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11598
11661
  */},{key:"getExternalcontactsExternalsource",value:function getExternalcontactsExternalsource(externalSourceId){// verify the required parameter 'externalSourceId' is set
11599
11662
  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']);}/**
11600
11663
  * Fetch a list of External Sources
@@ -11604,7 +11667,6 @@ if(externalSourceId===undefined||externalSourceId===null){throw'Missing the requ
11604
11667
  * @param {Number} opts.limit The number of ExternalSources per page; must be between 10 and 200, default is 100
11605
11668
  * @param {String} opts.name Filter by external source name. Filtering is prefix filtering and not an exact match
11606
11669
  * @param {Boolean} opts.active Filter by active status of external source
11607
- * getExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11608
11670
  */},{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']);}/**
11609
11671
  * Get settings for CSV import
11610
11672
  *
@@ -11632,7 +11694,7 @@ if(uploadId===undefined||uploadId===null){throw'Missing the required parameter "
11632
11694
  *
11633
11695
  * @param {String} externalOrganizationId External Organization ID
11634
11696
  * @param {Object} opts Optional parameters
11635
- * @param {Array.<String>} opts.expand which fields, if any, to expand (externalDataSources)
11697
+ * @param {Array.<String>} opts.expand which fields, if any, to expand
11636
11698
  * @param {Boolean} opts.includeTrustors (true or false) whether or not to include trustor information embedded in the externalOrganization
11637
11699
  */},{key:"getExternalcontactsOrganization",value:function getExternalcontactsOrganization(externalOrganizationId,opts){opts=opts||{};// verify the required parameter 'externalOrganizationId' is set
11638
11700
  if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganization';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}','GET',{'externalOrganizationId':externalOrganizationId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'includeTrustors':opts['includeTrustors']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -11862,7 +11924,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11862
11924
  * Create an External Source
11863
11925
  *
11864
11926
  * @param {Object} body External Source
11865
- * postExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11866
11927
  */},{key:"postExternalcontactsExternalsources",value:function postExternalcontactsExternalsources(body){// verify the required parameter 'body' is set
11867
11928
  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']);}/**
11868
11929
  * Fetch a contact using an identifier type and value.
@@ -11948,7 +12009,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11948
12009
  *
11949
12010
  * @param {String} externalSourceId External Source ID
11950
12011
  * @param {Object} body External Source
11951
- * putExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
11952
12012
  */},{key:"putExternalcontactsExternalsource",value:function putExternalcontactsExternalsource(externalSourceId,body){// verify the required parameter 'externalSourceId' is set
11953
12013
  if(externalSourceId===undefined||externalSourceId===null){throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';}// verify the required parameter 'body' is set
11954
12014
  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']);}/**
@@ -11998,7 +12058,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
11998
12058
  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(){/**
11999
12059
  * Fax service.
12000
12060
  * @module purecloud-platform-client-v2/api/FaxApi
12001
- * @version 207.0.0
12061
+ * @version 209.0.0
12002
12062
  *//**
12003
12063
  * Constructs a new FaxApi.
12004
12064
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -12047,7 +12107,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12047
12107
  */},{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(){/**
12048
12108
  * Flows service.
12049
12109
  * @module purecloud-platform-client-v2/api/FlowsApi
12050
- * @version 207.0.0
12110
+ * @version 209.0.0
12051
12111
  *//**
12052
12112
  * Constructs a new FlowsApi.
12053
12113
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -12095,7 +12155,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12095
12155
  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(){/**
12096
12156
  * Gamification service.
12097
12157
  * @module purecloud-platform-client-v2/api/GamificationApi
12098
- * @version 207.0.0
12158
+ * @version 209.0.0
12099
12159
  *//**
12100
12160
  * Constructs a new GamificationApi.
12101
12161
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -12635,7 +12695,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12635
12695
  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(){/**
12636
12696
  * GeneralDataProtectionRegulation service.
12637
12697
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
12638
- * @version 207.0.0
12698
+ * @version 209.0.0
12639
12699
  *//**
12640
12700
  * Constructs a new GeneralDataProtectionRegulationApi.
12641
12701
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -12670,7 +12730,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
12670
12730
  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(){/**
12671
12731
  * Geolocation service.
12672
12732
  * @module purecloud-platform-client-v2/api/GeolocationApi
12673
- * @version 207.0.0
12733
+ * @version 209.0.0
12674
12734
  *//**
12675
12735
  * Constructs a new GeolocationApi.
12676
12736
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -12704,7 +12764,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
12704
12764
  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(){/**
12705
12765
  * Greetings service.
12706
12766
  * @module purecloud-platform-client-v2/api/GreetingsApi
12707
- * @version 207.0.0
12767
+ * @version 209.0.0
12708
12768
  *//**
12709
12769
  * Constructs a new GreetingsApi.
12710
12770
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -12811,7 +12871,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
12811
12871
  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(){/**
12812
12872
  * Groups service.
12813
12873
  * @module purecloud-platform-client-v2/api/GroupsApi
12814
- * @version 207.0.0
12874
+ * @version 209.0.0
12815
12875
  *//**
12816
12876
  * Constructs a new GroupsApi.
12817
12877
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -12944,7 +13004,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
12944
13004
  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(){/**
12945
13005
  * IdentityProvider service.
12946
13006
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
12947
- * @version 207.0.0
13007
+ * @version 209.0.0
12948
13008
  *//**
12949
13009
  * Constructs a new IdentityProviderApi.
12950
13010
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -13100,7 +13160,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13100
13160
  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(){/**
13101
13161
  * InfrastructureAsCode service.
13102
13162
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
13103
- * @version 207.0.0
13163
+ * @version 209.0.0
13104
13164
  *//**
13105
13165
  * Constructs a new InfrastructureAsCodeApi.
13106
13166
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -13154,7 +13214,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
13154
13214
  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(){/**
13155
13215
  * Integrations service.
13156
13216
  * @module purecloud-platform-client-v2/api/IntegrationsApi
13157
- * @version 207.0.0
13217
+ * @version 209.0.0
13158
13218
  *//**
13159
13219
  * Constructs a new IntegrationsApi.
13160
13220
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -13235,9 +13295,11 @@ if(actionId===undefined||actionId===null){throw'Missing the required parameter "
13235
13295
  *
13236
13296
  * @param {String} actionId actionId
13237
13297
  * @param {String} fileName Name of schema file to be retrieved for this draft.
13238
- */},{key:"getIntegrationsActionDraftSchema",value:function getIntegrationsActionDraftSchema(actionId,fileName){// verify the required parameter 'actionId' is set
13298
+ * @param {Object} opts Optional parameters
13299
+ * @param {Boolean} opts.flatten Indicates the response should be reformatted, based on Architect's flattening format. (default to false)
13300
+ */},{key:"getIntegrationsActionDraftSchema",value:function getIntegrationsActionDraftSchema(actionId,fileName,opts){opts=opts||{};// verify the required parameter 'actionId' is set
13239
13301
  if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';}// verify the required parameter 'fileName' is set
13240
- if(fileName===undefined||fileName===null){throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftSchema';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}','GET',{'actionId':actionId,'fileName':fileName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13302
+ if(fileName===undefined||fileName===null){throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftSchema';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}','GET',{'actionId':actionId,'fileName':fileName},{'flatten':opts['flatten']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13241
13303
  * Retrieve templates for a Draft based on filename.
13242
13304
  *
13243
13305
  * @param {String} actionId actionId
@@ -13260,9 +13322,11 @@ if(actionId===undefined||actionId===null){throw'Missing the required parameter "
13260
13322
  *
13261
13323
  * @param {String} actionId actionId
13262
13324
  * @param {String} fileName Name of schema file to be retrieved for this action.
13263
- */},{key:"getIntegrationsActionSchema",value:function getIntegrationsActionSchema(actionId,fileName){// verify the required parameter 'actionId' is set
13325
+ * @param {Object} opts Optional parameters
13326
+ * @param {Boolean} opts.flatten Indicates the response should be reformatted, based on Architect's flattening format. (default to false)
13327
+ */},{key:"getIntegrationsActionSchema",value:function getIntegrationsActionSchema(actionId,fileName,opts){opts=opts||{};// verify the required parameter 'actionId' is set
13264
13328
  if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';}// verify the required parameter 'fileName' is set
13265
- if(fileName===undefined||fileName===null){throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/schemas/{fileName}','GET',{'actionId':actionId,'fileName':fileName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13329
+ if(fileName===undefined||fileName===null){throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/schemas/{fileName}','GET',{'actionId':actionId,'fileName':fileName},{'flatten':opts['flatten']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13266
13330
  * Retrieve text of templates for an action based on filename.
13267
13331
  *
13268
13332
  * @param {String} actionId actionId
@@ -13671,23 +13735,29 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13671
13735
  *
13672
13736
  * @param {String} actionId actionId
13673
13737
  * @param {Object.<String, {String: Object}>} body Map of parameters used for variable substitution.
13674
- */},{key:"postIntegrationsActionDraftTest",value:function postIntegrationsActionDraftTest(actionId,body){// verify the required parameter 'actionId' is set
13738
+ * @param {Object} opts Optional parameters
13739
+ * @param {Boolean} opts.flatten Indicates the response should be reformatted, based on Architect's flattening format. (default to false)
13740
+ */},{key:"postIntegrationsActionDraftTest",value:function postIntegrationsActionDraftTest(actionId,body,opts){opts=opts||{};// verify the required parameter 'actionId' is set
13675
13741
  if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';}// verify the required parameter 'body' is set
13676
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionDraftTest';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/test','POST',{'actionId':actionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13742
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionDraftTest';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/test','POST',{'actionId':actionId},{'flatten':opts['flatten']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13677
13743
  * Execute Action and return response from 3rd party. Responses will follow the schemas defined on the Action for success and error.
13678
13744
  *
13679
13745
  * @param {String} actionId actionId
13680
13746
  * @param {Object.<String, {String: Object}>} body Map of parameters used for variable substitution.
13681
- */},{key:"postIntegrationsActionExecute",value:function postIntegrationsActionExecute(actionId,body){// verify the required parameter 'actionId' is set
13747
+ * @param {Object} opts Optional parameters
13748
+ * @param {Boolean} opts.flatten Indicates the response should be reformatted, based on Architect's flattening format. (default to false)
13749
+ */},{key:"postIntegrationsActionExecute",value:function postIntegrationsActionExecute(actionId,body,opts){opts=opts||{};// verify the required parameter 'actionId' is set
13682
13750
  if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';}// verify the required parameter 'body' is set
13683
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/execute','POST',{'actionId':actionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13751
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/execute','POST',{'actionId':actionId},{'flatten':opts['flatten']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13684
13752
  * Test the execution of an action. Responses will show execution steps broken out with intermediate results to help in debugging.
13685
13753
  *
13686
13754
  * @param {String} actionId actionId
13687
13755
  * @param {Object.<String, {String: Object}>} body Map of parameters used for variable substitution.
13688
- */},{key:"postIntegrationsActionTest",value:function postIntegrationsActionTest(actionId,body){// verify the required parameter 'actionId' is set
13756
+ * @param {Object} opts Optional parameters
13757
+ * @param {Boolean} opts.flatten Indicates the response should be reformatted, based on Architect's flattening format. (default to false)
13758
+ */},{key:"postIntegrationsActionTest",value:function postIntegrationsActionTest(actionId,body,opts){opts=opts||{};// verify the required parameter 'actionId' is set
13689
13759
  if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';}// verify the required parameter 'body' is set
13690
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionTest';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/test','POST',{'actionId':actionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13760
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionTest';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/test','POST',{'actionId':actionId},{'flatten':opts['flatten']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13691
13761
  * Create a new Action. Not supported for 'Function Integration' actions. Function integrations must be created as drafts to allow managing of uploading required ZIP function package before they may be used as a published action.
13692
13762
  *
13693
13763
  * @param {Object} body Input used to create Action.
@@ -13779,7 +13849,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
13779
13849
  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(){/**
13780
13850
  * Journey service.
13781
13851
  * @module purecloud-platform-client-v2/api/JourneyApi
13782
- * @version 207.0.0
13852
+ * @version 209.0.0
13783
13853
  *//**
13784
13854
  * Constructs a new JourneyApi.
13785
13855
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -13819,6 +13889,11 @@ if(segmentId===undefined||segmentId===null){throw'Missing the required parameter
13819
13889
  * @param {String} viewId viewId
13820
13890
  */},{key:"deleteJourneyView",value:function deleteJourneyView(viewId){// verify the required parameter 'viewId' is set
13821
13891
  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']);}/**
13892
+ * Delete the Schedule of a JourneyView
13893
+ * used for long descriptions
13894
+ * @param {String} viewId Journey View Id
13895
+ */},{key:"deleteJourneyViewSchedules",value:function deleteJourneyViewSchedules(viewId){// verify the required parameter 'viewId' is set
13896
+ if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling deleteJourneyViewSchedules';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/schedules','DELETE',{'viewId':viewId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13822
13897
  * Get status for async query for journey aggregates
13823
13898
  *
13824
13899
  * @param {String} jobId jobId
@@ -13984,6 +14059,11 @@ if(sessionId===undefined||sessionId===null){throw'Missing the required parameter
13984
14059
  * @param {String} viewId viewId
13985
14060
  */},{key:"getJourneyView",value:function getJourneyView(viewId){// verify the required parameter 'viewId' is set
13986
14061
  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']);}/**
14062
+ * Get the Schedule for a JourneyView
14063
+ * used for long descriptions
14064
+ * @param {String} viewId Journey View Id
14065
+ */},{key:"getJourneyViewSchedules",value:function getJourneyViewSchedules(viewId){// verify the required parameter 'viewId' is set
14066
+ if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling getJourneyViewSchedules';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/schedules','GET',{'viewId':viewId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13987
14067
  * Get a Journey View by ID and version
13988
14068
  *
13989
14069
  * @param {String} viewId viewId
@@ -14072,6 +14152,12 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
14072
14152
  * @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
14073
14153
  * @param {String} opts.statuses Job statuses to filter for
14074
14154
  */},{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']);}/**
14155
+ * Get the journey schedules for an organization.
14156
+ *
14157
+ * @param {Object} opts Optional parameters
14158
+ * @param {Number} opts.pageNumber The number of the page to return (default to 1)
14159
+ * @param {Number} opts.pageSize Max number of entities to return (default to 25)
14160
+ */},{key:"getJourneyViewsSchedules",value:function getJourneyViewsSchedules(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/schedules','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14075
14161
  * Update single action map.
14076
14162
  *
14077
14163
  * @param {String} actionMapId ID of the action map.
@@ -14191,6 +14277,13 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
14191
14277
  * @param {Object} opts Optional parameters
14192
14278
  * @param {Object} opts.body
14193
14279
  */},{key:"postJourneySegments",value:function postJourneySegments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/segments','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
14280
+ * Add a new Schedule to a JourneyView
14281
+ *
14282
+ * @param {String} viewId Journey View Id
14283
+ * @param {Object} body journeyViewSchedule
14284
+ */},{key:"postJourneyViewSchedules",value:function postJourneyViewSchedules(viewId,body){// verify the required parameter 'viewId' is set
14285
+ if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';}// verify the required parameter 'body' is set
14286
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postJourneyViewSchedules';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/schedules','POST',{'viewId':viewId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14194
14287
  * Submit a job request for a journey view version.
14195
14288
  * used for long descriptions
14196
14289
  * @param {String} viewId Journey View Id
@@ -14215,6 +14308,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14215
14308
  * @param {Object} opts Optional parameters
14216
14309
  * @param {Array.<Object>} opts.body
14217
14310
  */},{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']);}/**
14311
+ * Update the Schedule for a JourneyView
14312
+ * used for long descriptions
14313
+ * @param {String} viewId Journey View Id
14314
+ * @param {Object} body journeyViewSchedule
14315
+ */},{key:"putJourneyViewSchedules",value:function putJourneyViewSchedules(viewId,body){// verify the required parameter 'viewId' is set
14316
+ if(viewId===undefined||viewId===null){throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';}// verify the required parameter 'body' is set
14317
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewSchedules';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/schedules','PUT',{'viewId':viewId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14218
14318
  * Update a Journey View by ID and version
14219
14319
  * does not create a new version
14220
14320
  * @param {String} viewId viewId
@@ -14226,7 +14326,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
14226
14326
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
14227
14327
  * Knowledge service.
14228
14328
  * @module purecloud-platform-client-v2/api/KnowledgeApi
14229
- * @version 207.0.0
14329
+ * @version 209.0.0
14230
14330
  *//**
14231
14331
  * Constructs a new KnowledgeApi.
14232
14332
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -14367,8 +14467,10 @@ if(sessionId===undefined||sessionId===null){throw'Missing the required parameter
14367
14467
  * Get sync options available for a knowledge-connect integration
14368
14468
  *
14369
14469
  * @param {String} integrationId Integration ID
14370
- */},{key:"getKnowledgeIntegrationOptions",value:function getKnowledgeIntegrationOptions(integrationId){// verify the required parameter 'integrationId' is set
14371
- if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getKnowledgeIntegrationOptions';}return this.apiClient.callApi('/api/v2/knowledge/integrations/{integrationId}/options','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14470
+ * @param {Object} opts Optional parameters
14471
+ * @param {Array.<String>} opts.knowledgeBaseIds Narrowing down filtering option results by knowledge base.
14472
+ */},{key:"getKnowledgeIntegrationOptions",value:function getKnowledgeIntegrationOptions(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
14473
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getKnowledgeIntegrationOptions';}return this.apiClient.callApi('/api/v2/knowledge/integrations/{integrationId}/options','GET',{'integrationId':integrationId},{'knowledgeBaseIds':this.apiClient.buildCollectionParam(opts['knowledgeBaseIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14372
14474
  * Get knowledge base
14373
14475
  *
14374
14476
  * @param {String} knowledgeBaseId Knowledge base ID
@@ -14441,10 +14543,11 @@ if(feedbackId===undefined||feedbackId===null){throw'Missing the required paramet
14441
14543
  * @param {String} knowledgeBaseId Globally unique identifier for a knowledge base.
14442
14544
  * @param {Object} opts Optional parameters
14443
14545
  * @param {Object} opts.documentState The state of the document.
14546
+ * @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
14444
14547
  */},{key:"getKnowledgeKnowledgebaseDocumentVariation",value:function getKnowledgeKnowledgebaseDocumentVariation(documentVariationId,documentId,knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'documentVariationId' is set
14445
14548
  if(documentVariationId===undefined||documentVariationId===null){throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';}// verify the required parameter 'documentId' is set
14446
14549
  if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';}// verify the required parameter 'knowledgeBaseId' is set
14447
- if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariation';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}','GET',{'documentVariationId':documentVariationId,'documentId':documentId,'knowledgeBaseId':knowledgeBaseId},{'documentState':opts['documentState']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14550
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariation';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}','GET',{'documentVariationId':documentVariationId,'documentId':documentId,'knowledgeBaseId':knowledgeBaseId},{'documentState':opts['documentState'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14448
14551
  * Get variations for a document.
14449
14552
  *
14450
14553
  * @param {String} knowledgeBaseId Globally unique identifier for the knowledge base.
@@ -14454,9 +14557,10 @@ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the requir
14454
14557
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
14455
14558
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
14456
14559
  * @param {Object} opts.documentState The state of the document.
14560
+ * @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
14457
14561
  */},{key:"getKnowledgeKnowledgebaseDocumentVariations",value:function getKnowledgeKnowledgebaseDocumentVariations(knowledgeBaseId,documentId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
14458
14562
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';}// verify the required parameter 'documentId' is set
14459
- if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations','GET',{'knowledgeBaseId':knowledgeBaseId,'documentId':documentId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'documentState':opts['documentState']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14563
+ if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations','GET',{'knowledgeBaseId':knowledgeBaseId,'documentId':documentId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'documentState':opts['documentState'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14460
14564
  * Get document version.
14461
14565
  *
14462
14566
  * @param {String} knowledgeBaseId Globally unique identifier for the knowledge base.
@@ -15292,7 +15396,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
15292
15396
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
15293
15397
  * LanguageUnderstanding service.
15294
15398
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
15295
- * @version 207.0.0
15399
+ * @version 209.0.0
15296
15400
  *//**
15297
15401
  * Constructs a new LanguageUnderstandingApi.
15298
15402
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -15552,7 +15656,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
15552
15656
  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(){/**
15553
15657
  * Languages service.
15554
15658
  * @module purecloud-platform-client-v2/api/LanguagesApi
15555
- * @version 207.0.0
15659
+ * @version 209.0.0
15556
15660
  *//**
15557
15661
  * Constructs a new LanguagesApi.
15558
15662
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -15607,7 +15711,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
15607
15711
  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(){/**
15608
15712
  * Learning service.
15609
15713
  * @module purecloud-platform-client-v2/api/LearningApi
15610
- * @version 207.0.0
15714
+ * @version 209.0.0
15611
15715
  *//**
15612
15716
  * Constructs a new LearningApi.
15613
15717
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -15878,7 +15982,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
15878
15982
  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(){/**
15879
15983
  * License service.
15880
15984
  * @module purecloud-platform-client-v2/api/LicenseApi
15881
- * @version 207.0.0
15985
+ * @version 209.0.0
15882
15986
  *//**
15883
15987
  * Constructs a new LicenseApi.
15884
15988
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -15932,7 +16036,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
15932
16036
  */},{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(){/**
15933
16037
  * Locations service.
15934
16038
  * @module purecloud-platform-client-v2/api/LocationsApi
15935
- * @version 207.0.0
16039
+ * @version 209.0.0
15936
16040
  *//**
15937
16041
  * Constructs a new LocationsApi.
15938
16042
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -15991,7 +16095,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15991
16095
  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(){/**
15992
16096
  * LogCapture service.
15993
16097
  * @module purecloud-platform-client-v2/api/LogCaptureApi
15994
- * @version 207.0.0
16098
+ * @version 209.0.0
15995
16099
  *//**
15996
16100
  * Constructs a new LogCaptureApi.
15997
16101
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -16041,7 +16145,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16041
16145
  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(){/**
16042
16146
  * Messaging service.
16043
16147
  * @module purecloud-platform-client-v2/api/MessagingApi
16044
- * @version 207.0.0
16148
+ * @version 209.0.0
16045
16149
  *//**
16046
16150
  * Constructs a new MessagingApi.
16047
16151
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -16131,7 +16235,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16131
16235
  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(){/**
16132
16236
  * MobileDevices service.
16133
16237
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
16134
- * @version 207.0.0
16238
+ * @version 209.0.0
16135
16239
  *//**
16136
16240
  * Constructs a new MobileDevicesApi.
16137
16241
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -16170,7 +16274,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16170
16274
  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(){/**
16171
16275
  * Notifications service.
16172
16276
  * @module purecloud-platform-client-v2/api/NotificationsApi
16173
- * @version 207.0.0
16277
+ * @version 209.0.0
16174
16278
  *//**
16175
16279
  * Constructs a new NotificationsApi.
16176
16280
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -16227,7 +16331,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
16227
16331
  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(){/**
16228
16332
  * OAuth service.
16229
16333
  * @module purecloud-platform-client-v2/api/OAuthApi
16230
- * @version 207.0.0
16334
+ * @version 209.0.0
16231
16335
  *//**
16232
16336
  * Constructs a new OAuthApi.
16233
16337
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -16312,7 +16416,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
16312
16416
  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(){/**
16313
16417
  * Objects service.
16314
16418
  * @module purecloud-platform-client-v2/api/ObjectsApi
16315
- * @version 207.0.0
16419
+ * @version 209.0.0
16316
16420
  *//**
16317
16421
  * Constructs a new ObjectsApi.
16318
16422
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -16383,7 +16487,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
16383
16487
  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(){/**
16384
16488
  * OperationalEvents service.
16385
16489
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
16386
- * @version 207.0.0
16490
+ * @version 209.0.0
16387
16491
  *//**
16388
16492
  * Constructs a new OperationalEventsApi.
16389
16493
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -16398,10 +16502,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16398
16502
  if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the required parameter "eventDefinitionId" when calling getUsageEventsDefinition';}return this.apiClient.callApi('/api/v2/usage/events/definitions/{eventDefinitionId}','GET',{'eventDefinitionId':eventDefinitionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
16399
16503
  * Get all operational event definitions
16400
16504
  *
16401
- */},{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(){/**
16505
+ */},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
16506
+ * Get aggregates for operational events in a timeframe.
16507
+ *
16508
+ * @param {Object} opts Optional parameters
16509
+ * @param {Object} opts.body
16510
+ */},{key:"postUsageEventsAggregatesQuery",value:function postUsageEventsAggregatesQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/aggregates/query','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
16511
+ * Query operational events in a timeframe.
16512
+ *
16513
+ * @param {Object} opts Optional parameters
16514
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
16515
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
16516
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
16517
+ * @param {Object} opts.body
16518
+ */},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
16402
16519
  * Organization service.
16403
16520
  * @module purecloud-platform-client-v2/api/OrganizationApi
16404
- * @version 207.0.0
16521
+ * @version 209.0.0
16405
16522
  *//**
16406
16523
  * Constructs a new OrganizationApi.
16407
16524
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -16526,7 +16643,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16526
16643
  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(){/**
16527
16644
  * OrganizationAuthorization service.
16528
16645
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
16529
- * @version 207.0.0
16646
+ * @version 209.0.0
16530
16647
  *//**
16531
16648
  * Constructs a new OrganizationAuthorizationApi.
16532
16649
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -16860,7 +16977,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
16860
16977
  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(){/**
16861
16978
  * Outbound service.
16862
16979
  * @module purecloud-platform-client-v2/api/OutboundApi
16863
- * @version 207.0.0
16980
+ * @version 209.0.0
16864
16981
  *//**
16865
16982
  * Constructs a new OutboundApi.
16866
16983
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -17967,7 +18084,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17967
18084
  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(){/**
17968
18085
  * Presence service.
17969
18086
  * @module purecloud-platform-client-v2/api/PresenceApi
17970
- * @version 207.0.0
18087
+ * @version 209.0.0
17971
18088
  *//**
17972
18089
  * Constructs a new PresenceApi.
17973
18090
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -18140,7 +18257,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18140
18257
  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(){/**
18141
18258
  * ProcessAutomation service.
18142
18259
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
18143
- * @version 207.0.0
18260
+ * @version 209.0.0
18144
18261
  *//**
18145
18262
  * Constructs a new ProcessAutomationApi.
18146
18263
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -18203,7 +18320,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
18203
18320
  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(){/**
18204
18321
  * Quality service.
18205
18322
  * @module purecloud-platform-client-v2/api/QualityApi
18206
- * @version 207.0.0
18323
+ * @version 209.0.0
18207
18324
  *//**
18208
18325
  * Constructs a new QualityApi.
18209
18326
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -18288,7 +18405,8 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
18288
18405
  * @param {String} opts.group group id
18289
18406
  * @param {String} opts.agentTeamId team id of agents requested
18290
18407
  * @param {String} opts.formContextId shared id between form versions
18291
- */},{key:"getQualityAgentsActivity",value:function getQualityAgentsActivity(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/agents/activity','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'startTime':opts['startTime'],'endTime':opts['endTime'],'agentUserId':this.apiClient.buildCollectionParam(opts['agentUserId'],'multi'),'evaluatorUserId':opts['evaluatorUserId'],'name':opts['name'],'group':opts['group'],'agentTeamId':opts['agentTeamId'],'formContextId':opts['formContextId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18408
+ * @param {Object} opts.userState 'Legacy' fetches active and inactive users when evaluatorUserId or no user filters are supplied; otherwise fetches active users. 'Any' fetches users of 'active', 'inactive' and 'deleted' states. (default to Legacy)
18409
+ */},{key:"getQualityAgentsActivity",value:function getQualityAgentsActivity(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/agents/activity','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'startTime':opts['startTime'],'endTime':opts['endTime'],'agentUserId':this.apiClient.buildCollectionParam(opts['agentUserId'],'multi'),'evaluatorUserId':opts['evaluatorUserId'],'name':opts['name'],'group':opts['group'],'agentTeamId':opts['agentTeamId'],'formContextId':opts['formContextId'],'userState':opts['userState']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18292
18410
  * Get a calibration by id. Requires either calibrator id or conversation id
18293
18411
  *
18294
18412
  * @param {String} calibrationId Calibration ID
@@ -18362,7 +18480,8 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
18362
18480
  * @param {Boolean} opts.expandAnswerTotalScores get the total scores for evaluations. NOTE: The answers will only be populated if this parameter is set to true in the request.
18363
18481
  * @param {Number} opts.maximum the maximum number of results to return
18364
18482
  * @param {String} opts.sortOrder NOTE: Does not work when conversationId is supplied.
18365
- */},{key:"getQualityEvaluationsQuery",value:function getQualityEvaluationsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/evaluations/query','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'previousPage':opts['previousPage'],'conversationId':opts['conversationId'],'agentUserId':opts['agentUserId'],'agentTeamId':opts['agentTeamId'],'evaluatorUserId':opts['evaluatorUserId'],'assigneeUserId':opts['assigneeUserId'],'queueId':opts['queueId'],'startTime':opts['startTime'],'endTime':opts['endTime'],'formContextId':opts['formContextId'],'evaluationState':this.apiClient.buildCollectionParam(opts['evaluationState'],'multi'),'isReleased':opts['isReleased'],'agentHasRead':opts['agentHasRead'],'expandAnswerTotalScores':opts['expandAnswerTotalScores'],'maximum':opts['maximum'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18483
+ * @param {Boolean} opts.includeDeletedUsers Allow returning an agent or evaluator user with a 'delete' status. Defaults to false. (default to false)
18484
+ */},{key:"getQualityEvaluationsQuery",value:function getQualityEvaluationsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/evaluations/query','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'previousPage':opts['previousPage'],'conversationId':opts['conversationId'],'agentUserId':opts['agentUserId'],'agentTeamId':opts['agentTeamId'],'evaluatorUserId':opts['evaluatorUserId'],'assigneeUserId':opts['assigneeUserId'],'queueId':opts['queueId'],'startTime':opts['startTime'],'endTime':opts['endTime'],'formContextId':opts['formContextId'],'evaluationState':this.apiClient.buildCollectionParam(opts['evaluationState'],'multi'),'isReleased':opts['isReleased'],'agentHasRead':opts['agentHasRead'],'expandAnswerTotalScores':opts['expandAnswerTotalScores'],'maximum':opts['maximum'],'sortOrder':opts['sortOrder'],'includeDeletedUsers':opts['includeDeletedUsers']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18366
18485
  * Get an evaluator activity
18367
18486
  *
18368
18487
  * @param {Object} opts Optional parameters
@@ -18680,7 +18799,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
18680
18799
  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(){/**
18681
18800
  * Recording service.
18682
18801
  * @module purecloud-platform-client-v2/api/RecordingApi
18683
- * @version 207.0.0
18802
+ * @version 209.0.0
18684
18803
  *//**
18685
18804
  * Constructs a new RecordingApi.
18686
18805
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -19092,7 +19211,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19092
19211
  */},{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(){/**
19093
19212
  * ResponseManagement service.
19094
19213
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
19095
- * @version 207.0.0
19214
+ * @version 209.0.0
19096
19215
  *//**
19097
19216
  * Constructs a new ResponseManagementApi.
19098
19217
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -19213,7 +19332,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
19213
19332
  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(){/**
19214
19333
  * Routing service.
19215
19334
  * @module purecloud-platform-client-v2/api/RoutingApi
19216
- * @version 207.0.0
19335
+ * @version 209.0.0
19217
19336
  *//**
19218
19337
  * Constructs a new RoutingApi.
19219
19338
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -19305,9 +19424,9 @@ if(skillGroupId===undefined||skillGroupId===null){throw'Missing the required par
19305
19424
  if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling deleteRoutingSmsAddress';}return this.apiClient.callApi('/api/v2/routing/sms/addresses/{addressId}','DELETE',{'addressId':addressId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19306
19425
  * Delete a phone number provisioned for SMS.
19307
19426
  *
19308
- * @param {String} addressId Address ID
19309
- */},{key:"deleteRoutingSmsPhonenumber",value:function deleteRoutingSmsPhonenumber(addressId){// verify the required parameter 'addressId' is set
19310
- if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{addressId}','DELETE',{'addressId':addressId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19427
+ * @param {String} phoneNumberId phone number
19428
+ */},{key:"deleteRoutingSmsPhonenumber",value:function deleteRoutingSmsPhonenumber(phoneNumberId){// verify the required parameter 'phoneNumberId' is set
19429
+ if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required parameter "phoneNumberId" when calling deleteRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{phoneNumberId}','DELETE',{'phoneNumberId':phoneNumberId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19311
19430
  * Delete the user's Direct Routing Backup settings and revert to the Direct Routing Queue default.
19312
19431
  *
19313
19432
  * @param {String} userId User ID
@@ -19341,14 +19460,14 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
19341
19460
  * @param {String} codeId Wrapup Code ID
19342
19461
  */},{key:"deleteRoutingWrapupcode",value:function deleteRoutingWrapupcode(codeId){// verify the required parameter 'codeId' is set
19343
19462
  if(codeId===undefined||codeId===null){throw'Missing the required parameter "codeId" when calling deleteRoutingWrapupcode';}return this.apiClient.callApi('/api/v2/routing/wrapupcodes/{codeId}','DELETE',{'codeId':codeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19344
- * Remove routing language from user
19463
+ * Remove a routing language from a user
19345
19464
  *
19346
19465
  * @param {String} userId User ID
19347
19466
  * @param {String} languageId languageId
19348
19467
  */},{key:"deleteUserRoutinglanguage",value:function deleteUserRoutinglanguage(userId,languageId){// verify the required parameter 'userId' is set
19349
19468
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';}// verify the required parameter 'languageId' is set
19350
19469
  if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages/{languageId}','DELETE',{'userId':userId,'languageId':languageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19351
- * Remove routing skill from user
19470
+ * Remove a routing skill from a user
19352
19471
  *
19353
19472
  * @param {String} userId User ID
19354
19473
  * @param {String} skillId skillId
@@ -19530,10 +19649,12 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
19530
19649
  * Get Estimated Wait Time
19531
19650
  *
19532
19651
  * @param {String} queueId queueId
19533
- * @param {String} mediaType mediaType
19534
- */},{key:"getRoutingQueueMediatypeEstimatedwaittime",value:function getRoutingQueueMediatypeEstimatedwaittime(queueId,mediaType){// verify the required parameter 'queueId' is set
19652
+ * @param {Object} mediaType mediaType
19653
+ * @param {Object} opts Optional parameters
19654
+ * @param {String} opts.labelId Unique id that represents the interaction label used with media type for EWT calculation
19655
+ */},{key:"getRoutingQueueMediatypeEstimatedwaittime",value:function getRoutingQueueMediatypeEstimatedwaittime(queueId,mediaType,opts){opts=opts||{};// verify the required parameter 'queueId' is set
19535
19656
  if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';}// verify the required parameter 'mediaType' is set
19536
- if(mediaType===undefined||mediaType===null){throw'Missing the required parameter "mediaType" when calling getRoutingQueueMediatypeEstimatedwaittime';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime','GET',{'queueId':queueId,'mediaType':mediaType},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19657
+ if(mediaType===undefined||mediaType===null){throw'Missing the required parameter "mediaType" when calling getRoutingQueueMediatypeEstimatedwaittime';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime','GET',{'queueId':queueId,'mediaType':mediaType},{'labelId':opts['labelId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19537
19658
  * Get the members of this queue.
19538
19659
  *
19539
19660
  * @param {String} queueId Queue ID
@@ -19695,11 +19816,11 @@ if(countryCode===undefined||countryCode===null){throw'Missing the required param
19695
19816
  if(phoneNumberType===undefined||phoneNumberType===null){throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';}return this.apiClient.callApi('/api/v2/routing/sms/availablephonenumbers','GET',{},{'countryCode':countryCode,'region':opts['region'],'city':opts['city'],'areaCode':opts['areaCode'],'phoneNumberType':phoneNumberType,'pattern':opts['pattern'],'addressRequirement':opts['addressRequirement']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19696
19817
  * Get a phone number provisioned for SMS.
19697
19818
  *
19698
- * @param {String} addressId Address ID
19819
+ * @param {String} phoneNumberId phone number
19699
19820
  * @param {Object} opts Optional parameters
19700
19821
  * @param {Object} opts.expand Expand response with additional information
19701
- */},{key:"getRoutingSmsPhonenumber",value:function getRoutingSmsPhonenumber(addressId,opts){opts=opts||{};// verify the required parameter 'addressId' is set
19702
- if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling getRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{addressId}','GET',{'addressId':addressId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19822
+ */},{key:"getRoutingSmsPhonenumber",value:function getRoutingSmsPhonenumber(phoneNumberId,opts){opts=opts||{};// verify the required parameter 'phoneNumberId' is set
19823
+ if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required parameter "phoneNumberId" when calling getRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{phoneNumberId}','GET',{'phoneNumberId':phoneNumberId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19703
19824
  * Get a list of provisioned phone numbers.
19704
19825
  *
19705
19826
  * @param {Object} opts Optional parameters
@@ -19808,7 +19929,7 @@ if(codeId===undefined||codeId===null){throw'Missing the required parameter "code
19808
19929
  * @param {Array.<String>} opts.divisionId Division ID(s)
19809
19930
  */},{key:"getUserQueues",value:function getUserQueues(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
19810
19931
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getUserQueues';}return this.apiClient.callApi('/api/v2/users/{userId}/queues','GET',{'userId':userId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'joined':opts['joined'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19811
- * List routing language for user
19932
+ * List routing languages assigned to a user
19812
19933
  *
19813
19934
  * @param {String} userId User ID
19814
19935
  * @param {Object} opts Optional parameters
@@ -19817,7 +19938,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
19817
19938
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
19818
19939
  */},{key:"getUserRoutinglanguages",value:function getUserRoutinglanguages(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
19819
19940
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages','GET',{'userId':userId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19820
- * List routing skills for user
19941
+ * List routing skills assigned to a user
19821
19942
  *
19822
19943
  * @param {String} userId User ID
19823
19944
  * @param {Object} opts Optional parameters
@@ -19932,7 +20053,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19932
20053
  */},{key:"patchUserQueues",value:function patchUserQueues(userId,body,opts){opts=opts||{};// verify the required parameter 'userId' is set
19933
20054
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserQueues';}// verify the required parameter 'body' is set
19934
20055
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserQueues';}return this.apiClient.callApi('/api/v2/users/{userId}/queues','PATCH',{'userId':userId},{'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19935
- * Update routing language proficiency or state.
20056
+ * Update an assigned routing language's proficiency
19936
20057
  *
19937
20058
  * @param {String} userId User ID
19938
20059
  * @param {String} languageId languageId
@@ -19941,14 +20062,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19941
20062
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';}// verify the required parameter 'languageId' is set
19942
20063
  if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';}// verify the required parameter 'body' is set
19943
20064
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages/{languageId}','PATCH',{'userId':userId,'languageId':languageId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19944
- * Add bulk routing language to user. Max limit 50 languages
20065
+ * Assign multiple routing languages to a user. Max 50 routing languages in request body
19945
20066
  *
19946
20067
  * @param {String} userId User ID
19947
20068
  * @param {Array.<Object>} body Language
19948
20069
  */},{key:"patchUserRoutinglanguagesBulk",value:function patchUserRoutinglanguagesBulk(userId,body){// verify the required parameter 'userId' is set
19949
20070
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';}// verify the required parameter 'body' is set
19950
20071
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages/bulk','PATCH',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19951
- * Bulk add routing skills to user
20072
+ * Assign multiple routing skills to a user
19952
20073
  *
19953
20074
  * @param {String} userId User ID
19954
20075
  * @param {Array.<Object>} body Skill
@@ -20102,14 +20223,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20102
20223
  * @param {Object} body WrapupCode
20103
20224
  */},{key:"postRoutingWrapupcodes",value:function postRoutingWrapupcodes(body){// verify the required parameter 'body' is set
20104
20225
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingWrapupcodes';}return this.apiClient.callApi('/api/v2/routing/wrapupcodes','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20105
- * Add routing language to user
20226
+ * Assign a routing language to a user
20106
20227
  *
20107
20228
  * @param {String} userId User ID
20108
20229
  * @param {Object} body Language
20109
20230
  */},{key:"postUserRoutinglanguages",value:function postUserRoutinglanguages(userId,body){// verify the required parameter 'userId' is set
20110
20231
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';}// verify the required parameter 'body' is set
20111
20232
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUserRoutinglanguages';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20112
- * Add routing skill to user
20233
+ * Assign a routing skill to a user
20113
20234
  *
20114
20235
  * @param {String} userId User ID
20115
20236
  * @param {Object} body Skill
@@ -20161,11 +20282,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20161
20282
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSettingsTranscription';}return this.apiClient.callApi('/api/v2/routing/settings/transcription','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20162
20283
  * Update a phone number provisioned for SMS.
20163
20284
  *
20164
- * @param {String} addressId Address ID
20285
+ * @param {String} phoneNumberId phone number
20165
20286
  * @param {Object} body SmsPhoneNumber
20166
- */},{key:"putRoutingSmsPhonenumber",value:function putRoutingSmsPhonenumber(addressId,body){// verify the required parameter 'addressId' is set
20167
- if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';}// verify the required parameter 'body' is set
20168
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{addressId}','PUT',{'addressId':addressId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20287
+ */},{key:"putRoutingSmsPhonenumber",value:function putRoutingSmsPhonenumber(phoneNumberId,body){// verify the required parameter 'phoneNumberId' is set
20288
+ if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required parameter "phoneNumberId" when calling putRoutingSmsPhonenumber';}// verify the required parameter 'body' is set
20289
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{phoneNumberId}','PUT',{'phoneNumberId':phoneNumberId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20169
20290
  * Update the user's Direct Routing Backup settings.
20170
20291
  *
20171
20292
  * @param {String} userId User ID
@@ -20199,7 +20320,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20199
20320
  */},{key:"putRoutingWrapupcode",value:function putRoutingWrapupcode(codeId,body){// verify the required parameter 'codeId' is set
20200
20321
  if(codeId===undefined||codeId===null){throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';}// verify the required parameter 'body' is set
20201
20322
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingWrapupcode';}return this.apiClient.callApi('/api/v2/routing/wrapupcodes/{codeId}','PUT',{'codeId':codeId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20202
- * Update routing skill proficiency or state.
20323
+ * Update an assigned routing skill's proficiency
20203
20324
  *
20204
20325
  * @param {String} userId User ID
20205
20326
  * @param {String} skillId skillId
@@ -20208,7 +20329,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20208
20329
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserRoutingskill';}// verify the required parameter 'skillId' is set
20209
20330
  if(skillId===undefined||skillId===null){throw'Missing the required parameter "skillId" when calling putUserRoutingskill';}// verify the required parameter 'body' is set
20210
20331
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskill';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/{skillId}','PUT',{'userId':userId,'skillId':skillId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20211
- * Replace all routing skills assigned to a user
20332
+ * Assign multiple routing skills to a user, replacing any current assignments
20212
20333
  *
20213
20334
  * @param {String} userId User ID
20214
20335
  * @param {Array.<Object>} body Skill
@@ -20217,7 +20338,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
20217
20338
  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(){/**
20218
20339
  * SCIM service.
20219
20340
  * @module purecloud-platform-client-v2/api/SCIMApi
20220
- * @version 207.0.0
20341
+ * @version 209.0.0
20221
20342
  *//**
20222
20343
  * Constructs a new SCIMApi.
20223
20344
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -20442,7 +20563,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
20442
20563
  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(){/**
20443
20564
  * ScreenRecording service.
20444
20565
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
20445
- * @version 207.0.0
20566
+ * @version 209.0.0
20446
20567
  *//**
20447
20568
  * Constructs a new ScreenRecordingApi.
20448
20569
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -20457,7 +20578,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20457
20578
  */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(){/**
20458
20579
  * Scripts service.
20459
20580
  * @module purecloud-platform-client-v2/api/ScriptsApi
20460
- * @version 207.0.0
20581
+ * @version 209.0.0
20461
20582
  *//**
20462
20583
  * Constructs a new ScriptsApi.
20463
20584
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -20593,7 +20714,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
20593
20714
  */},{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(){/**
20594
20715
  * Search service.
20595
20716
  * @module purecloud-platform-client-v2/api/SearchApi
20596
- * @version 207.0.0
20717
+ * @version 209.0.0
20597
20718
  *//**
20598
20719
  * Constructs a new SearchApi.
20599
20720
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -20641,6 +20762,13 @@ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when
20641
20762
  * @param {Boolean} opts.profile profile (default to true)
20642
20763
  */},{key:"getSearchSuggest",value:function getSearchSuggest(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
20643
20764
  if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'profile':opts['profile']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20765
+ * Search sites using the q64 value returned from a previous search
20766
+ *
20767
+ * @param {String} q64 q64
20768
+ * @param {Object} opts Optional parameters
20769
+ * @param {Array.<String>} opts.expand expand
20770
+ */},{key:"getTelephonyProvidersEdgesSitesSearch",value:function getTelephonyProvidersEdgesSitesSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
20771
+ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/sites/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20644
20772
  * Search users using the q64 value returned from a previous search
20645
20773
  *
20646
20774
  * @param {String} q64 q64
@@ -20724,6 +20852,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20724
20852
  * @param {Object} body Search request options
20725
20853
  */},{key:"postTeamsSearch",value:function postTeamsSearch(body){// verify the required parameter 'body' is set
20726
20854
  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']);}/**
20855
+ * Search sites
20856
+ *
20857
+ * @param {Object} body Search request options
20858
+ */},{key:"postTelephonyProvidersEdgesSitesSearch",value:function postTelephonyProvidersEdgesSitesSearch(body){// verify the required parameter 'body' is set
20859
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/sites/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20727
20860
  * Search users
20728
20861
  *
20729
20862
  * @param {Object} body Search request options
@@ -20753,7 +20886,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20753
20886
  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(){/**
20754
20887
  * Settings service.
20755
20888
  * @module purecloud-platform-client-v2/api/SettingsApi
20756
- * @version 207.0.0
20889
+ * @version 209.0.0
20757
20890
  *//**
20758
20891
  * Constructs a new SettingsApi.
20759
20892
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -20800,10 +20933,275 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20800
20933
  * @param {Object} body AutoAnswerSettings
20801
20934
  */},{key:"putUsersAgentuiAgentsAutoanswerAgentIdSettings",value:function putUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId,body){// verify the required parameter 'agentId' is set
20802
20935
  if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}// verify the required parameter 'body' is set
20803
- 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(){/**
20936
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
20937
+ * SocialMedia service.
20938
+ * @module purecloud-platform-client-v2/api/SocialMediaApi
20939
+ * @version 209.0.0
20940
+ *//**
20941
+ * Constructs a new SocialMediaApi.
20942
+ * @alias module:purecloud-platform-client-v2/api/SocialMediaApi
20943
+ * @class
20944
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
20945
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
20946
+ */function SocialMediaApi(apiClient){_classCallCheck(this,SocialMediaApi);this.apiClient=apiClient||ApiClient.instance;}/**
20947
+ * Delete a social topic.
20948
+ *
20949
+ * @param {String} topicId topicId
20950
+ * @param {Object} opts Optional parameters
20951
+ * @param {Boolean} opts.hardDelete Determines whether a Social topic should be soft-deleted or hard-deleted (permanently removed). Set to false (soft-delete) by default.
20952
+ * deleteSocialmediaTopic is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20953
+ */return _createClass(SocialMediaApi,[{key:"deleteSocialmediaTopic",value:function deleteSocialmediaTopic(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
20954
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopic';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}','DELETE',{'topicId':topicId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20955
+ * Delete a Facebook data ingestion rule.
20956
+ *
20957
+ * @param {String} topicId topicId
20958
+ * @param {String} facebookIngestionRuleId facebookIngestionRuleId
20959
+ * @param {Object} opts Optional parameters
20960
+ * @param {Boolean} opts.hardDelete Determines whether a Facebook data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
20961
+ * deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20962
+ */},{key:"deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
20963
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
20964
+ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','DELETE',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20965
+ * Delete a open data ingestion rule.
20966
+ *
20967
+ * @param {String} topicId topicId
20968
+ * @param {String} openId openId
20969
+ * @param {Object} opts Optional parameters
20970
+ * @param {Boolean} opts.hardDelete Determines whether a open data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
20971
+ * deleteSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20972
+ */},{key:"deleteSocialmediaTopicDataingestionrulesOpenOpenId",value:function deleteSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
20973
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
20974
+ if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','DELETE',{'topicId':topicId,'openId':openId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20975
+ * Delete a X (formally Twitter) data ingestion rule.
20976
+ *
20977
+ * @param {String} topicId topicId
20978
+ * @param {String} twitterIngestionRuleId twitterIngestionRuleId
20979
+ * @param {Object} opts Optional parameters
20980
+ * @param {Boolean} opts.hardDelete Determines whether a X (formally Twitter) data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
20981
+ * deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20982
+ */},{key:"deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId,twitterIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
20983
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}// verify the required parameter 'twitterIngestionRuleId' is set
20984
+ if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','DELETE',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20985
+ * Get a single social topic.
20986
+ *
20987
+ * @param {String} topicId topicId
20988
+ * @param {Object} opts Optional parameters
20989
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
20990
+ * getSocialmediaTopic is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20991
+ */},{key:"getSocialmediaTopic",value:function getSocialmediaTopic(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
20992
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopic';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}','GET',{'topicId':topicId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20993
+ * Get a single Facebook data ingestion rule.
20994
+ *
20995
+ * @param {String} topicId topicId
20996
+ * @param {String} facebookIngestionRuleId facebookIngestionRuleId
20997
+ * @param {Object} opts Optional parameters
20998
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
20999
+ * getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21000
+ */},{key:"getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21001
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
21002
+ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','GET',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21003
+ * Get a single Facebook data ingestion rule version.
21004
+ *
21005
+ * @param {String} topicId topicId
21006
+ * @param {String} facebookIngestionRuleId facebookIngestionRuleId
21007
+ * @param {String} dataIngestionRuleVersion version
21008
+ * @param {Object} opts Optional parameters
21009
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
21010
+ * getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21011
+ */},{key:"getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion",value:function getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(topicId,facebookIngestionRuleId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21012
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';}// verify the required parameter 'facebookIngestionRuleId' is set
21013
+ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
21014
+ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null){throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions/{dataIngestionRuleVersion}','GET',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId,'dataIngestionRuleVersion':dataIngestionRuleVersion},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21015
+ * Get the Facebook data ingestion rule versions.
21016
+ *
21017
+ * @param {String} topicId topicId
21018
+ * @param {String} facebookIngestionRuleId facebookIngestionRuleId
21019
+ * @param {Object} opts Optional parameters
21020
+ * @param {Number} opts.pageNumber Page number (default to 1)
21021
+ * @param {Number} opts.pageSize Page size (default to 25)
21022
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
21023
+ * getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21024
+ */},{key:"getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21025
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}// verify the required parameter 'facebookIngestionRuleId' is set
21026
+ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions','GET',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21027
+ * Get a single open data ingestion rule.
21028
+ *
21029
+ * @param {String} topicId topicId
21030
+ * @param {String} openId openId
21031
+ * @param {Object} opts Optional parameters
21032
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
21033
+ * getSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21034
+ */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenId",value:function getSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21035
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
21036
+ if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','GET',{'topicId':topicId,'openId':openId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21037
+ * Get a single Open data ingestion rule version.
21038
+ *
21039
+ * @param {String} topicId topicId
21040
+ * @param {String} openId openId
21041
+ * @param {String} dataIngestionRuleVersion version
21042
+ * @param {Object} opts Optional parameters
21043
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
21044
+ * getSocialmediaTopicDataingestionrulesOpenOpenIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21045
+ */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersion",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(topicId,openId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21046
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'openId' is set
21047
+ if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
21048
+ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null){throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions/{dataIngestionRuleVersion}','GET',{'topicId':topicId,'openId':openId,'dataIngestionRuleVersion':dataIngestionRuleVersion},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21049
+ * Get the Open data ingestion rule versions.
21050
+ *
21051
+ * @param {String} topicId topicId
21052
+ * @param {String} openId openId
21053
+ * @param {Object} opts Optional parameters
21054
+ * @param {Number} opts.pageNumber Page number (default to 1)
21055
+ * @param {Number} opts.pageSize Page size (default to 25)
21056
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
21057
+ * getSocialmediaTopicDataingestionrulesOpenOpenIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21058
+ */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersions",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21059
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}// verify the required parameter 'openId' is set
21060
+ if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions','GET',{'topicId':topicId,'openId':openId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21061
+ * Get a single X (formally Twitter) data ingestion rule.
21062
+ *
21063
+ * @param {String} topicId topicId
21064
+ * @param {String} twitterIngestionRuleId twitterIngestionRuleId
21065
+ * @param {Object} opts Optional parameters
21066
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
21067
+ * getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21068
+ */},{key:"getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId",value:function getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId,twitterIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21069
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}// verify the required parameter 'twitterIngestionRuleId' is set
21070
+ if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','GET',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21071
+ * Get a single X (formally Twitter) data ingestion rule version.
21072
+ *
21073
+ * @param {String} topicId topicId
21074
+ * @param {String} twitterIngestionRuleId twitterIngestionRuleId
21075
+ * @param {String} dataIngestionRuleVersion version
21076
+ * @param {Object} opts Optional parameters
21077
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
21078
+ * getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21079
+ */},{key:"getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion",value:function getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(topicId,twitterIngestionRuleId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21080
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';}// verify the required parameter 'twitterIngestionRuleId' is set
21081
+ if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
21082
+ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null){throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions/{dataIngestionRuleVersion}','GET',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId,'dataIngestionRuleVersion':dataIngestionRuleVersion},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21083
+ * Get the Open data ingestion rule versions.
21084
+ *
21085
+ * @param {String} topicId topicId
21086
+ * @param {String} twitterIngestionRuleId twitterIngestionRuleId
21087
+ * @param {Object} opts Optional parameters
21088
+ * @param {Number} opts.pageNumber Page number (default to 1)
21089
+ * @param {Number} opts.pageSize Page size (default to 25)
21090
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
21091
+ * getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21092
+ */},{key:"getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(topicId,twitterIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21093
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';}// verify the required parameter 'twitterIngestionRuleId' is set
21094
+ if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions','GET',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21095
+ * Retrieve all social topics.
21096
+ *
21097
+ * @param {Object} opts Optional parameters
21098
+ * @param {Number} opts.pageNumber Page number (default to 1)
21099
+ * @param {Number} opts.pageSize Page size (default to 25)
21100
+ * @param {Array.<String>} opts.divisionIds One or more division IDs. If nothing is provided, the social topics associated withthe list of divisions that the user has access to will be returned.
21101
+ * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
21102
+ * getSocialmediaTopics is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21103
+ */},{key:"getSocialmediaTopics",value:function getSocialmediaTopics(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/socialmedia/topics','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi'),'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21104
+ * Update a social topic.
21105
+ *
21106
+ * @param {String} topicId topicId
21107
+ * @param {Object} opts Optional parameters
21108
+ * @param {Object} opts.body
21109
+ * patchSocialmediaTopic is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21110
+ */},{key:"patchSocialmediaTopic",value:function patchSocialmediaTopic(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21111
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}','PATCH',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21112
+ * Update the status of a Facebook data ingestion rule.
21113
+ *
21114
+ * @param {String} topicId topicId
21115
+ * @param {String} facebookIngestionRuleId facebookIngestionRuleId
21116
+ * @param {Object} opts Optional parameters
21117
+ * @param {Object} opts.body
21118
+ * patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21119
+ */},{key:"patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21120
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
21121
+ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PATCH',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21122
+ * Update the status of a open data ingestion rule.
21123
+ *
21124
+ * @param {String} topicId topicId
21125
+ * @param {String} openId openId
21126
+ * @param {Object} opts Optional parameters
21127
+ * @param {Object} opts.body
21128
+ * patchSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21129
+ */},{key:"patchSocialmediaTopicDataingestionrulesOpenOpenId",value:function patchSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21130
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
21131
+ if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','PATCH',{'topicId':topicId,'openId':openId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21132
+ * Update the status of a X (formally Twitter) data ingestion rule.
21133
+ *
21134
+ * @param {String} topicId topicId
21135
+ * @param {String} twitterIngestionRuleId twitterIngestionRuleId
21136
+ * @param {Object} opts Optional parameters
21137
+ * @param {Object} opts.body
21138
+ * patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21139
+ */},{key:"patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId,twitterIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21140
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}// verify the required parameter 'twitterIngestionRuleId' is set
21141
+ if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PATCH',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21142
+ * Create an Facebook data ingestion rule.
21143
+ *
21144
+ * @param {String} topicId topicId
21145
+ * @param {Object} opts Optional parameters
21146
+ * @param {Object} opts.body
21147
+ * postSocialmediaTopicDataingestionrulesFacebook is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21148
+ */},{key:"postSocialmediaTopicDataingestionrulesFacebook",value:function postSocialmediaTopicDataingestionrulesFacebook(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21149
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21150
+ * Create an open data ingestion rule.
21151
+ *
21152
+ * @param {String} topicId topicId
21153
+ * @param {Object} opts Optional parameters
21154
+ * @param {Object} opts.body
21155
+ * postSocialmediaTopicDataingestionrulesOpen is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21156
+ */},{key:"postSocialmediaTopicDataingestionrulesOpen",value:function postSocialmediaTopicDataingestionrulesOpen(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21157
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpen';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21158
+ * Create an twitter data ingestion rule.
21159
+ *
21160
+ * @param {String} topicId topicId
21161
+ * @param {Object} opts Optional parameters
21162
+ * @param {Object} opts.body
21163
+ * postSocialmediaTopicDataingestionrulesTwitter is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21164
+ */},{key:"postSocialmediaTopicDataingestionrulesTwitter",value:function postSocialmediaTopicDataingestionrulesTwitter(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21165
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesTwitter';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21166
+ * Create a social topic.
21167
+ *
21168
+ * @param {Object} opts Optional parameters
21169
+ * @param {Object} opts.body
21170
+ * postSocialmediaTopics is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21171
+ */},{key:"postSocialmediaTopics",value:function postSocialmediaTopics(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/socialmedia/topics','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21172
+ * Update the Facebook data ingestion rule.
21173
+ *
21174
+ * @param {String} topicId topicId
21175
+ * @param {String} facebookIngestionRuleId facebookIngestionRuleId
21176
+ * @param {Object} opts Optional parameters
21177
+ * @param {Object} opts.body
21178
+ * putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21179
+ */},{key:"putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21180
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
21181
+ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PUT',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21182
+ * Update the open data ingestion rule.
21183
+ *
21184
+ * @param {String} topicId topicId
21185
+ * @param {String} openId openId
21186
+ * @param {Object} opts Optional parameters
21187
+ * @param {Object} opts.body
21188
+ * putSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21189
+ */},{key:"putSocialmediaTopicDataingestionrulesOpenOpenId",value:function putSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21190
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
21191
+ if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','PUT',{'topicId':topicId,'openId':openId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
21192
+ * Update the X (formally Twitter) data ingestion rule.
21193
+ *
21194
+ * @param {String} topicId topicId
21195
+ * @param {String} twitterIngestionRuleId twitterIngestionRuleId
21196
+ * @param {Object} opts Optional parameters
21197
+ * @param {Object} opts.body
21198
+ * putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
21199
+ */},{key:"putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId,twitterIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
21200
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}// verify the required parameter 'twitterIngestionRuleId' is set
21201
+ if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
20804
21202
  * SpeechTextAnalytics service.
20805
21203
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
20806
- * @version 207.0.0
21204
+ * @version 209.0.0
20807
21205
  *//**
20808
21206
  * Constructs a new SpeechTextAnalyticsApi.
20809
21207
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -20988,13 +21386,13 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
20988
21386
  * @param {String} jobId The id of the publish topics job
20989
21387
  */},{key:"getSpeechandtextanalyticsTopicsPublishjob",value:function getSpeechandtextanalyticsTopicsPublishjob(jobId){// verify the required parameter 'jobId' is set
20990
21388
  if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsPublishjob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/publishjobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20991
- * Translate all communication(s) for an interaction.
21389
+ * Translate a single interaction recording (or an email conversation)
20992
21390
  *
20993
21391
  * @param {String} languageId Target translation language
20994
21392
  * @param {String} conversationId Conversation id
20995
21393
  * @param {Object} opts Optional parameters
20996
- * @param {String} opts.communicationId Communication id associated with the conversation
20997
- * @param {String} opts.recordingId Recording id associated with the communication
21394
+ * @param {String} opts.communicationId Communication id associated with the conversation. Please provide a valid communicationId when requesting non-email interactions.
21395
+ * @param {String} opts.recordingId Recording id associated with the communication. Please provide a valid recordingId when requesting voice interactions.
20998
21396
  * getSpeechandtextanalyticsTranslationsLanguageConversation is a preview method and is subject to both breaking and non-breaking changes at any time without notice
20999
21397
  */},{key:"getSpeechandtextanalyticsTranslationsLanguageConversation",value:function getSpeechandtextanalyticsTranslationsLanguageConversation(languageId,conversationId,opts){opts=opts||{};// verify the required parameter 'languageId' is set
21000
21398
  if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';}// verify the required parameter 'conversationId' is set
@@ -21102,7 +21500,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
21102
21500
  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(){/**
21103
21501
  * Stations service.
21104
21502
  * @module purecloud-platform-client-v2/api/StationsApi
21105
- * @version 207.0.0
21503
+ * @version 209.0.0
21106
21504
  *//**
21107
21505
  * Constructs a new StationsApi.
21108
21506
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -21134,7 +21532,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
21134
21532
  */},{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(){/**
21135
21533
  * Suggest service.
21136
21534
  * @module purecloud-platform-client-v2/api/SuggestApi
21137
- * @version 207.0.0
21535
+ * @version 209.0.0
21138
21536
  *//**
21139
21537
  * Constructs a new SuggestApi.
21140
21538
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -21174,7 +21572,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21174
21572
  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(){/**
21175
21573
  * TaskManagement service.
21176
21574
  * @module purecloud-platform-client-v2/api/TaskManagementApi
21177
- * @version 207.0.0
21575
+ * @version 209.0.0
21178
21576
  *//**
21179
21577
  * Constructs a new TaskManagementApi.
21180
21578
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -21580,7 +21978,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
21580
21978
  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(){/**
21581
21979
  * Teams service.
21582
21980
  * @module purecloud-platform-client-v2/api/TeamsApi
21583
- * @version 207.0.0
21981
+ * @version 209.0.0
21584
21982
  *//**
21585
21983
  * Constructs a new TeamsApi.
21586
21984
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -21660,7 +22058,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21660
22058
  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(){/**
21661
22059
  * Telephony service.
21662
22060
  * @module purecloud-platform-client-v2/api/TelephonyApi
21663
- * @version 207.0.0
22061
+ * @version 209.0.0
21664
22062
  *//**
21665
22063
  * Constructs a new TelephonyApi.
21666
22064
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -21707,7 +22105,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
21707
22105
  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(){/**
21708
22106
  * TelephonyProvidersEdge service.
21709
22107
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
21710
- * @version 207.0.0
22108
+ * @version 209.0.0
21711
22109
  *//**
21712
22110
  * Constructs a new TelephonyProvidersEdgeApi.
21713
22111
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -22199,6 +22597,13 @@ if(siteId===undefined||siteId===null){throw'Missing the required parameter "site
22199
22597
  * @param {Boolean} opts.managed Filter by managed
22200
22598
  * @param {Array.<String>} opts.expand Fields to expand in the response, comma-separated
22201
22599
  */},{key:"getTelephonyProvidersEdgesSites",value:function getTelephonyProvidersEdgesSites(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/telephony/providers/edges/sites','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name'],'location.id':opts['locationId'],'managed':opts['managed'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22600
+ * Search sites using the q64 value returned from a previous search
22601
+ *
22602
+ * @param {String} q64 q64
22603
+ * @param {Object} opts Optional parameters
22604
+ * @param {Array.<String>} opts.expand expand
22605
+ */},{key:"getTelephonyProvidersEdgesSitesSearch",value:function getTelephonyProvidersEdgesSitesSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
22606
+ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/sites/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22202
22607
  * Get a list of Edge-compatible time zones
22203
22608
  *
22204
22609
  * @param {Object} opts Optional parameters
@@ -22414,6 +22819,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22414
22819
  * @param {Object} body Site
22415
22820
  */},{key:"postTelephonyProvidersEdgesSites",value:function postTelephonyProvidersEdgesSites(body){// verify the required parameter 'body' is set
22416
22821
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSites';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/sites','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22822
+ * Search sites
22823
+ *
22824
+ * @param {Object} body Search request options
22825
+ */},{key:"postTelephonyProvidersEdgesSitesSearch",value:function postTelephonyProvidersEdgesSitesSearch(body){// verify the required parameter 'body' is set
22826
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/sites/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22417
22827
  * Create a Trunk Base Settings object
22418
22828
  *
22419
22829
  * @param {Object} body Trunk base settings
@@ -22530,7 +22940,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
22530
22940
  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(){/**
22531
22941
  * Textbots service.
22532
22942
  * @module purecloud-platform-client-v2/api/TextbotsApi
22533
- * @version 207.0.0
22943
+ * @version 209.0.0
22534
22944
  *//**
22535
22945
  * Constructs a new TextbotsApi.
22536
22946
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -22565,7 +22975,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
22565
22975
  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(){/**
22566
22976
  * Tokens service.
22567
22977
  * @module purecloud-platform-client-v2/api/TokensApi
22568
- * @version 207.0.0
22978
+ * @version 209.0.0
22569
22979
  *//**
22570
22980
  * Constructs a new TokensApi.
22571
22981
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -22599,7 +23009,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
22599
23009
  */},{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(){/**
22600
23010
  * Uploads service.
22601
23011
  * @module purecloud-platform-client-v2/api/UploadsApi
22602
- * @version 207.0.0
23012
+ * @version 209.0.0
22603
23013
  *//**
22604
23014
  * Constructs a new UploadsApi.
22605
23015
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -22665,7 +23075,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22665
23075
  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(){/**
22666
23076
  * Usage service.
22667
23077
  * @module purecloud-platform-client-v2/api/UsageApi
22668
- * @version 207.0.0
23078
+ * @version 209.0.0
22669
23079
  *//**
22670
23080
  * Constructs a new UsageApi.
22671
23081
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -22719,7 +23129,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22719
23129
  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(){/**
22720
23130
  * UserRecordings service.
22721
23131
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
22722
- * @version 207.0.0
23132
+ * @version 209.0.0
22723
23133
  *//**
22724
23134
  * Constructs a new UserRecordingsApi.
22725
23135
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -22776,7 +23186,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
22776
23186
  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(){/**
22777
23187
  * Users service.
22778
23188
  * @module purecloud-platform-client-v2/api/UsersApi
22779
- * @version 207.0.0
23189
+ * @version 209.0.0
22780
23190
  *//**
22781
23191
  * Constructs a new UsersApi.
22782
23192
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -22816,14 +23226,14 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
22816
23226
  * @param {String} userId User ID
22817
23227
  */},{key:"deleteUser",value:function deleteUser(userId){// verify the required parameter 'userId' is set
22818
23228
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteUser';}return this.apiClient.callApi('/api/v2/users/{userId}','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22819
- * Remove routing language from user
23229
+ * Remove a routing language from a user
22820
23230
  *
22821
23231
  * @param {String} userId User ID
22822
23232
  * @param {String} languageId languageId
22823
23233
  */},{key:"deleteUserRoutinglanguage",value:function deleteUserRoutinglanguage(userId,languageId){// verify the required parameter 'userId' is set
22824
23234
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';}// verify the required parameter 'languageId' is set
22825
23235
  if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages/{languageId}','DELETE',{'userId':userId,'languageId':languageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22826
- * Remove routing skill from user
23236
+ * Remove a routing skill from a user
22827
23237
  *
22828
23238
  * @param {String} userId User ID
22829
23239
  * @param {String} skillId skillId
@@ -23027,7 +23437,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
23027
23437
  * @param {String} subjectId User ID
23028
23438
  */},{key:"getUserRoles",value:function getUserRoles(subjectId){// verify the required parameter 'subjectId' is set
23029
23439
  if(subjectId===undefined||subjectId===null){throw'Missing the required parameter "subjectId" when calling getUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','GET',{'subjectId':subjectId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23030
- * List routing language for user
23440
+ * List routing languages assigned to a user
23031
23441
  *
23032
23442
  * @param {String} userId User ID
23033
23443
  * @param {Object} opts Optional parameters
@@ -23036,7 +23446,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
23036
23446
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
23037
23447
  */},{key:"getUserRoutinglanguages",value:function getUserRoutinglanguages(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
23038
23448
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages','GET',{'userId':userId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23039
- * List routing skills for user
23449
+ * List routing skills assigned to a user
23040
23450
  *
23041
23451
  * @param {String} userId User ID
23042
23452
  * @param {Object} opts Optional parameters
@@ -23201,7 +23611,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23201
23611
  */},{key:"patchUserQueues",value:function patchUserQueues(userId,body,opts){opts=opts||{};// verify the required parameter 'userId' is set
23202
23612
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserQueues';}// verify the required parameter 'body' is set
23203
23613
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserQueues';}return this.apiClient.callApi('/api/v2/users/{userId}/queues','PATCH',{'userId':userId},{'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23204
- * Update routing language proficiency or state.
23614
+ * Update an assigned routing language's proficiency
23205
23615
  *
23206
23616
  * @param {String} userId User ID
23207
23617
  * @param {String} languageId languageId
@@ -23210,14 +23620,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23210
23620
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';}// verify the required parameter 'languageId' is set
23211
23621
  if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';}// verify the required parameter 'body' is set
23212
23622
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages/{languageId}','PATCH',{'userId':userId,'languageId':languageId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23213
- * Add bulk routing language to user. Max limit 50 languages
23623
+ * Assign multiple routing languages to a user. Max 50 routing languages in request body
23214
23624
  *
23215
23625
  * @param {String} userId User ID
23216
23626
  * @param {Array.<Object>} body Language
23217
23627
  */},{key:"patchUserRoutinglanguagesBulk",value:function patchUserRoutinglanguagesBulk(userId,body){// verify the required parameter 'userId' is set
23218
23628
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';}// verify the required parameter 'body' is set
23219
23629
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages/bulk','PATCH',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23220
- * Bulk add routing skills to user
23630
+ * Assign multiple routing skills to a user
23221
23631
  *
23222
23632
  * @param {String} userId User ID
23223
23633
  * @param {Array.<Object>} body Skill
@@ -23320,14 +23730,14 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
23320
23730
  */},{key:"postUserPassword",value:function postUserPassword(userId,body){// verify the required parameter 'userId' is set
23321
23731
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postUserPassword';}// verify the required parameter 'body' is set
23322
23732
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUserPassword';}return this.apiClient.callApi('/api/v2/users/{userId}/password','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23323
- * Add routing language to user
23733
+ * Assign a routing language to a user
23324
23734
  *
23325
23735
  * @param {String} userId User ID
23326
23736
  * @param {Object} body Language
23327
23737
  */},{key:"postUserRoutinglanguages",value:function postUserRoutinglanguages(userId,body){// verify the required parameter 'userId' is set
23328
23738
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';}// verify the required parameter 'body' is set
23329
23739
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUserRoutinglanguages';}return this.apiClient.callApi('/api/v2/users/{userId}/routinglanguages','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23330
- * Add routing skill to user
23740
+ * Assign a routing skill to a user
23331
23741
  *
23332
23742
  * @param {String} userId User ID
23333
23743
  * @param {Object} body Skill
@@ -23418,7 +23828,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23418
23828
  */},{key:"putUserRoles",value:function putUserRoles(subjectId,body){// verify the required parameter 'subjectId' is set
23419
23829
  if(subjectId===undefined||subjectId===null){throw'Missing the required parameter "subjectId" when calling putUserRoles';}// verify the required parameter 'body' is set
23420
23830
  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']);}/**
23421
- * Update routing skill proficiency or state.
23831
+ * Update an assigned routing skill's proficiency
23422
23832
  *
23423
23833
  * @param {String} userId User ID
23424
23834
  * @param {String} skillId skillId
@@ -23427,7 +23837,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23427
23837
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserRoutingskill';}// verify the required parameter 'skillId' is set
23428
23838
  if(skillId===undefined||skillId===null){throw'Missing the required parameter "skillId" when calling putUserRoutingskill';}// verify the required parameter 'body' is set
23429
23839
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskill';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/{skillId}','PUT',{'userId':userId,'skillId':skillId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23430
- * Replace all routing skills assigned to a user
23840
+ * Assign multiple routing skills to a user, replacing any current assignments
23431
23841
  *
23432
23842
  * @param {String} userId User ID
23433
23843
  * @param {Array.<Object>} body Skill
@@ -23473,7 +23883,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
23473
23883
  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(){/**
23474
23884
  * Utilities service.
23475
23885
  * @module purecloud-platform-client-v2/api/UtilitiesApi
23476
- * @version 207.0.0
23886
+ * @version 209.0.0
23477
23887
  *//**
23478
23888
  * Constructs a new UtilitiesApi.
23479
23889
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -23500,7 +23910,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23500
23910
  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(){/**
23501
23911
  * Voicemail service.
23502
23912
  * @module purecloud-platform-client-v2/api/VoicemailApi
23503
- * @version 207.0.0
23913
+ * @version 209.0.0
23504
23914
  *//**
23505
23915
  * Constructs a new VoicemailApi.
23506
23916
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -23662,7 +24072,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
23662
24072
  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(){/**
23663
24073
  * WebChat service.
23664
24074
  * @module purecloud-platform-client-v2/api/WebChatApi
23665
- * @version 207.0.0
24075
+ * @version 209.0.0
23666
24076
  *//**
23667
24077
  * Constructs a new WebChatApi.
23668
24078
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -23797,7 +24207,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23797
24207
  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(){/**
23798
24208
  * WebDeployments service.
23799
24209
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
23800
- * @version 207.0.0
24210
+ * @version 209.0.0
23801
24211
  *//**
23802
24212
  * Constructs a new WebDeploymentsApi.
23803
24213
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -23918,7 +24328,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
23918
24328
  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(){/**
23919
24329
  * WebMessaging service.
23920
24330
  * @module purecloud-platform-client-v2/api/WebMessagingApi
23921
- * @version 207.0.0
24331
+ * @version 209.0.0
23922
24332
  *//**
23923
24333
  * Constructs a new WebMessagingApi.
23924
24334
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -23934,7 +24344,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
23934
24344
  */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(){/**
23935
24345
  * Widgets service.
23936
24346
  * @module purecloud-platform-client-v2/api/WidgetsApi
23937
- * @version 207.0.0
24347
+ * @version 209.0.0
23938
24348
  *//**
23939
24349
  * Constructs a new WidgetsApi.
23940
24350
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -23969,7 +24379,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
23969
24379
  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(){/**
23970
24380
  * WorkforceManagement service.
23971
24381
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
23972
- * @version 207.0.0
24382
+ * @version 209.0.0
23973
24383
  *//**
23974
24384
  * Constructs a new WorkforceManagementApi.
23975
24385
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -24694,7 +25104,7 @@ if(weekId===undefined||weekId===null){throw'Missing the required parameter "week
24694
25104
  * Gets all the shift trades for a given week
24695
25105
  *
24696
25106
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
24697
- * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25107
+ * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
24698
25108
  * @param {Object} opts Optional parameters
24699
25109
  * @param {Boolean} opts.evaluateMatches Whether to evaluate the matches for violations (default to true)
24700
25110
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
@@ -24993,7 +25403,7 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
24993
25403
  * Updates a shift trade. This route can only be called by the initiating agent
24994
25404
  *
24995
25405
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
24996
- * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25406
+ * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
24997
25407
  * @param {String} tradeId The ID of the shift trade to update
24998
25408
  * @param {Object} body body
24999
25409
  */},{key:"patchWorkforcemanagementManagementunitWeekShifttrade",value:function patchWorkforcemanagementManagementunitWeekShifttrade(managementUnitId,weekDateId,tradeId,body){// verify the required parameter 'managementUnitId' is set
@@ -25560,7 +25970,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
25560
25970
  * Matches a shift trade. This route can only be called by the receiving agent
25561
25971
  *
25562
25972
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
25563
- * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25973
+ * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25564
25974
  * @param {String} tradeId The ID of the shift trade to update
25565
25975
  * @param {Object} body body
25566
25976
  */},{key:"postWorkforcemanagementManagementunitWeekShifttradeMatch",value:function postWorkforcemanagementManagementunitWeekShifttradeMatch(managementUnitId,weekDateId,tradeId,body){// verify the required parameter 'managementUnitId' is set
@@ -25571,7 +25981,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25571
25981
  * Adds a shift trade
25572
25982
  *
25573
25983
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
25574
- * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25984
+ * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25575
25985
  * @param {Object} body body
25576
25986
  */},{key:"postWorkforcemanagementManagementunitWeekShifttrades",value:function postWorkforcemanagementManagementunitWeekShifttrades(managementUnitId,weekDateId,body){// verify the required parameter 'managementUnitId' is set
25577
25987
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';}// verify the required parameter 'weekDateId' is set
@@ -25580,7 +25990,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25580
25990
  * Searches for potential shift trade matches for the current agent
25581
25991
  *
25582
25992
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
25583
- * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25993
+ * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25584
25994
  * @param {Object} body body
25585
25995
  * @param {Object} opts Optional parameters
25586
25996
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
@@ -25591,7 +26001,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25591
26001
  * Updates the state of a batch of shift trades
25592
26002
  * Admin functionality is not supported with "mine".
25593
26003
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
25594
- * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
26004
+ * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25595
26005
  * @param {Object} body body
25596
26006
  * @param {Object} opts Optional parameters
25597
26007
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
@@ -25750,7 +26160,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
25750
26160
  * </pre>
25751
26161
  * </p>
25752
26162
  * @module purecloud-platform-client-v2/index
25753
- * @version 207.0.0
26163
+ * @version 209.0.0
25754
26164
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
25755
26165
  * The ApiClient constructor.
25756
26166
  * @property {module:purecloud-platform-client-v2/ApiClient}
@@ -25932,6 +26342,9 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
25932
26342
  * The SettingsApi service constructor.
25933
26343
  * @property {module:purecloud-platform-client-v2/api/SettingsApi}
25934
26344
  */this.SettingsApi=SettingsApi;/**
26345
+ * The SocialMediaApi service constructor.
26346
+ * @property {module:purecloud-platform-client-v2/api/SocialMediaApi}
26347
+ */this.SocialMediaApi=SocialMediaApi;/**
25935
26348
  * The SpeechTextAnalyticsApi service constructor.
25936
26349
  * @property {module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi}
25937
26350
  */this.SpeechTextAnalyticsApi=SpeechTextAnalyticsApi;/**
@@ -25998,4 +26411,4 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
25998
26411
  var index=new platformClient();module.exports=index;
25999
26412
 
26000
26413
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,require("timers").setImmediate)
26001
- },{"buffer":3,"os":26,"path":27,"qs":30,"timers":36}]},{},[]);
26414
+ },{"buffer":3,"os":33,"path":34,"qs":37,"timers":43}]},{},[]);