purecloud-platform-client-v2 130.0.0 → 132.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 (73) hide show
  1. package/README.md +2 -8
  2. package/dist/node/purecloud-platform-client-v2.js +522 -103
  3. package/dist/web-amd/purecloud-platform-client-v2.js +523 -104
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +528 -109
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +4175 -964
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +315 -45
  9. package/package.json +9 -9
  10. package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +46 -1
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +177 -2
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +7 -3
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/MessagingApi.js +156 -0
  40. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/OutboundApi.js +7 -3
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/QualityApi.js +52 -2
  49. package/src/purecloud-platform-client-v2/api/RecordingApi.js +8 -5
  50. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -21
  56. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +2 -2
  60. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -1,8 +1,10 @@
1
1
  'use strict';
2
2
 
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
3
+ var superagent = require('superagent');
4
4
 
5
- var superagent = _interopDefault(require('superagent'));
5
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+
7
+ var superagent__default = /*#__PURE__*/_interopDefaultLegacy(superagent);
6
8
 
7
9
  var PureCloudRegionHosts = {
8
10
  us_east_1: 'mypurecloud.com',
@@ -910,7 +912,7 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
910
912
  }
911
913
  }
912
914
 
913
- function read$$1 (buf, i) {
915
+ function read (buf, i) {
914
916
  if (indexSize === 1) {
915
917
  return buf[i]
916
918
  } else {
@@ -922,7 +924,7 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
922
924
  if (dir) {
923
925
  var foundIndex = -1;
924
926
  for (i = byteOffset; i < arrLength; i++) {
925
- if (read$$1(arr, i) === read$$1(val, foundIndex === -1 ? 0 : i - foundIndex)) {
927
+ if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
926
928
  if (foundIndex === -1) foundIndex = i;
927
929
  if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
928
930
  } else {
@@ -935,7 +937,7 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
935
937
  for (i = byteOffset; i >= 0; i--) {
936
938
  var found = true;
937
939
  for (var j = 0; j < valLength; j++) {
938
- if (read$$1(arr, i + j) !== read$$1(val, j)) {
940
+ if (read(arr, i + j) !== read(val, j)) {
939
941
  found = false;
940
942
  break
941
943
  }
@@ -1006,7 +1008,7 @@ function ucs2Write (buf, string, offset, length) {
1006
1008
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
1007
1009
  }
1008
1010
 
1009
- Buffer.prototype.write = function write$$1 (string, offset, length, encoding) {
1011
+ Buffer.prototype.write = function write (string, offset, length, encoding) {
1010
1012
  // Buffer#write(string)
1011
1013
  if (offset === undefined) {
1012
1014
  encoding = 'utf8';
@@ -1675,7 +1677,7 @@ function checkIEEE754 (buf, value, offset, ext, max, min) {
1675
1677
 
1676
1678
  function writeFloat (buf, value, offset, littleEndian, noAssert) {
1677
1679
  if (!noAssert) {
1678
- checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38);
1680
+ checkIEEE754(buf, value, offset, 4);
1679
1681
  }
1680
1682
  write(buf, value, offset, littleEndian, 23, 4);
1681
1683
  return offset + 4
@@ -1691,7 +1693,7 @@ Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert)
1691
1693
 
1692
1694
  function writeDouble (buf, value, offset, littleEndian, noAssert) {
1693
1695
  if (!noAssert) {
1694
- checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308);
1696
+ checkIEEE754(buf, value, offset, 8);
1695
1697
  }
1696
1698
  write(buf, value, offset, littleEndian, 52, 8);
1697
1699
  return offset + 8
@@ -2263,7 +2265,7 @@ class Configuration {
2263
2265
 
2264
2266
  /**
2265
2267
  * @module purecloud-platform-client-v2/ApiClient
2266
- * @version 130.0.0
2268
+ * @version 132.0.0
2267
2269
  */
2268
2270
  class ApiClient {
2269
2271
  /**
@@ -2367,7 +2369,7 @@ class ApiClient {
2367
2369
  this.settingsPrefix = 'purecloud';
2368
2370
 
2369
2371
  // Expose superagent module for use with superagent-proxy
2370
- this.superagent = superagent;
2372
+ this.superagent = superagent__default["default"];
2371
2373
 
2372
2374
  // Transparently request a new access token when it expires (Code Authorization only)
2373
2375
  this.refreshInProgress = false;
@@ -2538,7 +2540,7 @@ class ApiClient {
2538
2540
  }
2539
2541
 
2540
2542
  // Build token request
2541
- var request = superagent('POST', `https://login.${this.config.environment}/oauth/token`);
2543
+ var request = superagent__default["default"]('POST', `https://login.${this.config.environment}/oauth/token`);
2542
2544
  if (this.proxy && request.proxy) {
2543
2545
  request.proxy(this.proxy);
2544
2546
  }
@@ -2794,7 +2796,7 @@ class ApiClient {
2794
2796
  * @param {string} encodedData - Base64 encoded client and clientSecret pair
2795
2797
  */
2796
2798
  _formAuthRequest(encodedData) {
2797
- var request = superagent('POST', `https://login.${this.config.environment}/oauth/token`);
2799
+ var request = superagent__default["default"]('POST', `https://login.${this.config.environment}/oauth/token`);
2798
2800
  // Set the headers
2799
2801
  request.set('Authorization', 'Basic ' + encodedData);
2800
2802
  request.set('Content-Type', 'application/x-www-form-urlencoded');
@@ -3189,7 +3191,7 @@ class ApiClient {
3189
3191
  sendRequest(this);
3190
3192
  function sendRequest(that) {
3191
3193
  var url = that.buildUrl(path, pathParams);
3192
- var request = superagent(httpMethod, url);
3194
+ var request = superagent__default["default"](httpMethod, url);
3193
3195
 
3194
3196
  if (that.proxy && request.proxy) {
3195
3197
  request.proxy(that.proxy);
@@ -3203,7 +3205,7 @@ class ApiClient {
3203
3205
 
3204
3206
  // set header parameters
3205
3207
  request.set(that.defaultHeaders).set(that.normalizeParams(headerParams));
3206
- //request.set({ 'purecloud-sdk': '130.0.0' });
3208
+ //request.set({ 'purecloud-sdk': '132.0.0' });
3207
3209
 
3208
3210
  // set request timeout
3209
3211
  request.timeout(that.timeout);
@@ -3303,7 +3305,7 @@ class AlertingApi {
3303
3305
  /**
3304
3306
  * Alerting service.
3305
3307
  * @module purecloud-platform-client-v2/api/AlertingApi
3306
- * @version 130.0.0
3308
+ * @version 132.0.0
3307
3309
  */
3308
3310
 
3309
3311
  /**
@@ -3617,7 +3619,7 @@ class AnalyticsApi {
3617
3619
  /**
3618
3620
  * Analytics service.
3619
3621
  * @module purecloud-platform-client-v2/api/AnalyticsApi
3620
- * @version 130.0.0
3622
+ * @version 132.0.0
3621
3623
  */
3622
3624
 
3623
3625
  /**
@@ -4118,6 +4120,26 @@ class AnalyticsApi {
4118
4120
  );
4119
4121
  }
4120
4122
 
4123
+ /**
4124
+ * Get AnalyticsReportingSettings for an organization
4125
+ *
4126
+ */
4127
+ getAnalyticsReportingSettings() {
4128
+
4129
+ return this.apiClient.callApi(
4130
+ '/api/v2/analytics/reporting/settings',
4131
+ 'GET',
4132
+ { },
4133
+ { },
4134
+ { },
4135
+ { },
4136
+ null,
4137
+ ['PureCloud OAuth'],
4138
+ ['application/json'],
4139
+ ['application/json']
4140
+ );
4141
+ }
4142
+
4121
4143
  /**
4122
4144
  * Get a list of report time periods.
4123
4145
  *
@@ -4213,6 +4235,31 @@ class AnalyticsApi {
4213
4235
  );
4214
4236
  }
4215
4237
 
4238
+ /**
4239
+ * Patch AnalyticsReportingSettings values for an organization
4240
+ *
4241
+ * @param {Object} body AnalyticsReportingSettingsRequest
4242
+ */
4243
+ patchAnalyticsReportingSettings(body) {
4244
+ // verify the required parameter 'body' is set
4245
+ if (body === undefined || body === null) {
4246
+ throw 'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';
4247
+ }
4248
+
4249
+ return this.apiClient.callApi(
4250
+ '/api/v2/analytics/reporting/settings',
4251
+ 'PATCH',
4252
+ { },
4253
+ { },
4254
+ { },
4255
+ { },
4256
+ body,
4257
+ ['PureCloud OAuth'],
4258
+ ['application/json'],
4259
+ ['application/json']
4260
+ );
4261
+ }
4262
+
4216
4263
  /**
4217
4264
  * Query for bot aggregates
4218
4265
  *
@@ -4754,7 +4801,7 @@ class ArchitectApi {
4754
4801
  /**
4755
4802
  * Architect service.
4756
4803
  * @module purecloud-platform-client-v2/api/ArchitectApi
4757
- * @version 130.0.0
4804
+ * @version 132.0.0
4758
4805
  */
4759
4806
 
4760
4807
  /**
@@ -7750,7 +7797,7 @@ class AuditApi {
7750
7797
  /**
7751
7798
  * Audit service.
7752
7799
  * @module purecloud-platform-client-v2/api/AuditApi
7753
- * @version 130.0.0
7800
+ * @version 132.0.0
7754
7801
  */
7755
7802
 
7756
7803
  /**
@@ -7921,7 +7968,7 @@ class AuthorizationApi {
7921
7968
  /**
7922
7969
  * Authorization service.
7923
7970
  * @module purecloud-platform-client-v2/api/AuthorizationApi
7924
- * @version 130.0.0
7971
+ * @version 132.0.0
7925
7972
  */
7926
7973
 
7927
7974
  /**
@@ -9104,7 +9151,7 @@ class BillingApi {
9104
9151
  /**
9105
9152
  * Billing service.
9106
9153
  * @module purecloud-platform-client-v2/api/BillingApi
9107
- * @version 130.0.0
9154
+ * @version 132.0.0
9108
9155
  */
9109
9156
 
9110
9157
  /**
@@ -9184,7 +9231,7 @@ class ChatApi {
9184
9231
  /**
9185
9232
  * Chat service.
9186
9233
  * @module purecloud-platform-client-v2/api/ChatApi
9187
- * @version 130.0.0
9234
+ * @version 132.0.0
9188
9235
  */
9189
9236
 
9190
9237
  /**
@@ -9275,7 +9322,7 @@ class CoachingApi {
9275
9322
  /**
9276
9323
  * Coaching service.
9277
9324
  * @module purecloud-platform-client-v2/api/CoachingApi
9278
- * @version 130.0.0
9325
+ * @version 132.0.0
9279
9326
  */
9280
9327
 
9281
9328
  /**
@@ -9852,7 +9899,7 @@ class ContentManagementApi {
9852
9899
  /**
9853
9900
  * ContentManagement service.
9854
9901
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9855
- * @version 130.0.0
9902
+ * @version 132.0.0
9856
9903
  */
9857
9904
 
9858
9905
  /**
@@ -10992,7 +11039,7 @@ class ConversationsApi {
10992
11039
  /**
10993
11040
  * Conversations service.
10994
11041
  * @module purecloud-platform-client-v2/api/ConversationsApi
10995
- * @version 130.0.0
11042
+ * @version 132.0.0
10996
11043
  */
10997
11044
 
10998
11045
  /**
@@ -11282,6 +11329,31 @@ class ConversationsApi {
11282
11329
  );
11283
11330
  }
11284
11331
 
11332
+ /**
11333
+ * Delete a supported content profile
11334
+ *
11335
+ * @param {String} supportedContentId Supported Content ID
11336
+ */
11337
+ deleteConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
11338
+ // verify the required parameter 'supportedContentId' is set
11339
+ if (supportedContentId === undefined || supportedContentId === null) {
11340
+ throw 'Missing the required parameter "supportedContentId" when calling deleteConversationsMessagingSupportedcontentSupportedContentId';
11341
+ }
11342
+
11343
+ return this.apiClient.callApi(
11344
+ '/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
11345
+ 'DELETE',
11346
+ { 'supportedContentId': supportedContentId },
11347
+ { },
11348
+ { },
11349
+ { },
11350
+ null,
11351
+ ['PureCloud OAuth'],
11352
+ ['application/json'],
11353
+ ['application/json']
11354
+ );
11355
+ }
11356
+
11285
11357
  /**
11286
11358
  * Get a conversation by id
11287
11359
  *
@@ -12874,6 +12946,76 @@ class ConversationsApi {
12874
12946
  );
12875
12947
  }
12876
12948
 
12949
+ /**
12950
+ * Get a list of Supported Content profiles
12951
+ *
12952
+ * @param {Object} opts Optional parameters
12953
+ * @param {Number} opts.pageSize Page size (default to 25)
12954
+ * @param {Number} opts.pageNumber Page number (default to 1)
12955
+ */
12956
+ getConversationsMessagingSupportedcontent(opts) {
12957
+ opts = opts || {};
12958
+
12959
+
12960
+ return this.apiClient.callApi(
12961
+ '/api/v2/conversations/messaging/supportedcontent',
12962
+ 'GET',
12963
+ { },
12964
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
12965
+ { },
12966
+ { },
12967
+ null,
12968
+ ['PureCloud OAuth'],
12969
+ ['application/json'],
12970
+ ['application/json']
12971
+ );
12972
+ }
12973
+
12974
+ /**
12975
+ * Get the organization&#39;s default supported content profile that will be used as the default when creating an integration.
12976
+ * When an integration is created a supported content ID may be assigned to it. If the supported content ID is not supplied, the default supported content profile will be assigned to it.
12977
+ */
12978
+ getConversationsMessagingSupportedcontentDefault() {
12979
+
12980
+ return this.apiClient.callApi(
12981
+ '/api/v2/conversations/messaging/supportedcontent/default',
12982
+ 'GET',
12983
+ { },
12984
+ { },
12985
+ { },
12986
+ { },
12987
+ null,
12988
+ ['PureCloud OAuth'],
12989
+ ['application/json'],
12990
+ ['application/json']
12991
+ );
12992
+ }
12993
+
12994
+ /**
12995
+ * Get a supported content profile
12996
+ *
12997
+ * @param {String} supportedContentId Supported Content ID
12998
+ */
12999
+ getConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
13000
+ // verify the required parameter 'supportedContentId' is set
13001
+ if (supportedContentId === undefined || supportedContentId === null) {
13002
+ throw 'Missing the required parameter "supportedContentId" when calling getConversationsMessagingSupportedcontentSupportedContentId';
13003
+ }
13004
+
13005
+ return this.apiClient.callApi(
13006
+ '/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
13007
+ 'GET',
13008
+ { 'supportedContentId': supportedContentId },
13009
+ { },
13010
+ { },
13011
+ { },
13012
+ null,
13013
+ ['PureCloud OAuth'],
13014
+ ['application/json'],
13015
+ ['application/json']
13016
+ );
13017
+ }
13018
+
12877
13019
  /**
12878
13020
  * Get conversation threading window timeline for each messaging type
12879
13021
  * Conversation messaging threading timeline is a setting defined for each messenger type in your organization. This setting will dictate whether a new message is added to the most recent existing conversation, or creates a new Conversation. If the existing Conversation is still in a connected state the threading timeline setting will never play a role. After the conversation is disconnected, if an inbound message is received or an outbound message is sent after the setting for threading timeline expires, a new conversation is created.
@@ -13955,6 +14097,36 @@ class ConversationsApi {
13955
14097
  );
13956
14098
  }
13957
14099
 
14100
+ /**
14101
+ * Update a supported content profile
14102
+ *
14103
+ * @param {String} supportedContentId Supported Content ID
14104
+ * @param {Object} body SupportedContent
14105
+ */
14106
+ patchConversationsMessagingSupportedcontentSupportedContentId(supportedContentId, body) {
14107
+ // verify the required parameter 'supportedContentId' is set
14108
+ if (supportedContentId === undefined || supportedContentId === null) {
14109
+ throw 'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';
14110
+ }
14111
+ // verify the required parameter 'body' is set
14112
+ if (body === undefined || body === null) {
14113
+ throw 'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';
14114
+ }
14115
+
14116
+ return this.apiClient.callApi(
14117
+ '/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
14118
+ 'PATCH',
14119
+ { 'supportedContentId': supportedContentId },
14120
+ { },
14121
+ { },
14122
+ { },
14123
+ body,
14124
+ ['PureCloud OAuth'],
14125
+ ['application/json'],
14126
+ ['application/json']
14127
+ );
14128
+ }
14129
+
13958
14130
  /**
13959
14131
  * Index conversation properties
13960
14132
  *
@@ -15017,7 +15189,7 @@ class ConversationsApi {
15017
15189
 
15018
15190
  /**
15019
15191
  * Send an agentless outbound message
15020
- * Send an agentlesss (api participant) outbound message using a client credential grant. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will generate a new Conversation, if there is an existing active Conversation between the fromAddress and toAddress already, then this POST will fail.
15192
+ * Send an agentless (api participant) outbound message using a client credential grant. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will generate a new Conversation, if there is an existing active Conversation between the fromAddress and toAddress already, then this POST will fail.
15021
15193
  * @param {Object} body Create agentless outbound messaging request
15022
15194
  */
15023
15195
  postConversationsMessagesAgentless(body) {
@@ -15190,6 +15362,31 @@ class ConversationsApi {
15190
15362
  );
15191
15363
  }
15192
15364
 
15365
+ /**
15366
+ * Create a Supported Content profile
15367
+ *
15368
+ * @param {Object} body SupportedContent
15369
+ */
15370
+ postConversationsMessagingSupportedcontent(body) {
15371
+ // verify the required parameter 'body' is set
15372
+ if (body === undefined || body === null) {
15373
+ throw 'Missing the required parameter "body" when calling postConversationsMessagingSupportedcontent';
15374
+ }
15375
+
15376
+ return this.apiClient.callApi(
15377
+ '/api/v2/conversations/messaging/supportedcontent',
15378
+ 'POST',
15379
+ { },
15380
+ { },
15381
+ { },
15382
+ { },
15383
+ body,
15384
+ ['PureCloud OAuth'],
15385
+ ['application/json'],
15386
+ ['application/json']
15387
+ );
15388
+ }
15389
+
15193
15390
  /**
15194
15391
  * Set flagged reason on conversation participant to indicate bad conversation quality.
15195
15392
  *
@@ -15350,6 +15547,31 @@ class ConversationsApi {
15350
15547
  );
15351
15548
  }
15352
15549
 
15550
+ /**
15551
+ * Set the organization&#39;s default supported content profile that may be assigned to an integration when it is created.
15552
+ * When an integration is created a supported content ID may be assigned to it. If the supported content ID is not supplied, the default supported content profile will be assigned to it.
15553
+ * @param {Object} body SupportedContent
15554
+ */
15555
+ putConversationsMessagingSupportedcontentDefault(body) {
15556
+ // verify the required parameter 'body' is set
15557
+ if (body === undefined || body === null) {
15558
+ throw 'Missing the required parameter "body" when calling putConversationsMessagingSupportedcontentDefault';
15559
+ }
15560
+
15561
+ return this.apiClient.callApi(
15562
+ '/api/v2/conversations/messaging/supportedcontent/default',
15563
+ 'PUT',
15564
+ { },
15565
+ { },
15566
+ { },
15567
+ { },
15568
+ body,
15569
+ ['PureCloud OAuth'],
15570
+ ['application/json'],
15571
+ ['application/json']
15572
+ );
15573
+ }
15574
+
15353
15575
  /**
15354
15576
  * Update conversation threading window timeline for each messaging type
15355
15577
  * PUT Conversation messaging threading timeline is intended to set the conversation threading settings for ALL messengerTypes. If you omit a messengerType in the request body then the setting for that messengerType will use the platform default value. The PUT replaces the existing setting(s) that were previously set for each messengerType.
@@ -15381,7 +15603,7 @@ class DataExtensionsApi {
15381
15603
  /**
15382
15604
  * DataExtensions service.
15383
15605
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
15384
- * @version 130.0.0
15606
+ * @version 132.0.0
15385
15607
  */
15386
15608
 
15387
15609
  /**
@@ -15467,7 +15689,7 @@ class ExternalContactsApi {
15467
15689
  /**
15468
15690
  * ExternalContacts service.
15469
15691
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
15470
- * @version 130.0.0
15692
+ * @version 132.0.0
15471
15693
  */
15472
15694
 
15473
15695
  /**
@@ -17210,7 +17432,7 @@ class FaxApi {
17210
17432
  /**
17211
17433
  * Fax service.
17212
17434
  * @module purecloud-platform-client-v2/api/FaxApi
17213
- * @version 130.0.0
17435
+ * @version 132.0.0
17214
17436
  */
17215
17437
 
17216
17438
  /**
@@ -17381,7 +17603,7 @@ class FlowsApi {
17381
17603
  /**
17382
17604
  * Flows service.
17383
17605
  * @module purecloud-platform-client-v2/api/FlowsApi
17384
- * @version 130.0.0
17606
+ * @version 132.0.0
17385
17607
  */
17386
17608
 
17387
17609
  /**
@@ -17452,7 +17674,7 @@ class GamificationApi {
17452
17674
  /**
17453
17675
  * Gamification service.
17454
17676
  * @module purecloud-platform-client-v2/api/GamificationApi
17455
- * @version 130.0.0
17677
+ * @version 132.0.0
17456
17678
  */
17457
17679
 
17458
17680
  /**
@@ -18728,8 +18950,12 @@ class GamificationApi {
18728
18950
  * Create a new custom performance profile
18729
18951
  *
18730
18952
  * @param {Object} body performanceProfile
18953
+ * @param {Object} opts Optional parameters
18954
+ * @param {Boolean} opts.copyMetrics Flag to copy metrics. If set to false, there will be no metrics associated with the new profile. If set to true or is absent (the default behavior), all metrics from the default profile will be copied over into the new profile. (default to true)
18731
18955
  */
18732
- postGamificationProfiles(body) {
18956
+ postGamificationProfiles(body, opts) {
18957
+ opts = opts || {};
18958
+
18733
18959
  // verify the required parameter 'body' is set
18734
18960
  if (body === undefined || body === null) {
18735
18961
  throw 'Missing the required parameter "body" when calling postGamificationProfiles';
@@ -18739,7 +18965,7 @@ class GamificationApi {
18739
18965
  '/api/v2/gamification/profiles',
18740
18966
  'POST',
18741
18967
  { },
18742
- { },
18968
+ { 'copyMetrics': opts['copyMetrics'] },
18743
18969
  { },
18744
18970
  { },
18745
18971
  body,
@@ -18878,7 +19104,7 @@ class GeneralDataProtectionRegulationApi {
18878
19104
  /**
18879
19105
  * GeneralDataProtectionRegulation service.
18880
19106
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
18881
- * @version 130.0.0
19107
+ * @version 132.0.0
18882
19108
  */
18883
19109
 
18884
19110
  /**
@@ -19008,7 +19234,7 @@ class GeolocationApi {
19008
19234
  /**
19009
19235
  * Geolocation service.
19010
19236
  * @module purecloud-platform-client-v2/api/GeolocationApi
19011
- * @version 130.0.0
19237
+ * @version 132.0.0
19012
19238
  */
19013
19239
 
19014
19240
  /**
@@ -19139,7 +19365,7 @@ class GreetingsApi {
19139
19365
  /**
19140
19366
  * Greetings service.
19141
19367
  * @module purecloud-platform-client-v2/api/GreetingsApi
19142
- * @version 130.0.0
19368
+ * @version 132.0.0
19143
19369
  */
19144
19370
 
19145
19371
  /**
@@ -19594,7 +19820,7 @@ class GroupsApi {
19594
19820
  /**
19595
19821
  * Groups service.
19596
19822
  * @module purecloud-platform-client-v2/api/GroupsApi
19597
- * @version 130.0.0
19823
+ * @version 132.0.0
19598
19824
  */
19599
19825
 
19600
19826
  /**
@@ -19999,7 +20225,7 @@ class IdentityProviderApi {
19999
20225
  /**
20000
20226
  * IdentityProvider service.
20001
20227
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
20002
- * @version 130.0.0
20228
+ * @version 132.0.0
20003
20229
  */
20004
20230
 
20005
20231
  /**
@@ -20755,7 +20981,7 @@ class IntegrationsApi {
20755
20981
  /**
20756
20982
  * Integrations service.
20757
20983
  * @module purecloud-platform-client-v2/api/IntegrationsApi
20758
- * @version 130.0.0
20984
+ * @version 132.0.0
20759
20985
  */
20760
20986
 
20761
20987
  /**
@@ -22430,7 +22656,7 @@ class JourneyApi {
22430
22656
  /**
22431
22657
  * Journey service.
22432
22658
  * @module purecloud-platform-client-v2/api/JourneyApi
22433
- * @version 130.0.0
22659
+ * @version 132.0.0
22434
22660
  */
22435
22661
 
22436
22662
  /**
@@ -23141,7 +23367,7 @@ class KnowledgeApi {
23141
23367
  /**
23142
23368
  * Knowledge service.
23143
23369
  * @module purecloud-platform-client-v2/api/KnowledgeApi
23144
- * @version 130.0.0
23370
+ * @version 132.0.0
23145
23371
  */
23146
23372
 
23147
23373
  /**
@@ -24041,7 +24267,7 @@ class LanguageUnderstandingApi {
24041
24267
  /**
24042
24268
  * LanguageUnderstanding service.
24043
24269
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
24044
- * @version 130.0.0
24270
+ * @version 132.0.0
24045
24271
  */
24046
24272
 
24047
24273
  /**
@@ -24499,7 +24725,7 @@ class LanguageUnderstandingApi {
24499
24725
  * @param {String} minerId Miner ID
24500
24726
  * @param {String} intentId The ID of the intent to be retrieved.
24501
24727
  * @param {Object} opts Optional parameters
24502
- * @param {String} opts.expand Option to fetch utterances
24728
+ * @param {Object} opts.expand Option to fetch utterances
24503
24729
  */
24504
24730
  getLanguageunderstandingMinerIntent(minerId, intentId, opts) {
24505
24731
  opts = opts || {};
@@ -24532,7 +24758,7 @@ class LanguageUnderstandingApi {
24532
24758
  *
24533
24759
  * @param {String} minerId Miner ID
24534
24760
  * @param {Object} opts Optional parameters
24535
- * @param {String} opts.expand Option to fetch utterances.
24761
+ * @param {Object} opts.expand Option to fetch utterances.
24536
24762
  */
24537
24763
  getLanguageunderstandingMinerIntents(minerId, opts) {
24538
24764
  opts = opts || {};
@@ -24945,7 +25171,7 @@ class LanguagesApi {
24945
25171
  /**
24946
25172
  * Languages service.
24947
25173
  * @module purecloud-platform-client-v2/api/LanguagesApi
24948
- * @version 130.0.0
25174
+ * @version 132.0.0
24949
25175
  */
24950
25176
 
24951
25177
  /**
@@ -25213,7 +25439,7 @@ class LearningApi {
25213
25439
  /**
25214
25440
  * Learning service.
25215
25441
  * @module purecloud-platform-client-v2/api/LearningApi
25216
- * @version 130.0.0
25442
+ * @version 132.0.0
25217
25443
  */
25218
25444
 
25219
25445
  /**
@@ -25804,7 +26030,7 @@ class LicenseApi {
25804
26030
  /**
25805
26031
  * License service.
25806
26032
  * @module purecloud-platform-client-v2/api/LicenseApi
25807
- * @version 130.0.0
26033
+ * @version 132.0.0
25808
26034
  */
25809
26035
 
25810
26036
  /**
@@ -26042,7 +26268,7 @@ class LocationsApi {
26042
26268
  /**
26043
26269
  * Locations service.
26044
26270
  * @module purecloud-platform-client-v2/api/LocationsApi
26045
- * @version 130.0.0
26271
+ * @version 132.0.0
26046
26272
  */
26047
26273
 
26048
26274
  /**
@@ -26274,11 +26500,162 @@ class LocationsApi {
26274
26500
 
26275
26501
  }
26276
26502
 
26503
+ class MessagingApi {
26504
+ /**
26505
+ * Messaging service.
26506
+ * @module purecloud-platform-client-v2/api/MessagingApi
26507
+ * @version 132.0.0
26508
+ */
26509
+
26510
+ /**
26511
+ * Constructs a new MessagingApi.
26512
+ * @alias module:purecloud-platform-client-v2/api/MessagingApi
26513
+ * @class
26514
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
26515
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
26516
+ */
26517
+ constructor(apiClient) {
26518
+ this.apiClient = apiClient || ApiClient.instance;
26519
+ }
26520
+
26521
+
26522
+ /**
26523
+ * Delete a supported content profile
26524
+ *
26525
+ * @param {String} supportedContentId Supported Content ID
26526
+ */
26527
+ deleteMessagingSupportedcontentSupportedContentId(supportedContentId) {
26528
+ // verify the required parameter 'supportedContentId' is set
26529
+ if (supportedContentId === undefined || supportedContentId === null) {
26530
+ throw 'Missing the required parameter "supportedContentId" when calling deleteMessagingSupportedcontentSupportedContentId';
26531
+ }
26532
+
26533
+ return this.apiClient.callApi(
26534
+ '/api/v2/messaging/supportedcontent/{supportedContentId}',
26535
+ 'DELETE',
26536
+ { 'supportedContentId': supportedContentId },
26537
+ { },
26538
+ { },
26539
+ { },
26540
+ null,
26541
+ ['PureCloud OAuth'],
26542
+ ['application/json'],
26543
+ ['application/json']
26544
+ );
26545
+ }
26546
+
26547
+ /**
26548
+ * Get a list of Supported Content profiles
26549
+ *
26550
+ * @param {Object} opts Optional parameters
26551
+ * @param {Number} opts.pageSize Page size (default to 25)
26552
+ * @param {Number} opts.pageNumber Page number (default to 1)
26553
+ */
26554
+ getMessagingSupportedcontent(opts) {
26555
+ opts = opts || {};
26556
+
26557
+
26558
+ return this.apiClient.callApi(
26559
+ '/api/v2/messaging/supportedcontent',
26560
+ 'GET',
26561
+ { },
26562
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
26563
+ { },
26564
+ { },
26565
+ null,
26566
+ ['PureCloud OAuth'],
26567
+ ['application/json'],
26568
+ ['application/json']
26569
+ );
26570
+ }
26571
+
26572
+ /**
26573
+ * Get a supported content profile
26574
+ *
26575
+ * @param {String} supportedContentId Supported Content ID
26576
+ */
26577
+ getMessagingSupportedcontentSupportedContentId(supportedContentId) {
26578
+ // verify the required parameter 'supportedContentId' is set
26579
+ if (supportedContentId === undefined || supportedContentId === null) {
26580
+ throw 'Missing the required parameter "supportedContentId" when calling getMessagingSupportedcontentSupportedContentId';
26581
+ }
26582
+
26583
+ return this.apiClient.callApi(
26584
+ '/api/v2/messaging/supportedcontent/{supportedContentId}',
26585
+ 'GET',
26586
+ { 'supportedContentId': supportedContentId },
26587
+ { },
26588
+ { },
26589
+ { },
26590
+ null,
26591
+ ['PureCloud OAuth'],
26592
+ ['application/json'],
26593
+ ['application/json']
26594
+ );
26595
+ }
26596
+
26597
+ /**
26598
+ * Update a supported content profile
26599
+ *
26600
+ * @param {String} supportedContentId Supported Content ID
26601
+ * @param {Object} body SupportedContent
26602
+ */
26603
+ patchMessagingSupportedcontentSupportedContentId(supportedContentId, body) {
26604
+ // verify the required parameter 'supportedContentId' is set
26605
+ if (supportedContentId === undefined || supportedContentId === null) {
26606
+ throw 'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';
26607
+ }
26608
+ // verify the required parameter 'body' is set
26609
+ if (body === undefined || body === null) {
26610
+ throw 'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';
26611
+ }
26612
+
26613
+ return this.apiClient.callApi(
26614
+ '/api/v2/messaging/supportedcontent/{supportedContentId}',
26615
+ 'PATCH',
26616
+ { 'supportedContentId': supportedContentId },
26617
+ { },
26618
+ { },
26619
+ { },
26620
+ body,
26621
+ ['PureCloud OAuth'],
26622
+ ['application/json'],
26623
+ ['application/json']
26624
+ );
26625
+ }
26626
+
26627
+ /**
26628
+ * Create a Supported Content profile
26629
+ *
26630
+ * @param {Object} body SupportedContent
26631
+ */
26632
+ postMessagingSupportedcontent(body) {
26633
+ // verify the required parameter 'body' is set
26634
+ if (body === undefined || body === null) {
26635
+ throw 'Missing the required parameter "body" when calling postMessagingSupportedcontent';
26636
+ }
26637
+
26638
+ return this.apiClient.callApi(
26639
+ '/api/v2/messaging/supportedcontent',
26640
+ 'POST',
26641
+ { },
26642
+ { },
26643
+ { },
26644
+ { },
26645
+ body,
26646
+ ['PureCloud OAuth'],
26647
+ ['application/json'],
26648
+ ['application/json']
26649
+ );
26650
+ }
26651
+
26652
+ }
26653
+
26277
26654
  class MobileDevicesApi {
26278
26655
  /**
26279
26656
  * MobileDevices service.
26280
26657
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
26281
- * @version 130.0.0
26658
+ * @version 132.0.0
26282
26659
  */
26283
26660
 
26284
26661
  /**
@@ -26429,7 +26806,7 @@ class NotificationsApi {
26429
26806
  /**
26430
26807
  * Notifications service.
26431
26808
  * @module purecloud-platform-client-v2/api/NotificationsApi
26432
- * @version 130.0.0
26809
+ * @version 132.0.0
26433
26810
  */
26434
26811
 
26435
26812
  /**
@@ -26654,7 +27031,7 @@ class OAuthApi {
26654
27031
  /**
26655
27032
  * OAuth service.
26656
27033
  * @module purecloud-platform-client-v2/api/OAuthApi
26657
- * @version 130.0.0
27034
+ * @version 132.0.0
26658
27035
  */
26659
27036
 
26660
27037
  /**
@@ -27012,7 +27389,7 @@ class ObjectsApi {
27012
27389
  /**
27013
27390
  * Objects service.
27014
27391
  * @module purecloud-platform-client-v2/api/ObjectsApi
27015
- * @version 130.0.0
27392
+ * @version 132.0.0
27016
27393
  */
27017
27394
 
27018
27395
  /**
@@ -27283,7 +27660,7 @@ class OrganizationApi {
27283
27660
  /**
27284
27661
  * Organization service.
27285
27662
  * @module purecloud-platform-client-v2/api/OrganizationApi
27286
- * @version 130.0.0
27663
+ * @version 132.0.0
27287
27664
  */
27288
27665
 
27289
27666
  /**
@@ -27686,7 +28063,7 @@ class OrganizationAuthorizationApi {
27686
28063
  /**
27687
28064
  * OrganizationAuthorization service.
27688
28065
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
27689
- * @version 130.0.0
28066
+ * @version 132.0.0
27690
28067
  */
27691
28068
 
27692
28069
  /**
@@ -28611,7 +28988,7 @@ class OutboundApi {
28611
28988
  /**
28612
28989
  * Outbound service.
28613
28990
  * @module purecloud-platform-client-v2/api/OutboundApi
28614
- * @version 130.0.0
28991
+ * @version 132.0.0
28615
28992
  */
28616
28993
 
28617
28994
  /**
@@ -30996,8 +31373,12 @@ class OutboundApi {
30996
31373
  * Only Internal DNC lists may be appended to
30997
31374
  * @param {String} dncListId DncList ID
30998
31375
  * @param {Array.<Object>} body DNC Phone Numbers
31376
+ * @param {Object} opts Optional parameters
31377
+ * @param {String} opts.expirationDateTime Expiration date for DNC phone numbers in yyyy-MM-ddTHH:mmZ format
30999
31378
  */
31000
- postOutboundDnclistPhonenumbers(dncListId, body) {
31379
+ postOutboundDnclistPhonenumbers(dncListId, body, opts) {
31380
+ opts = opts || {};
31381
+
31001
31382
  // verify the required parameter 'dncListId' is set
31002
31383
  if (dncListId === undefined || dncListId === null) {
31003
31384
  throw 'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';
@@ -31011,7 +31392,7 @@ class OutboundApi {
31011
31392
  '/api/v2/outbound/dnclists/{dncListId}/phonenumbers',
31012
31393
  'POST',
31013
31394
  { 'dncListId': dncListId },
31014
- { },
31395
+ { 'expirationDateTime': opts['expirationDateTime'] },
31015
31396
  { },
31016
31397
  { },
31017
31398
  body,
@@ -31637,7 +32018,7 @@ class PresenceApi {
31637
32018
  /**
31638
32019
  * Presence service.
31639
32020
  * @module purecloud-platform-client-v2/api/PresenceApi
31640
- * @version 130.0.0
32021
+ * @version 132.0.0
31641
32022
  */
31642
32023
 
31643
32024
  /**
@@ -32009,7 +32390,7 @@ class QualityApi {
32009
32390
  /**
32010
32391
  * Quality service.
32011
32392
  * @module purecloud-platform-client-v2/api/QualityApi
32012
- * @version 130.0.0
32393
+ * @version 132.0.0
32013
32394
  */
32014
32395
 
32015
32396
  /**
@@ -32165,7 +32546,7 @@ class QualityApi {
32165
32546
 
32166
32547
  /**
32167
32548
  * Gets a list of Agent Activities
32168
- * Includes the number of evaluations and average evaluation score. These statistics include released evaluations only when evaluatorUserId is provided. In the absence of evaluatorUserId in the request, the api excludes evaluations which are set to never release for the calculation of evaluation statistics.
32549
+ * Each item on the list shows one agent&#39;s evaluation activity comprised of the number of evaluations and the highest, average, and lowest standard and critical scores, as well as a sub list showing the number and average score of evaluations for each evaluator for that agent. evaluatorUserId, startTime, and endTime are all filtering criteria. If specified, the only evaluations used to compile the agent activity response will be ones that match the filtering criteria. agentUserId, name, group, and agentTeamId are all agent selection criteria. criteria. If one or more agent selection criteria are specified, then the returned activity will include users that match the criteria even if those users did not have any agent activity or evaluations that do not match any filtering criteria. If no agent selection criteria are specified but an evaluatorUserId is, then the returned activity will be only for those agents that had evaluations where the evaluator is the evaluatorUserId. If no agent selection criteria are specified and no evaluatorUserId is specified, then the returned activity will be for all users
32169
32550
  * @param {Object} opts Optional parameters
32170
32551
  * @param {Number} opts.pageSize The total page size requested (default to 25)
32171
32552
  * @param {Number} opts.pageNumber The page number requested (default to 1)
@@ -32628,6 +33009,31 @@ class QualityApi {
32628
33009
  );
32629
33010
  }
32630
33011
 
33012
+ /**
33013
+ * Retrieve a list of the latest published evaluation form versions by context ids
33014
+ *
33015
+ * @param {Array.<String>} contextId A comma-delimited list of valid evaluation form context ids
33016
+ */
33017
+ getQualityFormsEvaluationsBulkContexts(contextId) {
33018
+ // verify the required parameter 'contextId' is set
33019
+ if (contextId === undefined || contextId === null) {
33020
+ throw 'Missing the required parameter "contextId" when calling getQualityFormsEvaluationsBulkContexts';
33021
+ }
33022
+
33023
+ return this.apiClient.callApi(
33024
+ '/api/v2/quality/forms/evaluations/bulk/contexts',
33025
+ 'GET',
33026
+ { },
33027
+ { 'contextId': this.apiClient.buildCollectionParam(contextId, 'multi') },
33028
+ { },
33029
+ { },
33030
+ null,
33031
+ ['PureCloud OAuth'],
33032
+ ['application/json'],
33033
+ ['application/json']
33034
+ );
33035
+ }
33036
+
32631
33037
  /**
32632
33038
  * Get a survey form
32633
33039
  *
@@ -33142,6 +33548,31 @@ class QualityApi {
33142
33548
  );
33143
33549
  }
33144
33550
 
33551
+ /**
33552
+ * Query for evaluation aggregates for the current user
33553
+ *
33554
+ * @param {Object} body query
33555
+ */
33556
+ postQualityEvaluationsAggregatesQueryMe(body) {
33557
+ // verify the required parameter 'body' is set
33558
+ if (body === undefined || body === null) {
33559
+ throw 'Missing the required parameter "body" when calling postQualityEvaluationsAggregatesQueryMe';
33560
+ }
33561
+
33562
+ return this.apiClient.callApi(
33563
+ '/api/v2/quality/evaluations/aggregates/query/me',
33564
+ 'POST',
33565
+ { },
33566
+ { },
33567
+ { },
33568
+ { },
33569
+ body,
33570
+ ['PureCloud OAuth'],
33571
+ ['application/json'],
33572
+ ['application/json']
33573
+ );
33574
+ }
33575
+
33145
33576
  /**
33146
33577
  * Score evaluation
33147
33578
  *
@@ -33537,7 +33968,7 @@ class RecordingApi {
33537
33968
  /**
33538
33969
  * Recording service.
33539
33970
  * @module purecloud-platform-client-v2/api/RecordingApi
33540
- * @version 130.0.0
33971
+ * @version 132.0.0
33541
33972
  */
33542
33973
 
33543
33974
  /**
@@ -33750,6 +34181,7 @@ class RecordingApi {
33750
34181
  * @param {Boolean} opts.download requesting a download format of the recording. Valid values:true,false (default to false)
33751
34182
  * @param {String} opts.fileName the name of the downloaded fileName
33752
34183
  * @param {String} opts.locale The locale for the requested file when downloading, as an ISO 639-1 code
34184
+ * @param {Array.<String>} opts.mediaFormats All acceptable media formats. Overrides formatId. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3
33753
34185
  */
33754
34186
  getConversationRecording(conversationId, recordingId, opts) {
33755
34187
  opts = opts || {};
@@ -33767,7 +34199,7 @@ class RecordingApi {
33767
34199
  '/api/v2/conversations/{conversationId}/recordings/{recordingId}',
33768
34200
  'GET',
33769
34201
  { 'conversationId': conversationId,'recordingId': recordingId },
33770
- { 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'] },
34202
+ { 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'],'mediaFormats': this.apiClient.buildCollectionParam(opts['mediaFormats'], 'multi') },
33771
34203
  { },
33772
34204
  { },
33773
34205
  null,
@@ -33903,7 +34335,8 @@ class RecordingApi {
33903
34335
  * @param {String} conversationId Conversation ID
33904
34336
  * @param {Object} opts Optional parameters
33905
34337
  * @param {Number} opts.maxWaitMs The maximum number of milliseconds to wait for the recording to be ready. Must be a positive value. (default to 5000)
33906
- * @param {Object} opts.formatId The desired media format . Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3,NONE. (default to WEBM)
34338
+ * @param {Object} opts.formatId The desired media format. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3,NONE. (default to WEBM)
34339
+ * @param {Array.<String>} opts.mediaFormats All acceptable media formats. Overrides formatId. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3.
33907
34340
  */
33908
34341
  getConversationRecordings(conversationId, opts) {
33909
34342
  opts = opts || {};
@@ -33917,7 +34350,7 @@ class RecordingApi {
33917
34350
  '/api/v2/conversations/{conversationId}/recordings',
33918
34351
  'GET',
33919
34352
  { 'conversationId': conversationId },
33920
- { 'maxWaitMs': opts['maxWaitMs'],'formatId': opts['formatId'] },
34353
+ { 'maxWaitMs': opts['maxWaitMs'],'formatId': opts['formatId'],'mediaFormats': this.apiClient.buildCollectionParam(opts['mediaFormats'], 'multi') },
33921
34354
  { },
33922
34355
  { },
33923
34356
  null,
@@ -33964,6 +34397,7 @@ class RecordingApi {
33964
34397
  * @param {Boolean} opts.download requesting a download format of the recording (default to false)
33965
34398
  * @param {String} opts.fileName the name of the downloaded fileName
33966
34399
  * @param {String} opts.locale The locale for the requested file when downloading, as an ISO 639-1 code
34400
+ * @param {Array.<String>} opts.mediaFormats All acceptable media formats. Overrides formatId. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3
33967
34401
  */
33968
34402
  getOrphanrecordingMedia(orphanId, opts) {
33969
34403
  opts = opts || {};
@@ -33977,7 +34411,7 @@ class RecordingApi {
33977
34411
  '/api/v2/orphanrecordings/{orphanId}/media',
33978
34412
  'GET',
33979
34413
  { 'orphanId': orphanId },
33980
- { 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'] },
34414
+ { 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'],'mediaFormats': this.apiClient.buildCollectionParam(opts['mediaFormats'], 'multi') },
33981
34415
  { },
33982
34416
  { },
33983
34417
  null,
@@ -35060,7 +35494,7 @@ class ResponseManagementApi {
35060
35494
  /**
35061
35495
  * ResponseManagement service.
35062
35496
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
35063
- * @version 130.0.0
35497
+ * @version 132.0.0
35064
35498
  */
35065
35499
 
35066
35500
  /**
@@ -35385,7 +35819,7 @@ class RoutingApi {
35385
35819
  /**
35386
35820
  * Routing service.
35387
35821
  * @module purecloud-platform-client-v2/api/RoutingApi
35388
- * @version 130.0.0
35822
+ * @version 132.0.0
35389
35823
  */
35390
35824
 
35391
35825
  /**
@@ -38308,7 +38742,7 @@ class SCIMApi {
38308
38742
  /**
38309
38743
  * SCIM service.
38310
38744
  * @module purecloud-platform-client-v2/api/SCIMApi
38311
- * @version 130.0.0
38745
+ * @version 132.0.0
38312
38746
  */
38313
38747
 
38314
38748
  /**
@@ -39185,7 +39619,7 @@ class ScriptsApi {
39185
39619
  /**
39186
39620
  * Scripts service.
39187
39621
  * @module purecloud-platform-client-v2/api/ScriptsApi
39188
- * @version 130.0.0
39622
+ * @version 132.0.0
39189
39623
  */
39190
39624
 
39191
39625
  /**
@@ -39538,7 +39972,7 @@ class SearchApi {
39538
39972
  /**
39539
39973
  * Search service.
39540
39974
  * @module purecloud-platform-client-v2/api/SearchApi
39541
- * @version 130.0.0
39975
+ * @version 132.0.0
39542
39976
  */
39543
39977
 
39544
39978
  /**
@@ -40073,7 +40507,7 @@ class SpeechTextAnalyticsApi {
40073
40507
  /**
40074
40508
  * SpeechTextAnalytics service.
40075
40509
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
40076
- * @version 130.0.0
40510
+ * @version 132.0.0
40077
40511
  */
40078
40512
 
40079
40513
  /**
@@ -40242,26 +40676,6 @@ class SpeechTextAnalyticsApi {
40242
40676
  );
40243
40677
  }
40244
40678
 
40245
- /**
40246
- * Get list of supported Speech &amp; Text Analytics dialects
40247
- * This api has been deprecated. Use api/v2/topics/dialects instead
40248
- */
40249
- getSpeechandtextanalyticsDialects() {
40250
-
40251
- return this.apiClient.callApi(
40252
- '/api/v2/speechandtextanalytics/dialects',
40253
- 'GET',
40254
- { },
40255
- { },
40256
- { },
40257
- { },
40258
- null,
40259
- ['PureCloud OAuth'],
40260
- ['application/json'],
40261
- ['application/json']
40262
- );
40263
- }
40264
-
40265
40679
  /**
40266
40680
  * Get a Speech &amp; Text Analytics program by id
40267
40681
  *
@@ -40946,7 +41360,7 @@ class StationsApi {
40946
41360
  /**
40947
41361
  * Stations service.
40948
41362
  * @module purecloud-platform-client-v2/api/StationsApi
40949
- * @version 130.0.0
41363
+ * @version 132.0.0
40950
41364
  */
40951
41365
 
40952
41366
  /**
@@ -41093,7 +41507,7 @@ class SuggestApi {
41093
41507
  /**
41094
41508
  * Suggest service.
41095
41509
  * @module purecloud-platform-client-v2/api/SuggestApi
41096
- * @version 130.0.0
41510
+ * @version 132.0.0
41097
41511
  */
41098
41512
 
41099
41513
  /**
@@ -41232,7 +41646,7 @@ class TelephonyApi {
41232
41646
  /**
41233
41647
  * Telephony service.
41234
41648
  * @module purecloud-platform-client-v2/api/TelephonyApi
41235
- * @version 130.0.0
41649
+ * @version 132.0.0
41236
41650
  */
41237
41651
 
41238
41652
  /**
@@ -41340,7 +41754,7 @@ class TelephonyProvidersEdgeApi {
41340
41754
  /**
41341
41755
  * TelephonyProvidersEdge service.
41342
41756
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
41343
- * @version 130.0.0
41757
+ * @version 132.0.0
41344
41758
  */
41345
41759
 
41346
41760
  /**
@@ -42754,7 +43168,7 @@ class TelephonyProvidersEdgeApi {
42754
43168
  * @param {Object} opts Optional parameters
42755
43169
  * @param {Number} opts.pageSize Page size (default to 25)
42756
43170
  * @param {Number} opts.pageNumber Page number (default to 1)
42757
- * @param {String} opts.sortBy Sort by (default to startNumber)
43171
+ * @param {String} opts.sortBy Sort by
42758
43172
  * @param {String} opts._number Number
42759
43173
  */
42760
43174
  getTelephonyProvidersEdgesExtensionpools(opts) {
@@ -44973,7 +45387,7 @@ class TextbotsApi {
44973
45387
  /**
44974
45388
  * Textbots service.
44975
45389
  * @module purecloud-platform-client-v2/api/TextbotsApi
44976
- * @version 130.0.0
45390
+ * @version 132.0.0
44977
45391
  */
44978
45392
 
44979
45393
  /**
@@ -45101,7 +45515,7 @@ class TokensApi {
45101
45515
  /**
45102
45516
  * Tokens service.
45103
45517
  * @module purecloud-platform-client-v2/api/TokensApi
45104
- * @version 130.0.0
45518
+ * @version 132.0.0
45105
45519
  */
45106
45520
 
45107
45521
  /**
@@ -45207,7 +45621,7 @@ class UploadsApi {
45207
45621
  /**
45208
45622
  * Uploads service.
45209
45623
  * @module purecloud-platform-client-v2/api/UploadsApi
45210
- * @version 130.0.0
45624
+ * @version 132.0.0
45211
45625
  */
45212
45626
 
45213
45627
  /**
@@ -45383,7 +45797,7 @@ class UsageApi {
45383
45797
  /**
45384
45798
  * Usage service.
45385
45799
  * @module purecloud-platform-client-v2/api/UsageApi
45386
- * @version 130.0.0
45800
+ * @version 132.0.0
45387
45801
  */
45388
45802
 
45389
45803
  /**
@@ -45454,7 +45868,7 @@ class UserRecordingsApi {
45454
45868
  /**
45455
45869
  * UserRecordings service.
45456
45870
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
45457
- * @version 130.0.0
45871
+ * @version 132.0.0
45458
45872
  */
45459
45873
 
45460
45874
  /**
@@ -45638,7 +46052,7 @@ class UsersApi {
45638
46052
  /**
45639
46053
  * Users service.
45640
46054
  * @module purecloud-platform-client-v2/api/UsersApi
45641
- * @version 130.0.0
46055
+ * @version 132.0.0
45642
46056
  */
45643
46057
 
45644
46058
  /**
@@ -47940,7 +48354,7 @@ class UtilitiesApi {
47940
48354
  /**
47941
48355
  * Utilities service.
47942
48356
  * @module purecloud-platform-client-v2/api/UtilitiesApi
47943
- * @version 130.0.0
48357
+ * @version 132.0.0
47944
48358
  */
47945
48359
 
47946
48360
  /**
@@ -48051,7 +48465,7 @@ class VoicemailApi {
48051
48465
  /**
48052
48466
  * Voicemail service.
48053
48467
  * @module purecloud-platform-client-v2/api/VoicemailApi
48054
- * @version 130.0.0
48468
+ * @version 132.0.0
48055
48469
  */
48056
48470
 
48057
48471
  /**
@@ -48718,7 +49132,7 @@ class WebChatApi {
48718
49132
  /**
48719
49133
  * WebChat service.
48720
49134
  * @module purecloud-platform-client-v2/api/WebChatApi
48721
- * @version 130.0.0
49135
+ * @version 132.0.0
48722
49136
  */
48723
49137
 
48724
49138
  /**
@@ -49262,7 +49676,7 @@ class WebDeploymentsApi {
49262
49676
  /**
49263
49677
  * WebDeployments service.
49264
49678
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
49265
- * @version 130.0.0
49679
+ * @version 132.0.0
49266
49680
  */
49267
49681
 
49268
49682
  /**
@@ -49617,7 +50031,7 @@ class WebMessagingApi {
49617
50031
  /**
49618
50032
  * WebMessaging service.
49619
50033
  * @module purecloud-platform-client-v2/api/WebMessagingApi
49620
- * @version 130.0.0
50034
+ * @version 132.0.0
49621
50035
  */
49622
50036
 
49623
50037
  /**
@@ -49663,7 +50077,7 @@ class WidgetsApi {
49663
50077
  /**
49664
50078
  * Widgets service.
49665
50079
  * @module purecloud-platform-client-v2/api/WidgetsApi
49666
- * @version 130.0.0
50080
+ * @version 132.0.0
49667
50081
  */
49668
50082
 
49669
50083
  /**
@@ -49809,7 +50223,7 @@ class WorkforceManagementApi {
49809
50223
  /**
49810
50224
  * WorkforceManagement service.
49811
50225
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
49812
- * @version 130.0.0
50226
+ * @version 132.0.0
49813
50227
  */
49814
50228
 
49815
50229
  /**
@@ -53840,7 +54254,7 @@ class WorkforceManagementApi {
53840
54254
  * </pre>
53841
54255
  * </p>
53842
54256
  * @module purecloud-platform-client-v2/index
53843
- * @version 130.0.0
54257
+ * @version 132.0.0
53844
54258
  */
53845
54259
  class platformClient {
53846
54260
  constructor() {
@@ -53994,6 +54408,11 @@ class platformClient {
53994
54408
  * @property {module:purecloud-platform-client-v2/api/LocationsApi}
53995
54409
  */
53996
54410
  this.LocationsApi = LocationsApi;
54411
+ /**
54412
+ * The MessagingApi service constructor.
54413
+ * @property {module:purecloud-platform-client-v2/api/MessagingApi}
54414
+ */
54415
+ this.MessagingApi = MessagingApi;
53997
54416
  /**
53998
54417
  * The MobileDevicesApi service constructor.
53999
54418
  * @property {module:purecloud-platform-client-v2/api/MobileDevicesApi}