purecloud-platform-client-v2 210.0.0 → 211.1.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 (95) hide show
  1. package/README.md +52 -3
  2. package/dist/node/purecloud-platform-client-v2.js +348 -136
  3. package/dist/web-amd/purecloud-platform-client-v2.js +348 -137
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +186 -166
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +6606 -543
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +45 -0
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/AbstractHttpClient.js +26 -0
  11. package/src/purecloud-platform-client-v2/ApiClient.js +136 -57
  12. package/src/purecloud-platform-client-v2/DefaultHttpClient.js +48 -0
  13. package/src/purecloud-platform-client-v2/HttpRequestOptions.js +65 -0
  14. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  93. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  94. package/src/purecloud-platform-client-v2/configuration.js +2 -0
  95. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -1,10 +1,12 @@
1
1
  'use strict';
2
2
 
3
+ var https = require('https');
3
4
  var axios = require('axios');
4
5
  var qs = require('qs');
5
6
 
6
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
8
 
9
+ var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
8
10
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
9
11
  var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
10
12
 
@@ -426,6 +428,8 @@ class Configuration {
426
428
  }
427
429
  }
428
430
 
431
+
432
+
429
433
  setEnvironment(env) {
430
434
  // Default value
431
435
  if (env) this.environment = env;
@@ -484,9 +488,141 @@ class Configuration {
484
488
  }
485
489
  }
486
490
 
491
+ class AbstractHttpClient {
492
+
493
+ constructor() {
494
+ this.timeout = 16000;
495
+ }
496
+
497
+ setTimeout(timeout) {
498
+ if (timeout === null || timeout === undefined || typeof timeout !== 'number') {
499
+ throw new Error("The 'timeout' property must be a number");
500
+ }
501
+ this.timeout = timeout;
502
+ }
503
+
504
+ setHttpsAgent(httpsAgent) {
505
+ if (httpsAgent && typeof httpsAgent !== 'object') {
506
+ throw new Error("The 'httpsAgent' property must be an object");
507
+ }
508
+ this.httpsAgent = httpsAgent;
509
+ }
510
+
511
+ request(httpRequestOptions) {
512
+ throw new Error("method must be implemented");
513
+ }
514
+ }
515
+
516
+ class HttpRequestOptions {
517
+
518
+ constructor(url, method, headers, params, data, timeout) {
519
+ this.setUrl(url);
520
+ this.setMethod(method);
521
+ if (headers) {
522
+ this.setHeaders(headers);
523
+ }
524
+ if (params) {
525
+ this.setParams(params);
526
+ }
527
+ if (data) {
528
+ this.setData(data);
529
+ }
530
+ if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
531
+ else this.timeout = 16000;
532
+ }
533
+
534
+ // Mandatory fields with validation
535
+ setUrl(url) {
536
+ if (!url) throw new Error("The 'url' property is required");
537
+ this.url = url;
538
+ }
539
+
540
+ setMethod(method) {
541
+ const validMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'];
542
+ if (!method || !validMethods.includes(method.toUpperCase())) {
543
+ throw new Error("The 'method' property is invalid or missing");
544
+ }
545
+ this.method = method.toUpperCase();
546
+ }
547
+
548
+ setData(data) {
549
+ if (data === undefined || data === null) {
550
+ throw new Error("The 'data' property is required");
551
+ }
552
+ this.data = data;
553
+ }
554
+
555
+ // Optional fields
556
+ setParams(params) {
557
+ if (params && typeof params !== 'object') {
558
+ throw new Error("The 'params' property must be an object");
559
+ }
560
+ this.params = params;
561
+ }
562
+
563
+ // Optional fields
564
+ setHeaders(headers) {
565
+ if (headers && typeof headers !== 'object') {
566
+ throw new Error("The 'headers' property must be an object");
567
+ }
568
+ this.headers = headers;
569
+ }
570
+
571
+ setTimeout(timeout) {
572
+ if (timeout === undefined || timeout === null || typeof timeout !== 'number') {
573
+ throw new Error("The 'timeout' property must be a number");
574
+ }
575
+ this.timeout = timeout;
576
+ }
577
+
578
+ }
579
+
580
+ // Default client is Axios
581
+ class DefaultHttpClient extends AbstractHttpClient{
582
+
583
+ constructor(timeout, httpsAgent) {
584
+ super();
585
+ if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
586
+ else this.timeout = 16000;
587
+ if (httpsAgent !== null && httpsAgent !== undefined) this.setHttpsAgent(httpsAgent);
588
+ else this.httpsAgent;
589
+ this._axiosInstance = axios__default["default"].create({});
590
+ }
591
+
592
+ request(httpRequestOptions) {
593
+ if(!(httpRequestOptions instanceof HttpRequestOptions)) {
594
+ throw new Error(`httpRequestOptions must be instance of HttpRequestOptions `);
595
+ }
596
+ const config = this.toAxiosConfig(httpRequestOptions);
597
+ return this._axiosInstance.request(config);
598
+ }
599
+
600
+ // Method to generate Axios-compatible config
601
+ toAxiosConfig(httpRequestOptions) {
602
+ if (!httpRequestOptions.url || !httpRequestOptions.method) {
603
+ throw new Error(
604
+ "Mandatory fields 'url' and 'method' must be set before making a request"
605
+ );
606
+ }
607
+
608
+ var config = {
609
+ url: httpRequestOptions.url,
610
+ method: httpRequestOptions.method
611
+ };
612
+
613
+ if (httpRequestOptions.params) config.params = httpRequestOptions.params;
614
+ if (httpRequestOptions.headers) config.headers = httpRequestOptions.headers;
615
+ if(httpRequestOptions.data) config.data = httpRequestOptions.data;
616
+ if (this.timeout != null && this.timeout != undefined) config.timeout = this.timeout;
617
+ if (this.httpsAgent) config.httpsAgent = this.httpsAgent;
618
+
619
+ return config;
620
+ }
621
+ }
622
+
487
623
  /**
488
624
  * @module purecloud-platform-client-v2/ApiClient
489
- * @version 210.0.0
625
+ * @version 211.1.0
490
626
  */
491
627
  class ApiClient {
492
628
  /**
@@ -591,6 +727,9 @@ class ApiClient {
591
727
  // Transparently request a new access token when it expires (Code Authorization only)
592
728
  this.refreshInProgress = false;
593
729
 
730
+ this.httpClient;
731
+ this.proxyAgent;
732
+
594
733
  this.config = new Configuration();
595
734
 
596
735
  if (typeof(window) !== 'undefined') window.ApiClient = this;
@@ -684,6 +823,87 @@ class ApiClient {
684
823
  this.config.setEnvironment(environment);
685
824
  }
686
825
 
826
+ /**
827
+ * @description Sets the dynamic HttpClient used by the client
828
+ * @param {object} httpClient - HttpClient to be injected
829
+ */
830
+ setHttpClient(httpClient) {
831
+ if (!(httpClient instanceof AbstractHttpClient)) {
832
+ throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");
833
+ }
834
+ this.httpClient = httpClient;
835
+ }
836
+
837
+ /**
838
+ * @description Gets the HttpClient used by the client
839
+ */
840
+ getHttpClient() {
841
+ if (this.httpClient) {
842
+ return this.httpClient;
843
+ } else {
844
+ this.httpClient = new DefaultHttpClient(this.timeout, this.proxyAgent);
845
+ return this.httpClient;
846
+ }
847
+ }
848
+
849
+ /**
850
+ * @description Sets the certificate paths if MTLS authentication is needed
851
+ * @param {string} certPath - path for certs
852
+ * @param {string} keyPath - path for key
853
+ * @param {string} caPath - path for public certs
854
+ */
855
+ setMTLSCertificates(certPath, keyPath, caPath) {
856
+ if (typeof window === 'undefined') {
857
+ const agentOptions = {};
858
+ if (certPath) {
859
+ agentOptions.cert = require('fs').readFileSync(certPath);
860
+ }
861
+
862
+ if (keyPath) {
863
+ agentOptions.key = require('fs').readFileSync(keyPath);
864
+ }
865
+
866
+ if (caPath) {
867
+ agentOptions.ca = require('fs').readFileSync(caPath);
868
+ }
869
+
870
+ agentOptions.rejectUnauthorized = true;
871
+
872
+ this.proxyAgent = new https__default["default"].Agent(agentOptions);
873
+ const httpClient = this.getHttpClient();
874
+ httpClient.setHttpsAgent(this.proxyAgent);
875
+ } else {
876
+ throw new Error("Custom Agent Paths/ File System Access are not supported on Browser. Use setMTLSContents instead");
877
+ }
878
+ }
879
+
880
+ /**
881
+ * @description Sets the certificate content if MTLS authentication is needed
882
+ * @param {string} certContent - content for certs
883
+ * @param {string} keyContent - content for key
884
+ * @param {string} caContent - content for public certs
885
+ */
886
+ setMTLSContents(certContent, keyContent, caContent) {
887
+ const agentOptions = {};
888
+ if (certContent) {
889
+ agentOptions.cert = certContent;
890
+ }
891
+
892
+ if (keyContent) {
893
+ agentOptions.key = keyContent;
894
+ }
895
+
896
+ if (caContent) {
897
+ agentOptions.ca = caContent;
898
+ }
899
+
900
+ agentOptions.rejectUnauthorized = true;
901
+
902
+ this.proxyAgent = new https__default["default"].Agent(agentOptions);
903
+ const httpClient = this.getHttpClient();
904
+ httpClient.setHttpsAgent(this.proxyAgent);
905
+ }
906
+
687
907
  /**
688
908
  * @description Sets the gateway used by the session
689
909
  * @param {object} gateway - Gateway Configuration interface
@@ -774,14 +994,11 @@ class ApiClient {
774
994
  const headers = {
775
995
  'Authorization': `Basic ${authHeader}`
776
996
  };
777
- axios__default["default"]({
778
- method: `POST`,
779
- url: `${loginBasePath}/oauth/token`,
780
- headers: headers,
781
- data: 'grant_type=client_credentials',
782
- httpsAgent: this.proxyAgent
783
- })
784
- .then((response) => {
997
+
998
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, 'grant_type=client_credentials', this.timeout);
999
+ const httpClient = this.getHttpClient();
1000
+ httpClient.request(requestOptions)
1001
+ .then((response) => {
785
1002
  // Logging
786
1003
  this.config.logger.log(
787
1004
  'trace',
@@ -925,20 +1142,18 @@ class ApiClient {
925
1142
  this.clientId = clientId;
926
1143
  var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
927
1144
  return new Promise((resolve, reject) => {
928
- var request = axios__default["default"]({
929
- method: `POST`,
930
- url: `${loginBasePath}/oauth/token`,
931
- headers: {
932
- 'Content-Type': 'application/x-www-form-urlencoded'
933
- },
934
- data: qs__default["default"].stringify({ grant_type: 'authorization_code',
935
- code: authCode,
936
- code_verifier: codeVerifier,
937
- client_id: clientId,
938
- redirect_uri: redirectUri })
939
- });
1145
+ var headers = {
1146
+ 'Content-Type': 'application/x-www-form-urlencoded'
1147
+ };
1148
+ var data = qs__default["default"].stringify({ grant_type: 'authorization_code',
1149
+ code: authCode,
1150
+ code_verifier: codeVerifier,
1151
+ client_id: clientId,
1152
+ redirect_uri: redirectUri });
1153
+
1154
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, data, this.timeout);
1155
+ const httpClient = this.getHttpClient();
940
1156
 
941
- request.proxy = this.proxy;
942
1157
  var bodyParam = {
943
1158
  grant_type: 'authorization_code',
944
1159
  code: authCode,
@@ -947,7 +1162,7 @@ class ApiClient {
947
1162
  redirect_uri: redirectUri,
948
1163
  };
949
1164
  // Handle response
950
- request
1165
+ httpClient.request(requestOptions)
951
1166
  .then((response) => {
952
1167
  // Logging
953
1168
  this.config.logger.log(
@@ -955,7 +1170,7 @@ class ApiClient {
955
1170
  response.status,
956
1171
  'POST',
957
1172
  `${loginBasePath}/oauth/token`,
958
- request.headers,
1173
+ requestOptions.headers,
959
1174
  response.headers,
960
1175
  bodyParam,
961
1176
  undefined
@@ -965,7 +1180,7 @@ class ApiClient {
965
1180
  response.status,
966
1181
  'POST',
967
1182
  `${loginBasePath}/oauth/token`,
968
- request.headers,
1183
+ requestOptions.headers,
969
1184
  undefined,
970
1185
  bodyParam,
971
1186
  undefined
@@ -989,7 +1204,7 @@ class ApiClient {
989
1204
  error.response.status,
990
1205
  'POST',
991
1206
  `${loginBasePath}/oauth/token`,
992
- request.headers,
1207
+ requestOptions.headers,
993
1208
  error.response.headers,
994
1209
  bodyParam,
995
1210
  error.response.data
@@ -1129,7 +1344,7 @@ class ApiClient {
1129
1344
  this._testTokenAccess()
1130
1345
  .then(() => {
1131
1346
  if (!this.authData.state && query.state)
1132
- this.authData.state = query.state;
1347
+ this.authData.state = query.state;
1133
1348
  // remove codeVerifier from session storage
1134
1349
  if (this.hasLocalStorage) {
1135
1350
  sessionStorage.removeItem(`genesys_cloud_sdk_pkce_code_verifier`);
@@ -1376,17 +1591,13 @@ class ApiClient {
1376
1591
  */
1377
1592
  _formAuthRequest(encodedData, data) {
1378
1593
  var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
1379
- var request = axios__default["default"]({
1380
- method: `POST`,
1381
- url: `${loginBasePath}/oauth/token`,
1382
- headers: {
1383
- 'Authorization': 'Basic ' + encodedData,
1384
- 'Content-Type': 'application/x-www-form-urlencoded'
1385
- },
1386
- data: qs__default["default"].stringify(data)
1387
- });
1388
-
1389
- return request;
1594
+ var headers = {
1595
+ 'Authorization': 'Basic ' + encodedData,
1596
+ 'Content-Type': 'application/x-www-form-urlencoded'
1597
+ };
1598
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, qs__default["default"].stringify(data), this.timeout);
1599
+ const httpClient = this.getHttpClient();
1600
+ return httpClient.request(requestOptions);
1390
1601
  }
1391
1602
 
1392
1603
  /**
@@ -1781,15 +1992,15 @@ class ApiClient {
1781
1992
  data[auth.name] = auth.apiKey;
1782
1993
  }
1783
1994
  if (auth['in'] === 'header') {
1784
- request.headers = this.addHeaders(request.headers, data);
1995
+ request.headers = this.addHeaders(request.headers, data);
1785
1996
  } else {
1786
- request.params = this.serialize(data);
1997
+ request.setParams(this.serialize(data));
1787
1998
  }
1788
1999
  }
1789
2000
  break;
1790
2001
  case 'oauth2':
1791
2002
  if (auth.accessToken) {
1792
- request.headers = this.addHeaders(request.headers, {'Authorization': `Bearer ${auth.accessToken}`});
2003
+ request.headers = this.addHeaders(request.headers, {'Authorization': `Bearer ${auth.accessToken}`});
1793
2004
  }
1794
2005
  break;
1795
2006
  default:
@@ -1799,13 +2010,18 @@ class ApiClient {
1799
2010
  }
1800
2011
 
1801
2012
  /**
1802
- * @description Sets the proxy agent axios will use for requests
2013
+ * @description Sets the proxy agent axios will use for requests
1803
2014
  * @param {any} agent - The proxy agent
1804
2015
  */
1805
2016
  setProxyAgent(agent) {
1806
2017
  this.proxyAgent = agent;
2018
+ const httpClient = this.getHttpClient();
2019
+ httpClient.setHttpsAgent(this.proxyAgent);
1807
2020
  }
1808
2021
 
2022
+
2023
+
2024
+
1809
2025
  /**
1810
2026
  * Invokes the REST service using the supplied settings and parameters.
1811
2027
  * @param {String} path The base URL to invoke.
@@ -1826,13 +2042,7 @@ class ApiClient {
1826
2042
  sendRequest(this);
1827
2043
  function sendRequest(that) {
1828
2044
  var url = that.buildUrl(path, pathParams);
1829
- var request = {
1830
- method: httpMethod,
1831
- url: url,
1832
- httpsAgent: that.proxyAgent,
1833
- timeout: that.timeout,
1834
- params: that.serialize(queryParams)
1835
- };
2045
+ var request = new HttpRequestOptions(url, httpMethod, null, that.serialize(queryParams), null, that.timeout);
1836
2046
 
1837
2047
  // apply authentications
1838
2048
  that.applyAuthToRequest(request, authNames);
@@ -1850,7 +2060,7 @@ class ApiClient {
1850
2060
  }
1851
2061
 
1852
2062
  if (contentType === 'application/x-www-form-urlencoded') {
1853
- request.data = that.normalizeParams(formParams);
2063
+ request.setData(that.normalizeParams(formParams));
1854
2064
  } else if (contentType == 'multipart/form-data') {
1855
2065
  var _formParams = that.normalizeParams(formParams);
1856
2066
  for (var key in _formParams) {
@@ -1858,18 +2068,20 @@ class ApiClient {
1858
2068
  // Looks like axios handles files and forms the same way
1859
2069
  var formData = new FormData();
1860
2070
  formData.set(key, _formParams[key]);
1861
- request.data = formData;
2071
+ request.setData(formData);
1862
2072
  }
1863
2073
  }
1864
2074
  } else if (bodyParam) {
1865
- request.data = bodyParam;
2075
+ request.setData(bodyParam);
1866
2076
  }
1867
2077
 
1868
2078
  var accept = that.jsonPreferredMime(accepts);
1869
2079
  if (accept) {
1870
2080
  request.headers['Accept'] = accept;
1871
2081
  }
1872
- axios__default["default"].request(request)
2082
+
2083
+ const httpClient = that.getHttpClient();
2084
+ httpClient.request(request)
1873
2085
  .then((response) => {
1874
2086
  // Build response object
1875
2087
  var data = (that.returnExtended === true) ? {
@@ -1890,8 +2102,8 @@ class ApiClient {
1890
2102
  })
1891
2103
  .catch((error) => {
1892
2104
  var data = error;
1893
- if (error.response && error.response.status == 401 && that.config.refresh_access_token && that.authData.refreshToken !== "") {
1894
- that._handleExpiredAccessToken()
2105
+ if (error.response && error.response.status == 401 && that.config.refresh_access_token && that.authData.refreshToken && that.authData.refreshToken !== "") {
2106
+ that._handleExpiredAccessToken()
1895
2107
  .then(() => {
1896
2108
  sendRequest(that);
1897
2109
  })
@@ -1930,7 +2142,7 @@ class AgentAssistantsApi {
1930
2142
  /**
1931
2143
  * AgentAssistants service.
1932
2144
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
1933
- * @version 210.0.0
2145
+ * @version 211.1.0
1934
2146
  */
1935
2147
 
1936
2148
  /**
@@ -2306,7 +2518,7 @@ class AgentCopilotApi {
2306
2518
  /**
2307
2519
  * AgentCopilot service.
2308
2520
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
2309
- * @version 210.0.0
2521
+ * @version 211.1.0
2310
2522
  */
2311
2523
 
2312
2524
  /**
@@ -2382,7 +2594,7 @@ class AgentUIApi {
2382
2594
  /**
2383
2595
  * AgentUI service.
2384
2596
  * @module purecloud-platform-client-v2/api/AgentUIApi
2385
- * @version 210.0.0
2597
+ * @version 211.1.0
2386
2598
  */
2387
2599
 
2388
2600
  /**
@@ -2513,7 +2725,7 @@ class AlertingApi {
2513
2725
  /**
2514
2726
  * Alerting service.
2515
2727
  * @module purecloud-platform-client-v2/api/AlertingApi
2516
- * @version 210.0.0
2728
+ * @version 211.1.0
2517
2729
  */
2518
2730
 
2519
2731
  /**
@@ -3174,7 +3386,7 @@ class AnalyticsApi {
3174
3386
  /**
3175
3387
  * Analytics service.
3176
3388
  * @module purecloud-platform-client-v2/api/AnalyticsApi
3177
- * @version 210.0.0
3389
+ * @version 211.1.0
3178
3390
  */
3179
3391
 
3180
3392
  /**
@@ -5787,7 +5999,7 @@ class ArchitectApi {
5787
5999
  /**
5788
6000
  * Architect service.
5789
6001
  * @module purecloud-platform-client-v2/api/ArchitectApi
5790
- * @version 210.0.0
6002
+ * @version 211.1.0
5791
6003
  */
5792
6004
 
5793
6005
  /**
@@ -9909,7 +10121,7 @@ class AuditApi {
9909
10121
  /**
9910
10122
  * Audit service.
9911
10123
  * @module purecloud-platform-client-v2/api/AuditApi
9912
- * @version 210.0.0
10124
+ * @version 211.1.0
9913
10125
  */
9914
10126
 
9915
10127
  /**
@@ -10110,7 +10322,7 @@ class AuthorizationApi {
10110
10322
  /**
10111
10323
  * Authorization service.
10112
10324
  * @module purecloud-platform-client-v2/api/AuthorizationApi
10113
- * @version 210.0.0
10325
+ * @version 211.1.0
10114
10326
  */
10115
10327
 
10116
10328
  /**
@@ -11393,7 +11605,7 @@ class BillingApi {
11393
11605
  /**
11394
11606
  * Billing service.
11395
11607
  * @module purecloud-platform-client-v2/api/BillingApi
11396
- * @version 210.0.0
11608
+ * @version 211.1.0
11397
11609
  */
11398
11610
 
11399
11611
  /**
@@ -11473,7 +11685,7 @@ class CarrierServicesApi {
11473
11685
  /**
11474
11686
  * CarrierServices service.
11475
11687
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
11476
- * @version 210.0.0
11688
+ * @version 211.1.0
11477
11689
  */
11478
11690
 
11479
11691
  /**
@@ -11543,7 +11755,7 @@ class ChatApi {
11543
11755
  /**
11544
11756
  * Chat service.
11545
11757
  * @module purecloud-platform-client-v2/api/ChatApi
11546
- * @version 210.0.0
11758
+ * @version 211.1.0
11547
11759
  */
11548
11760
 
11549
11761
  /**
@@ -12479,7 +12691,7 @@ class CoachingApi {
12479
12691
  /**
12480
12692
  * Coaching service.
12481
12693
  * @module purecloud-platform-client-v2/api/CoachingApi
12482
- * @version 210.0.0
12694
+ * @version 211.1.0
12483
12695
  */
12484
12696
 
12485
12697
  /**
@@ -13056,7 +13268,7 @@ class ContentManagementApi {
13056
13268
  /**
13057
13269
  * ContentManagement service.
13058
13270
  * @module purecloud-platform-client-v2/api/ContentManagementApi
13059
- * @version 210.0.0
13271
+ * @version 211.1.0
13060
13272
  */
13061
13273
 
13062
13274
  /**
@@ -14137,7 +14349,7 @@ class ConversationsApi {
14137
14349
  /**
14138
14350
  * Conversations service.
14139
14351
  * @module purecloud-platform-client-v2/api/ConversationsApi
14140
- * @version 210.0.0
14352
+ * @version 211.1.0
14141
14353
  */
14142
14354
 
14143
14355
  /**
@@ -21278,7 +21490,7 @@ class DataExtensionsApi {
21278
21490
  /**
21279
21491
  * DataExtensions service.
21280
21492
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
21281
- * @version 210.0.0
21493
+ * @version 211.1.0
21282
21494
  */
21283
21495
 
21284
21496
  /**
@@ -21364,7 +21576,7 @@ class DataPrivacyApi {
21364
21576
  /**
21365
21577
  * DataPrivacy service.
21366
21578
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
21367
- * @version 210.0.0
21579
+ * @version 211.1.0
21368
21580
  */
21369
21581
 
21370
21582
  /**
@@ -21534,7 +21746,7 @@ class DownloadsApi {
21534
21746
  /**
21535
21747
  * Downloads service.
21536
21748
  * @module purecloud-platform-client-v2/api/DownloadsApi
21537
- * @version 210.0.0
21749
+ * @version 211.1.0
21538
21750
  */
21539
21751
 
21540
21752
  /**
@@ -21586,7 +21798,7 @@ class EmailsApi {
21586
21798
  /**
21587
21799
  * Emails service.
21588
21800
  * @module purecloud-platform-client-v2/api/EmailsApi
21589
- * @version 210.0.0
21801
+ * @version 211.1.0
21590
21802
  */
21591
21803
 
21592
21804
  /**
@@ -21651,7 +21863,7 @@ class EmployeeEngagementApi {
21651
21863
  /**
21652
21864
  * EmployeeEngagement service.
21653
21865
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
21654
- * @version 210.0.0
21866
+ * @version 211.1.0
21655
21867
  */
21656
21868
 
21657
21869
  /**
@@ -21802,7 +22014,7 @@ class EventsApi {
21802
22014
  /**
21803
22015
  * Events service.
21804
22016
  * @module purecloud-platform-client-v2/api/EventsApi
21805
- * @version 210.0.0
22017
+ * @version 211.1.0
21806
22018
  */
21807
22019
 
21808
22020
  /**
@@ -21898,7 +22110,7 @@ class ExternalContactsApi {
21898
22110
  /**
21899
22111
  * ExternalContacts service.
21900
22112
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
21901
- * @version 210.0.0
22113
+ * @version 211.1.0
21902
22114
  */
21903
22115
 
21904
22116
  /**
@@ -24462,7 +24674,7 @@ class FaxApi {
24462
24674
  /**
24463
24675
  * Fax service.
24464
24676
  * @module purecloud-platform-client-v2/api/FaxApi
24465
- * @version 210.0.0
24677
+ * @version 211.1.0
24466
24678
  */
24467
24679
 
24468
24680
  /**
@@ -24677,7 +24889,7 @@ class FlowsApi {
24677
24889
  /**
24678
24890
  * Flows service.
24679
24891
  * @module purecloud-platform-client-v2/api/FlowsApi
24680
- * @version 210.0.0
24892
+ * @version 211.1.0
24681
24893
  */
24682
24894
 
24683
24895
  /**
@@ -24860,7 +25072,7 @@ class GamificationApi {
24860
25072
  /**
24861
25073
  * Gamification service.
24862
25074
  * @module purecloud-platform-client-v2/api/GamificationApi
24863
- * @version 210.0.0
25075
+ * @version 211.1.0
24864
25076
  */
24865
25077
 
24866
25078
  /**
@@ -26946,7 +27158,7 @@ class GeneralDataProtectionRegulationApi {
26946
27158
  /**
26947
27159
  * GeneralDataProtectionRegulation service.
26948
27160
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
26949
- * @version 210.0.0
27161
+ * @version 211.1.0
26950
27162
  */
26951
27163
 
26952
27164
  /**
@@ -27076,7 +27288,7 @@ class GeolocationApi {
27076
27288
  /**
27077
27289
  * Geolocation service.
27078
27290
  * @module purecloud-platform-client-v2/api/GeolocationApi
27079
- * @version 210.0.0
27291
+ * @version 211.1.0
27080
27292
  */
27081
27293
 
27082
27294
  /**
@@ -27207,7 +27419,7 @@ class GreetingsApi {
27207
27419
  /**
27208
27420
  * Greetings service.
27209
27421
  * @module purecloud-platform-client-v2/api/GreetingsApi
27210
- * @version 210.0.0
27422
+ * @version 211.1.0
27211
27423
  */
27212
27424
 
27213
27425
  /**
@@ -27662,7 +27874,7 @@ class GroupsApi {
27662
27874
  /**
27663
27875
  * Groups service.
27664
27876
  * @module purecloud-platform-client-v2/api/GroupsApi
27665
- * @version 210.0.0
27877
+ * @version 211.1.0
27666
27878
  */
27667
27879
 
27668
27880
  /**
@@ -28181,7 +28393,7 @@ class IdentityProviderApi {
28181
28393
  /**
28182
28394
  * IdentityProvider service.
28183
28395
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
28184
- * @version 210.0.0
28396
+ * @version 211.1.0
28185
28397
  */
28186
28398
 
28187
28399
  /**
@@ -29042,7 +29254,7 @@ class InfrastructureAsCodeApi {
29042
29254
  /**
29043
29255
  * InfrastructureAsCode service.
29044
29256
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
29045
- * @version 210.0.0
29257
+ * @version 211.1.0
29046
29258
  */
29047
29259
 
29048
29260
  /**
@@ -29209,7 +29421,7 @@ class IntegrationsApi {
29209
29421
  /**
29210
29422
  * Integrations service.
29211
29423
  * @module purecloud-platform-client-v2/api/IntegrationsApi
29212
- * @version 210.0.0
29424
+ * @version 211.1.0
29213
29425
  */
29214
29426
 
29215
29427
  /**
@@ -31651,7 +31863,7 @@ class JourneyApi {
31651
31863
  /**
31652
31864
  * Journey service.
31653
31865
  * @module purecloud-platform-client-v2/api/JourneyApi
31654
- * @version 210.0.0
31866
+ * @version 211.1.0
31655
31867
  */
31656
31868
 
31657
31869
  /**
@@ -33616,7 +33828,7 @@ class KnowledgeApi {
33616
33828
  /**
33617
33829
  * Knowledge service.
33618
33830
  * @module purecloud-platform-client-v2/api/KnowledgeApi
33619
- * @version 210.0.0
33831
+ * @version 211.1.0
33620
33832
  */
33621
33833
 
33622
33834
  /**
@@ -37492,7 +37704,7 @@ class LanguageUnderstandingApi {
37492
37704
  /**
37493
37705
  * LanguageUnderstanding service.
37494
37706
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
37495
- * @version 210.0.0
37707
+ * @version 211.1.0
37496
37708
  */
37497
37709
 
37498
37710
  /**
@@ -38526,7 +38738,7 @@ class LanguagesApi {
38526
38738
  /**
38527
38739
  * Languages service.
38528
38740
  * @module purecloud-platform-client-v2/api/LanguagesApi
38529
- * @version 210.0.0
38741
+ * @version 211.1.0
38530
38742
  */
38531
38743
 
38532
38744
  /**
@@ -38748,7 +38960,7 @@ class LearningApi {
38748
38960
  /**
38749
38961
  * Learning service.
38750
38962
  * @module purecloud-platform-client-v2/api/LearningApi
38751
- * @version 210.0.0
38963
+ * @version 211.1.0
38752
38964
  */
38753
38965
 
38754
38966
  /**
@@ -39777,7 +39989,7 @@ class LicenseApi {
39777
39989
  /**
39778
39990
  * License service.
39779
39991
  * @module purecloud-platform-client-v2/api/LicenseApi
39780
- * @version 210.0.0
39992
+ * @version 211.1.0
39781
39993
  */
39782
39994
 
39783
39995
  /**
@@ -40015,7 +40227,7 @@ class LocationsApi {
40015
40227
  /**
40016
40228
  * Locations service.
40017
40229
  * @module purecloud-platform-client-v2/api/LocationsApi
40018
- * @version 210.0.0
40230
+ * @version 211.1.0
40019
40231
  */
40020
40232
 
40021
40233
  /**
@@ -40251,7 +40463,7 @@ class LogCaptureApi {
40251
40463
  /**
40252
40464
  * LogCapture service.
40253
40465
  * @module purecloud-platform-client-v2/api/LogCaptureApi
40254
- * @version 210.0.0
40466
+ * @version 211.1.0
40255
40467
  */
40256
40468
 
40257
40469
  /**
@@ -40451,7 +40663,7 @@ class MessagingApi {
40451
40663
  /**
40452
40664
  * Messaging service.
40453
40665
  * @module purecloud-platform-client-v2/api/MessagingApi
40454
- * @version 210.0.0
40666
+ * @version 211.1.0
40455
40667
  */
40456
40668
 
40457
40669
  /**
@@ -40810,7 +41022,7 @@ class MobileDevicesApi {
40810
41022
  /**
40811
41023
  * MobileDevices service.
40812
41024
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
40813
- * @version 210.0.0
41025
+ * @version 211.1.0
40814
41026
  */
40815
41027
 
40816
41028
  /**
@@ -40961,7 +41173,7 @@ class NotificationsApi {
40961
41173
  /**
40962
41174
  * Notifications service.
40963
41175
  * @module purecloud-platform-client-v2/api/NotificationsApi
40964
- * @version 210.0.0
41176
+ * @version 211.1.0
40965
41177
  */
40966
41178
 
40967
41179
  /**
@@ -41194,7 +41406,7 @@ class OAuthApi {
41194
41406
  /**
41195
41407
  * OAuth service.
41196
41408
  * @module purecloud-platform-client-v2/api/OAuthApi
41197
- * @version 210.0.0
41409
+ * @version 211.1.0
41198
41410
  */
41199
41411
 
41200
41412
  /**
@@ -41560,7 +41772,7 @@ class ObjectsApi {
41560
41772
  /**
41561
41773
  * Objects service.
41562
41774
  * @module purecloud-platform-client-v2/api/ObjectsApi
41563
- * @version 210.0.0
41775
+ * @version 211.1.0
41564
41776
  */
41565
41777
 
41566
41778
  /**
@@ -41830,7 +42042,7 @@ class OperationalEventsApi {
41830
42042
  /**
41831
42043
  * OperationalEvents service.
41832
42044
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
41833
- * @version 210.0.0
42045
+ * @version 211.1.0
41834
42046
  */
41835
42047
 
41836
42048
  /**
@@ -41947,7 +42159,7 @@ class OrganizationApi {
41947
42159
  /**
41948
42160
  * Organization service.
41949
42161
  * @module purecloud-platform-client-v2/api/OrganizationApi
41950
- * @version 210.0.0
42162
+ * @version 211.1.0
41951
42163
  */
41952
42164
 
41953
42165
  /**
@@ -42489,7 +42701,7 @@ class OrganizationAuthorizationApi {
42489
42701
  /**
42490
42702
  * OrganizationAuthorization service.
42491
42703
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
42492
- * @version 210.0.0
42704
+ * @version 211.1.0
42493
42705
  */
42494
42706
 
42495
42707
  /**
@@ -43883,7 +44095,7 @@ class OutboundApi {
43883
44095
  /**
43884
44096
  * Outbound service.
43885
44097
  * @module purecloud-platform-client-v2/api/OutboundApi
43886
- * @version 210.0.0
44098
+ * @version 211.1.0
43887
44099
  */
43888
44100
 
43889
44101
  /**
@@ -48430,7 +48642,7 @@ class PresenceApi {
48430
48642
  /**
48431
48643
  * Presence service.
48432
48644
  * @module purecloud-platform-client-v2/api/PresenceApi
48433
- * @version 210.0.0
48645
+ * @version 211.1.0
48434
48646
  */
48435
48647
 
48436
48648
  /**
@@ -49174,7 +49386,7 @@ class ProcessAutomationApi {
49174
49386
  /**
49175
49387
  * ProcessAutomation service.
49176
49388
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
49177
- * @version 210.0.0
49389
+ * @version 211.1.0
49178
49390
  */
49179
49391
 
49180
49392
  /**
@@ -49413,7 +49625,7 @@ class QualityApi {
49413
49625
  /**
49414
49626
  * Quality service.
49415
49627
  * @module purecloud-platform-client-v2/api/QualityApi
49416
- * @version 210.0.0
49628
+ * @version 211.1.0
49417
49629
  */
49418
49630
 
49419
49631
  /**
@@ -51201,7 +51413,7 @@ class RecordingApi {
51201
51413
  /**
51202
51414
  * Recording service.
51203
51415
  * @module purecloud-platform-client-v2/api/RecordingApi
51204
- * @version 210.0.0
51416
+ * @version 211.1.0
51205
51417
  */
51206
51418
 
51207
51419
  /**
@@ -52860,7 +53072,7 @@ class ResponseManagementApi {
52860
53072
  /**
52861
53073
  * ResponseManagement service.
52862
53074
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
52863
- * @version 210.0.0
53075
+ * @version 211.1.0
52864
53076
  */
52865
53077
 
52866
53078
  /**
@@ -53370,7 +53582,7 @@ class RoutingApi {
53370
53582
  /**
53371
53583
  * Routing service.
53372
53584
  * @module purecloud-platform-client-v2/api/RoutingApi
53373
- * @version 210.0.0
53585
+ * @version 211.1.0
53374
53586
  */
53375
53587
 
53376
53588
  /**
@@ -57522,7 +57734,7 @@ class SCIMApi {
57522
57734
  /**
57523
57735
  * SCIM service.
57524
57736
  * @module purecloud-platform-client-v2/api/SCIMApi
57525
- * @version 210.0.0
57737
+ * @version 211.1.0
57526
57738
  */
57527
57739
 
57528
57740
  /**
@@ -58399,7 +58611,7 @@ class ScreenRecordingApi {
58399
58611
  /**
58400
58612
  * ScreenRecording service.
58401
58613
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
58402
- * @version 210.0.0
58614
+ * @version 211.1.0
58403
58615
  */
58404
58616
 
58405
58617
  /**
@@ -58444,7 +58656,7 @@ class ScriptsApi {
58444
58656
  /**
58445
58657
  * Scripts service.
58446
58658
  * @module purecloud-platform-client-v2/api/ScriptsApi
58447
- * @version 210.0.0
58659
+ * @version 211.1.0
58448
58660
  */
58449
58661
 
58450
58662
  /**
@@ -58888,7 +59100,7 @@ class SearchApi {
58888
59100
  /**
58889
59101
  * Search service.
58890
59102
  * @module purecloud-platform-client-v2/api/SearchApi
58891
- * @version 210.0.0
59103
+ * @version 211.1.0
58892
59104
  */
58893
59105
 
58894
59106
  /**
@@ -59631,7 +59843,7 @@ class SettingsApi {
59631
59843
  /**
59632
59844
  * Settings service.
59633
59845
  * @module purecloud-platform-client-v2/api/SettingsApi
59634
- * @version 210.0.0
59846
+ * @version 211.1.0
59635
59847
  */
59636
59848
 
59637
59849
  /**
@@ -59851,7 +60063,7 @@ class SocialMediaApi {
59851
60063
  /**
59852
60064
  * SocialMedia service.
59853
60065
  * @module purecloud-platform-client-v2/api/SocialMediaApi
59854
- * @version 210.0.0
60066
+ * @version 211.1.0
59855
60067
  */
59856
60068
 
59857
60069
  /**
@@ -60756,7 +60968,7 @@ class SpeechTextAnalyticsApi {
60756
60968
  /**
60757
60969
  * SpeechTextAnalytics service.
60758
60970
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
60759
- * @version 210.0.0
60971
+ * @version 211.1.0
60760
60972
  */
60761
60973
 
60762
60974
  /**
@@ -62091,7 +62303,7 @@ class StationsApi {
62091
62303
  /**
62092
62304
  * Stations service.
62093
62305
  * @module purecloud-platform-client-v2/api/StationsApi
62094
- * @version 210.0.0
62306
+ * @version 211.1.0
62095
62307
  */
62096
62308
 
62097
62309
  /**
@@ -62193,7 +62405,7 @@ class SuggestApi {
62193
62405
  /**
62194
62406
  * Suggest service.
62195
62407
  * @module purecloud-platform-client-v2/api/SuggestApi
62196
- * @version 210.0.0
62408
+ * @version 211.1.0
62197
62409
  */
62198
62410
 
62199
62411
  /**
@@ -62332,7 +62544,7 @@ class TaskManagementApi {
62332
62544
  /**
62333
62545
  * TaskManagement service.
62334
62546
  * @module purecloud-platform-client-v2/api/TaskManagementApi
62335
- * @version 210.0.0
62547
+ * @version 211.1.0
62336
62548
  */
62337
62549
 
62338
62550
  /**
@@ -63996,7 +64208,7 @@ class TeamsApi {
63996
64208
  /**
63997
64209
  * Teams service.
63998
64210
  * @module purecloud-platform-client-v2/api/TeamsApi
63999
- * @version 210.0.0
64211
+ * @version 211.1.0
64000
64212
  */
64001
64213
 
64002
64214
  /**
@@ -64301,7 +64513,7 @@ class TelephonyApi {
64301
64513
  /**
64302
64514
  * Telephony service.
64303
64515
  * @module purecloud-platform-client-v2/api/TelephonyApi
64304
- * @version 210.0.0
64516
+ * @version 211.1.0
64305
64517
  */
64306
64518
 
64307
64519
  /**
@@ -64483,7 +64695,7 @@ class TelephonyProvidersEdgeApi {
64483
64695
  /**
64484
64696
  * TelephonyProvidersEdge service.
64485
64697
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
64486
- * @version 210.0.0
64698
+ * @version 211.1.0
64487
64699
  */
64488
64700
 
64489
64701
  /**
@@ -67934,7 +68146,7 @@ class TextbotsApi {
67934
68146
  /**
67935
68147
  * Textbots service.
67936
68148
  * @module purecloud-platform-client-v2/api/TextbotsApi
67937
- * @version 210.0.0
68149
+ * @version 211.1.0
67938
68150
  */
67939
68151
 
67940
68152
  /**
@@ -68062,7 +68274,7 @@ class TokensApi {
68062
68274
  /**
68063
68275
  * Tokens service.
68064
68276
  * @module purecloud-platform-client-v2/api/TokensApi
68065
- * @version 210.0.0
68277
+ * @version 211.1.0
68066
68278
  */
68067
68279
 
68068
68280
  /**
@@ -68216,7 +68428,7 @@ class UploadsApi {
68216
68428
  /**
68217
68429
  * Uploads service.
68218
68430
  * @module purecloud-platform-client-v2/api/UploadsApi
68219
- * @version 210.0.0
68431
+ * @version 211.1.0
68220
68432
  */
68221
68433
 
68222
68434
  /**
@@ -68485,7 +68697,7 @@ class UsageApi {
68485
68697
  /**
68486
68698
  * Usage service.
68487
68699
  * @module purecloud-platform-client-v2/api/UsageApi
68488
- * @version 210.0.0
68700
+ * @version 211.1.0
68489
68701
  */
68490
68702
 
68491
68703
  /**
@@ -68700,7 +68912,7 @@ class UserRecordingsApi {
68700
68912
  /**
68701
68913
  * UserRecordings service.
68702
68914
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
68703
- * @version 210.0.0
68915
+ * @version 211.1.0
68704
68916
  */
68705
68917
 
68706
68918
  /**
@@ -68915,7 +69127,7 @@ class UsersApi {
68915
69127
  /**
68916
69128
  * Users service.
68917
69129
  * @module purecloud-platform-client-v2/api/UsersApi
68918
- * @version 210.0.0
69130
+ * @version 211.1.0
68919
69131
  */
68920
69132
 
68921
69133
  /**
@@ -71744,7 +71956,7 @@ class UtilitiesApi {
71744
71956
  /**
71745
71957
  * Utilities service.
71746
71958
  * @module purecloud-platform-client-v2/api/UtilitiesApi
71747
- * @version 210.0.0
71959
+ * @version 211.1.0
71748
71960
  */
71749
71961
 
71750
71962
  /**
@@ -71855,7 +72067,7 @@ class VoicemailApi {
71855
72067
  /**
71856
72068
  * Voicemail service.
71857
72069
  * @module purecloud-platform-client-v2/api/VoicemailApi
71858
- * @version 210.0.0
72070
+ * @version 211.1.0
71859
72071
  */
71860
72072
 
71861
72073
  /**
@@ -72577,7 +72789,7 @@ class WebChatApi {
72577
72789
  /**
72578
72790
  * WebChat service.
72579
72791
  * @module purecloud-platform-client-v2/api/WebChatApi
72580
- * @version 210.0.0
72792
+ * @version 211.1.0
72581
72793
  */
72582
72794
 
72583
72795
  /**
@@ -73128,7 +73340,7 @@ class WebDeploymentsApi {
73128
73340
  /**
73129
73341
  * WebDeployments service.
73130
73342
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
73131
- * @version 210.0.0
73343
+ * @version 211.1.0
73132
73344
  */
73133
73345
 
73134
73346
  /**
@@ -73655,7 +73867,7 @@ class WebMessagingApi {
73655
73867
  /**
73656
73868
  * WebMessaging service.
73657
73869
  * @module purecloud-platform-client-v2/api/WebMessagingApi
73658
- * @version 210.0.0
73870
+ * @version 211.1.0
73659
73871
  */
73660
73872
 
73661
73873
  /**
@@ -73701,7 +73913,7 @@ class WidgetsApi {
73701
73913
  /**
73702
73914
  * Widgets service.
73703
73915
  * @module purecloud-platform-client-v2/api/WidgetsApi
73704
- * @version 210.0.0
73916
+ * @version 211.1.0
73705
73917
  */
73706
73918
 
73707
73919
  /**
@@ -73847,7 +74059,7 @@ class WorkforceManagementApi {
73847
74059
  /**
73848
74060
  * WorkforceManagement service.
73849
74061
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
73850
- * @version 210.0.0
74062
+ * @version 211.1.0
73851
74063
  */
73852
74064
 
73853
74065
  /**
@@ -81053,7 +81265,7 @@ class WorkforceManagementApi {
81053
81265
  * </pre>
81054
81266
  * </p>
81055
81267
  * @module purecloud-platform-client-v2/index
81056
- * @version 210.0.0
81268
+ * @version 211.1.0
81057
81269
  */
81058
81270
  class platformClient {
81059
81271
  constructor() {