purecloud-platform-client-v2 210.0.0 → 211.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 (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,7 +1,8 @@
1
- define(['axios', 'qs'], (function (axios, qs) { 'use strict';
1
+ define(['https', 'axios', 'qs'], (function (https, axios, qs) { 'use strict';
2
2
 
3
3
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
4
4
 
5
+ var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
5
6
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
6
7
  var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
7
8
 
@@ -423,6 +424,8 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
423
424
  }
424
425
  }
425
426
 
427
+
428
+
426
429
  setEnvironment(env) {
427
430
  // Default value
428
431
  if (env) this.environment = env;
@@ -481,9 +484,141 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
481
484
  }
482
485
  }
483
486
 
487
+ class AbstractHttpClient {
488
+
489
+ constructor() {
490
+ this.timeout = 16000;
491
+ }
492
+
493
+ setTimeout(timeout) {
494
+ if (timeout === null || timeout === undefined || typeof timeout !== 'number') {
495
+ throw new Error("The 'timeout' property must be a number");
496
+ }
497
+ this.timeout = timeout;
498
+ }
499
+
500
+ setHttpsAgent(httpsAgent) {
501
+ if (httpsAgent && typeof httpsAgent !== 'object') {
502
+ throw new Error("The 'httpsAgent' property must be an object");
503
+ }
504
+ this.httpsAgent = httpsAgent;
505
+ }
506
+
507
+ request(httpRequestOptions) {
508
+ throw new Error("method must be implemented");
509
+ }
510
+ }
511
+
512
+ class HttpRequestOptions {
513
+
514
+ constructor(url, method, headers, params, data, timeout) {
515
+ this.setUrl(url);
516
+ this.setMethod(method);
517
+ if (headers) {
518
+ this.setHeaders(headers);
519
+ }
520
+ if (params) {
521
+ this.setParams(params);
522
+ }
523
+ if (data) {
524
+ this.setData(data);
525
+ }
526
+ if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
527
+ else this.timeout = 16000;
528
+ }
529
+
530
+ // Mandatory fields with validation
531
+ setUrl(url) {
532
+ if (!url) throw new Error("The 'url' property is required");
533
+ this.url = url;
534
+ }
535
+
536
+ setMethod(method) {
537
+ const validMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'];
538
+ if (!method || !validMethods.includes(method.toUpperCase())) {
539
+ throw new Error("The 'method' property is invalid or missing");
540
+ }
541
+ this.method = method.toUpperCase();
542
+ }
543
+
544
+ setData(data) {
545
+ if (data === undefined || data === null) {
546
+ throw new Error("The 'data' property is required");
547
+ }
548
+ this.data = data;
549
+ }
550
+
551
+ // Optional fields
552
+ setParams(params) {
553
+ if (params && typeof params !== 'object') {
554
+ throw new Error("The 'params' property must be an object");
555
+ }
556
+ this.params = params;
557
+ }
558
+
559
+ // Optional fields
560
+ setHeaders(headers) {
561
+ if (headers && typeof headers !== 'object') {
562
+ throw new Error("The 'headers' property must be an object");
563
+ }
564
+ this.headers = headers;
565
+ }
566
+
567
+ setTimeout(timeout) {
568
+ if (timeout === undefined || timeout === null || typeof timeout !== 'number') {
569
+ throw new Error("The 'timeout' property must be a number");
570
+ }
571
+ this.timeout = timeout;
572
+ }
573
+
574
+ }
575
+
576
+ // Default client is Axios
577
+ class DefaultHttpClient extends AbstractHttpClient{
578
+
579
+ constructor(timeout, httpsAgent) {
580
+ super();
581
+ if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
582
+ else this.timeout = 16000;
583
+ if (httpsAgent !== null && httpsAgent !== undefined) this.setHttpsAgent(httpsAgent);
584
+ else this.httpsAgent;
585
+ this._axiosInstance = axios__default["default"].create({});
586
+ }
587
+
588
+ request(httpRequestOptions) {
589
+ if(!(httpRequestOptions instanceof HttpRequestOptions)) {
590
+ throw new Error(`httpRequestOptions must be instance of HttpRequestOptions `);
591
+ }
592
+ const config = this.toAxiosConfig(httpRequestOptions);
593
+ return this._axiosInstance.request(config);
594
+ }
595
+
596
+ // Method to generate Axios-compatible config
597
+ toAxiosConfig(httpRequestOptions) {
598
+ if (!httpRequestOptions.url || !httpRequestOptions.method) {
599
+ throw new Error(
600
+ "Mandatory fields 'url' and 'method' must be set before making a request"
601
+ );
602
+ }
603
+
604
+ var config = {
605
+ url: httpRequestOptions.url,
606
+ method: httpRequestOptions.method
607
+ };
608
+
609
+ if (httpRequestOptions.params) config.params = httpRequestOptions.params;
610
+ if (httpRequestOptions.headers) config.headers = httpRequestOptions.headers;
611
+ if(httpRequestOptions.data) config.data = httpRequestOptions.data;
612
+ if (this.timeout != null && this.timeout != undefined) config.timeout = this.timeout;
613
+ if (this.httpsAgent) config.httpsAgent = this.httpsAgent;
614
+
615
+ return config;
616
+ }
617
+ }
618
+
484
619
  /**
485
620
  * @module purecloud-platform-client-v2/ApiClient
486
- * @version 210.0.0
621
+ * @version 211.0.0
487
622
  */
488
623
  class ApiClient {
489
624
  /**
@@ -588,6 +723,9 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
588
723
  // Transparently request a new access token when it expires (Code Authorization only)
589
724
  this.refreshInProgress = false;
590
725
 
726
+ this.httpClient;
727
+ this.proxyAgent;
728
+
591
729
  this.config = new Configuration();
592
730
 
593
731
  if (typeof(window) !== 'undefined') window.ApiClient = this;
@@ -681,6 +819,87 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
681
819
  this.config.setEnvironment(environment);
682
820
  }
683
821
 
822
+ /**
823
+ * @description Sets the dynamic HttpClient used by the client
824
+ * @param {object} httpClient - HttpClient to be injected
825
+ */
826
+ setHttpClient(httpClient) {
827
+ if (!(httpClient instanceof AbstractHttpClient)) {
828
+ throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");
829
+ }
830
+ this.httpClient = httpClient;
831
+ }
832
+
833
+ /**
834
+ * @description Gets the HttpClient used by the client
835
+ */
836
+ getHttpClient() {
837
+ if (this.httpClient) {
838
+ return this.httpClient;
839
+ } else {
840
+ this.httpClient = new DefaultHttpClient(this.timeout, this.proxyAgent);
841
+ return this.httpClient;
842
+ }
843
+ }
844
+
845
+ /**
846
+ * @description Sets the certificate paths if MTLS authentication is needed
847
+ * @param {string} certPath - path for certs
848
+ * @param {string} keyPath - path for key
849
+ * @param {string} caPath - path for public certs
850
+ */
851
+ setMTLSCertificates(certPath, keyPath, caPath) {
852
+ if (typeof window === 'undefined') {
853
+ const agentOptions = {};
854
+ if (certPath) {
855
+ agentOptions.cert = require('fs').readFileSync(certPath);
856
+ }
857
+
858
+ if (keyPath) {
859
+ agentOptions.key = require('fs').readFileSync(keyPath);
860
+ }
861
+
862
+ if (caPath) {
863
+ agentOptions.ca = require('fs').readFileSync(caPath);
864
+ }
865
+
866
+ agentOptions.rejectUnauthorized = true;
867
+
868
+ this.proxyAgent = new https__default["default"].Agent(agentOptions);
869
+ const httpClient = this.getHttpClient();
870
+ httpClient.setHttpsAgent(this.proxyAgent);
871
+ } else {
872
+ throw new Error("Custom Agent Paths/ File System Access are not supported on Browser. Use setMTLSContents instead");
873
+ }
874
+ }
875
+
876
+ /**
877
+ * @description Sets the certificate content if MTLS authentication is needed
878
+ * @param {string} certContent - content for certs
879
+ * @param {string} keyContent - content for key
880
+ * @param {string} caContent - content for public certs
881
+ */
882
+ setMTLSContents(certContent, keyContent, caContent) {
883
+ const agentOptions = {};
884
+ if (certContent) {
885
+ agentOptions.cert = certContent;
886
+ }
887
+
888
+ if (keyContent) {
889
+ agentOptions.key = keyContent;
890
+ }
891
+
892
+ if (caContent) {
893
+ agentOptions.ca = caContent;
894
+ }
895
+
896
+ agentOptions.rejectUnauthorized = true;
897
+
898
+ this.proxyAgent = new https__default["default"].Agent(agentOptions);
899
+ const httpClient = this.getHttpClient();
900
+ httpClient.setHttpsAgent(this.proxyAgent);
901
+ }
902
+
684
903
  /**
685
904
  * @description Sets the gateway used by the session
686
905
  * @param {object} gateway - Gateway Configuration interface
@@ -771,14 +990,11 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
771
990
  const headers = {
772
991
  'Authorization': `Basic ${authHeader}`
773
992
  };
774
- axios__default["default"]({
775
- method: `POST`,
776
- url: `${loginBasePath}/oauth/token`,
777
- headers: headers,
778
- data: 'grant_type=client_credentials',
779
- httpsAgent: this.proxyAgent
780
- })
781
- .then((response) => {
993
+
994
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, 'grant_type=client_credentials', this.timeout);
995
+ const httpClient = this.getHttpClient();
996
+ httpClient.request(requestOptions)
997
+ .then((response) => {
782
998
  // Logging
783
999
  this.config.logger.log(
784
1000
  'trace',
@@ -922,20 +1138,18 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
922
1138
  this.clientId = clientId;
923
1139
  var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
924
1140
  return new Promise((resolve, reject) => {
925
- var request = axios__default["default"]({
926
- method: `POST`,
927
- url: `${loginBasePath}/oauth/token`,
928
- headers: {
929
- 'Content-Type': 'application/x-www-form-urlencoded'
930
- },
931
- data: qs__default["default"].stringify({ grant_type: 'authorization_code',
932
- code: authCode,
933
- code_verifier: codeVerifier,
934
- client_id: clientId,
935
- redirect_uri: redirectUri })
936
- });
1141
+ var headers = {
1142
+ 'Content-Type': 'application/x-www-form-urlencoded'
1143
+ };
1144
+ var data = qs__default["default"].stringify({ grant_type: 'authorization_code',
1145
+ code: authCode,
1146
+ code_verifier: codeVerifier,
1147
+ client_id: clientId,
1148
+ redirect_uri: redirectUri });
1149
+
1150
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, data, this.timeout);
1151
+ const httpClient = this.getHttpClient();
937
1152
 
938
- request.proxy = this.proxy;
939
1153
  var bodyParam = {
940
1154
  grant_type: 'authorization_code',
941
1155
  code: authCode,
@@ -944,7 +1158,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
944
1158
  redirect_uri: redirectUri,
945
1159
  };
946
1160
  // Handle response
947
- request
1161
+ httpClient.request(requestOptions)
948
1162
  .then((response) => {
949
1163
  // Logging
950
1164
  this.config.logger.log(
@@ -952,7 +1166,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
952
1166
  response.status,
953
1167
  'POST',
954
1168
  `${loginBasePath}/oauth/token`,
955
- request.headers,
1169
+ requestOptions.headers,
956
1170
  response.headers,
957
1171
  bodyParam,
958
1172
  undefined
@@ -962,7 +1176,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
962
1176
  response.status,
963
1177
  'POST',
964
1178
  `${loginBasePath}/oauth/token`,
965
- request.headers,
1179
+ requestOptions.headers,
966
1180
  undefined,
967
1181
  bodyParam,
968
1182
  undefined
@@ -986,7 +1200,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
986
1200
  error.response.status,
987
1201
  'POST',
988
1202
  `${loginBasePath}/oauth/token`,
989
- request.headers,
1203
+ requestOptions.headers,
990
1204
  error.response.headers,
991
1205
  bodyParam,
992
1206
  error.response.data
@@ -1126,7 +1340,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1126
1340
  this._testTokenAccess()
1127
1341
  .then(() => {
1128
1342
  if (!this.authData.state && query.state)
1129
- this.authData.state = query.state;
1343
+ this.authData.state = query.state;
1130
1344
  // remove codeVerifier from session storage
1131
1345
  if (this.hasLocalStorage) {
1132
1346
  sessionStorage.removeItem(`genesys_cloud_sdk_pkce_code_verifier`);
@@ -1373,17 +1587,13 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1373
1587
  */
1374
1588
  _formAuthRequest(encodedData, data) {
1375
1589
  var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
1376
- var request = axios__default["default"]({
1377
- method: `POST`,
1378
- url: `${loginBasePath}/oauth/token`,
1379
- headers: {
1380
- 'Authorization': 'Basic ' + encodedData,
1381
- 'Content-Type': 'application/x-www-form-urlencoded'
1382
- },
1383
- data: qs__default["default"].stringify(data)
1384
- });
1385
-
1386
- return request;
1590
+ var headers = {
1591
+ 'Authorization': 'Basic ' + encodedData,
1592
+ 'Content-Type': 'application/x-www-form-urlencoded'
1593
+ };
1594
+ var requestOptions = new HttpRequestOptions(loginBasePath, `POST`, headers, null, qs__default["default"].stringify(data), this.timeout);
1595
+ const httpClient = this.getHttpClient();
1596
+ return httpClient.request(requestOptions);
1387
1597
  }
1388
1598
 
1389
1599
  /**
@@ -1778,15 +1988,15 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1778
1988
  data[auth.name] = auth.apiKey;
1779
1989
  }
1780
1990
  if (auth['in'] === 'header') {
1781
- request.headers = this.addHeaders(request.headers, data);
1991
+ request.headers = this.addHeaders(request.headers, data);
1782
1992
  } else {
1783
- request.params = this.serialize(data);
1993
+ request.setParams(this.serialize(data));
1784
1994
  }
1785
1995
  }
1786
1996
  break;
1787
1997
  case 'oauth2':
1788
1998
  if (auth.accessToken) {
1789
- request.headers = this.addHeaders(request.headers, {'Authorization': `Bearer ${auth.accessToken}`});
1999
+ request.headers = this.addHeaders(request.headers, {'Authorization': `Bearer ${auth.accessToken}`});
1790
2000
  }
1791
2001
  break;
1792
2002
  default:
@@ -1796,13 +2006,18 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1796
2006
  }
1797
2007
 
1798
2008
  /**
1799
- * @description Sets the proxy agent axios will use for requests
2009
+ * @description Sets the proxy agent axios will use for requests
1800
2010
  * @param {any} agent - The proxy agent
1801
2011
  */
1802
2012
  setProxyAgent(agent) {
1803
2013
  this.proxyAgent = agent;
2014
+ const httpClient = this.getHttpClient();
2015
+ httpClient.setHttpsAgent(this.proxyAgent);
1804
2016
  }
1805
2017
 
2018
+
2019
+
2020
+
1806
2021
  /**
1807
2022
  * Invokes the REST service using the supplied settings and parameters.
1808
2023
  * @param {String} path The base URL to invoke.
@@ -1823,13 +2038,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1823
2038
  sendRequest(this);
1824
2039
  function sendRequest(that) {
1825
2040
  var url = that.buildUrl(path, pathParams);
1826
- var request = {
1827
- method: httpMethod,
1828
- url: url,
1829
- httpsAgent: that.proxyAgent,
1830
- timeout: that.timeout,
1831
- params: that.serialize(queryParams)
1832
- };
2041
+ var request = new HttpRequestOptions(url, httpMethod, null, that.serialize(queryParams), null, that.timeout);
1833
2042
 
1834
2043
  // apply authentications
1835
2044
  that.applyAuthToRequest(request, authNames);
@@ -1847,7 +2056,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1847
2056
  }
1848
2057
 
1849
2058
  if (contentType === 'application/x-www-form-urlencoded') {
1850
- request.data = that.normalizeParams(formParams);
2059
+ request.setData(that.normalizeParams(formParams));
1851
2060
  } else if (contentType == 'multipart/form-data') {
1852
2061
  var _formParams = that.normalizeParams(formParams);
1853
2062
  for (var key in _formParams) {
@@ -1855,18 +2064,20 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1855
2064
  // Looks like axios handles files and forms the same way
1856
2065
  var formData = new FormData();
1857
2066
  formData.set(key, _formParams[key]);
1858
- request.data = formData;
2067
+ request.setData(formData);
1859
2068
  }
1860
2069
  }
1861
2070
  } else if (bodyParam) {
1862
- request.data = bodyParam;
2071
+ request.setData(bodyParam);
1863
2072
  }
1864
2073
 
1865
2074
  var accept = that.jsonPreferredMime(accepts);
1866
2075
  if (accept) {
1867
2076
  request.headers['Accept'] = accept;
1868
2077
  }
1869
- axios__default["default"].request(request)
2078
+
2079
+ const httpClient = that.getHttpClient();
2080
+ httpClient.request(request)
1870
2081
  .then((response) => {
1871
2082
  // Build response object
1872
2083
  var data = (that.returnExtended === true) ? {
@@ -1887,8 +2098,8 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1887
2098
  })
1888
2099
  .catch((error) => {
1889
2100
  var data = error;
1890
- if (error.response && error.response.status == 401 && that.config.refresh_access_token && that.authData.refreshToken !== "") {
1891
- that._handleExpiredAccessToken()
2101
+ if (error.response && error.response.status == 401 && that.config.refresh_access_token && that.authData.refreshToken && that.authData.refreshToken !== "") {
2102
+ that._handleExpiredAccessToken()
1892
2103
  .then(() => {
1893
2104
  sendRequest(that);
1894
2105
  })
@@ -1927,7 +2138,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1927
2138
  /**
1928
2139
  * AgentAssistants service.
1929
2140
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
1930
- * @version 210.0.0
2141
+ * @version 211.0.0
1931
2142
  */
1932
2143
 
1933
2144
  /**
@@ -2303,7 +2514,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
2303
2514
  /**
2304
2515
  * AgentCopilot service.
2305
2516
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
2306
- * @version 210.0.0
2517
+ * @version 211.0.0
2307
2518
  */
2308
2519
 
2309
2520
  /**
@@ -2379,7 +2590,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
2379
2590
  /**
2380
2591
  * AgentUI service.
2381
2592
  * @module purecloud-platform-client-v2/api/AgentUIApi
2382
- * @version 210.0.0
2593
+ * @version 211.0.0
2383
2594
  */
2384
2595
 
2385
2596
  /**
@@ -2510,7 +2721,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
2510
2721
  /**
2511
2722
  * Alerting service.
2512
2723
  * @module purecloud-platform-client-v2/api/AlertingApi
2513
- * @version 210.0.0
2724
+ * @version 211.0.0
2514
2725
  */
2515
2726
 
2516
2727
  /**
@@ -3171,7 +3382,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
3171
3382
  /**
3172
3383
  * Analytics service.
3173
3384
  * @module purecloud-platform-client-v2/api/AnalyticsApi
3174
- * @version 210.0.0
3385
+ * @version 211.0.0
3175
3386
  */
3176
3387
 
3177
3388
  /**
@@ -5784,7 +5995,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
5784
5995
  /**
5785
5996
  * Architect service.
5786
5997
  * @module purecloud-platform-client-v2/api/ArchitectApi
5787
- * @version 210.0.0
5998
+ * @version 211.0.0
5788
5999
  */
5789
6000
 
5790
6001
  /**
@@ -9906,7 +10117,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
9906
10117
  /**
9907
10118
  * Audit service.
9908
10119
  * @module purecloud-platform-client-v2/api/AuditApi
9909
- * @version 210.0.0
10120
+ * @version 211.0.0
9910
10121
  */
9911
10122
 
9912
10123
  /**
@@ -10107,7 +10318,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
10107
10318
  /**
10108
10319
  * Authorization service.
10109
10320
  * @module purecloud-platform-client-v2/api/AuthorizationApi
10110
- * @version 210.0.0
10321
+ * @version 211.0.0
10111
10322
  */
10112
10323
 
10113
10324
  /**
@@ -11390,7 +11601,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
11390
11601
  /**
11391
11602
  * Billing service.
11392
11603
  * @module purecloud-platform-client-v2/api/BillingApi
11393
- * @version 210.0.0
11604
+ * @version 211.0.0
11394
11605
  */
11395
11606
 
11396
11607
  /**
@@ -11470,7 +11681,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
11470
11681
  /**
11471
11682
  * CarrierServices service.
11472
11683
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
11473
- * @version 210.0.0
11684
+ * @version 211.0.0
11474
11685
  */
11475
11686
 
11476
11687
  /**
@@ -11540,7 +11751,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
11540
11751
  /**
11541
11752
  * Chat service.
11542
11753
  * @module purecloud-platform-client-v2/api/ChatApi
11543
- * @version 210.0.0
11754
+ * @version 211.0.0
11544
11755
  */
11545
11756
 
11546
11757
  /**
@@ -12476,7 +12687,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
12476
12687
  /**
12477
12688
  * Coaching service.
12478
12689
  * @module purecloud-platform-client-v2/api/CoachingApi
12479
- * @version 210.0.0
12690
+ * @version 211.0.0
12480
12691
  */
12481
12692
 
12482
12693
  /**
@@ -13053,7 +13264,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
13053
13264
  /**
13054
13265
  * ContentManagement service.
13055
13266
  * @module purecloud-platform-client-v2/api/ContentManagementApi
13056
- * @version 210.0.0
13267
+ * @version 211.0.0
13057
13268
  */
13058
13269
 
13059
13270
  /**
@@ -14134,7 +14345,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
14134
14345
  /**
14135
14346
  * Conversations service.
14136
14347
  * @module purecloud-platform-client-v2/api/ConversationsApi
14137
- * @version 210.0.0
14348
+ * @version 211.0.0
14138
14349
  */
14139
14350
 
14140
14351
  /**
@@ -21275,7 +21486,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21275
21486
  /**
21276
21487
  * DataExtensions service.
21277
21488
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
21278
- * @version 210.0.0
21489
+ * @version 211.0.0
21279
21490
  */
21280
21491
 
21281
21492
  /**
@@ -21361,7 +21572,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21361
21572
  /**
21362
21573
  * DataPrivacy service.
21363
21574
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
21364
- * @version 210.0.0
21575
+ * @version 211.0.0
21365
21576
  */
21366
21577
 
21367
21578
  /**
@@ -21531,7 +21742,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21531
21742
  /**
21532
21743
  * Downloads service.
21533
21744
  * @module purecloud-platform-client-v2/api/DownloadsApi
21534
- * @version 210.0.0
21745
+ * @version 211.0.0
21535
21746
  */
21536
21747
 
21537
21748
  /**
@@ -21583,7 +21794,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21583
21794
  /**
21584
21795
  * Emails service.
21585
21796
  * @module purecloud-platform-client-v2/api/EmailsApi
21586
- * @version 210.0.0
21797
+ * @version 211.0.0
21587
21798
  */
21588
21799
 
21589
21800
  /**
@@ -21648,7 +21859,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21648
21859
  /**
21649
21860
  * EmployeeEngagement service.
21650
21861
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
21651
- * @version 210.0.0
21862
+ * @version 211.0.0
21652
21863
  */
21653
21864
 
21654
21865
  /**
@@ -21799,7 +22010,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21799
22010
  /**
21800
22011
  * Events service.
21801
22012
  * @module purecloud-platform-client-v2/api/EventsApi
21802
- * @version 210.0.0
22013
+ * @version 211.0.0
21803
22014
  */
21804
22015
 
21805
22016
  /**
@@ -21895,7 +22106,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21895
22106
  /**
21896
22107
  * ExternalContacts service.
21897
22108
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
21898
- * @version 210.0.0
22109
+ * @version 211.0.0
21899
22110
  */
21900
22111
 
21901
22112
  /**
@@ -24459,7 +24670,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
24459
24670
  /**
24460
24671
  * Fax service.
24461
24672
  * @module purecloud-platform-client-v2/api/FaxApi
24462
- * @version 210.0.0
24673
+ * @version 211.0.0
24463
24674
  */
24464
24675
 
24465
24676
  /**
@@ -24674,7 +24885,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
24674
24885
  /**
24675
24886
  * Flows service.
24676
24887
  * @module purecloud-platform-client-v2/api/FlowsApi
24677
- * @version 210.0.0
24888
+ * @version 211.0.0
24678
24889
  */
24679
24890
 
24680
24891
  /**
@@ -24857,7 +25068,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
24857
25068
  /**
24858
25069
  * Gamification service.
24859
25070
  * @module purecloud-platform-client-v2/api/GamificationApi
24860
- * @version 210.0.0
25071
+ * @version 211.0.0
24861
25072
  */
24862
25073
 
24863
25074
  /**
@@ -26943,7 +27154,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
26943
27154
  /**
26944
27155
  * GeneralDataProtectionRegulation service.
26945
27156
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
26946
- * @version 210.0.0
27157
+ * @version 211.0.0
26947
27158
  */
26948
27159
 
26949
27160
  /**
@@ -27073,7 +27284,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
27073
27284
  /**
27074
27285
  * Geolocation service.
27075
27286
  * @module purecloud-platform-client-v2/api/GeolocationApi
27076
- * @version 210.0.0
27287
+ * @version 211.0.0
27077
27288
  */
27078
27289
 
27079
27290
  /**
@@ -27204,7 +27415,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
27204
27415
  /**
27205
27416
  * Greetings service.
27206
27417
  * @module purecloud-platform-client-v2/api/GreetingsApi
27207
- * @version 210.0.0
27418
+ * @version 211.0.0
27208
27419
  */
27209
27420
 
27210
27421
  /**
@@ -27659,7 +27870,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
27659
27870
  /**
27660
27871
  * Groups service.
27661
27872
  * @module purecloud-platform-client-v2/api/GroupsApi
27662
- * @version 210.0.0
27873
+ * @version 211.0.0
27663
27874
  */
27664
27875
 
27665
27876
  /**
@@ -28178,7 +28389,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
28178
28389
  /**
28179
28390
  * IdentityProvider service.
28180
28391
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
28181
- * @version 210.0.0
28392
+ * @version 211.0.0
28182
28393
  */
28183
28394
 
28184
28395
  /**
@@ -29039,7 +29250,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
29039
29250
  /**
29040
29251
  * InfrastructureAsCode service.
29041
29252
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
29042
- * @version 210.0.0
29253
+ * @version 211.0.0
29043
29254
  */
29044
29255
 
29045
29256
  /**
@@ -29206,7 +29417,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
29206
29417
  /**
29207
29418
  * Integrations service.
29208
29419
  * @module purecloud-platform-client-v2/api/IntegrationsApi
29209
- * @version 210.0.0
29420
+ * @version 211.0.0
29210
29421
  */
29211
29422
 
29212
29423
  /**
@@ -31648,7 +31859,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
31648
31859
  /**
31649
31860
  * Journey service.
31650
31861
  * @module purecloud-platform-client-v2/api/JourneyApi
31651
- * @version 210.0.0
31862
+ * @version 211.0.0
31652
31863
  */
31653
31864
 
31654
31865
  /**
@@ -33613,7 +33824,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
33613
33824
  /**
33614
33825
  * Knowledge service.
33615
33826
  * @module purecloud-platform-client-v2/api/KnowledgeApi
33616
- * @version 210.0.0
33827
+ * @version 211.0.0
33617
33828
  */
33618
33829
 
33619
33830
  /**
@@ -37489,7 +37700,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
37489
37700
  /**
37490
37701
  * LanguageUnderstanding service.
37491
37702
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
37492
- * @version 210.0.0
37703
+ * @version 211.0.0
37493
37704
  */
37494
37705
 
37495
37706
  /**
@@ -38523,7 +38734,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
38523
38734
  /**
38524
38735
  * Languages service.
38525
38736
  * @module purecloud-platform-client-v2/api/LanguagesApi
38526
- * @version 210.0.0
38737
+ * @version 211.0.0
38527
38738
  */
38528
38739
 
38529
38740
  /**
@@ -38745,7 +38956,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
38745
38956
  /**
38746
38957
  * Learning service.
38747
38958
  * @module purecloud-platform-client-v2/api/LearningApi
38748
- * @version 210.0.0
38959
+ * @version 211.0.0
38749
38960
  */
38750
38961
 
38751
38962
  /**
@@ -39774,7 +39985,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
39774
39985
  /**
39775
39986
  * License service.
39776
39987
  * @module purecloud-platform-client-v2/api/LicenseApi
39777
- * @version 210.0.0
39988
+ * @version 211.0.0
39778
39989
  */
39779
39990
 
39780
39991
  /**
@@ -40012,7 +40223,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40012
40223
  /**
40013
40224
  * Locations service.
40014
40225
  * @module purecloud-platform-client-v2/api/LocationsApi
40015
- * @version 210.0.0
40226
+ * @version 211.0.0
40016
40227
  */
40017
40228
 
40018
40229
  /**
@@ -40248,7 +40459,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40248
40459
  /**
40249
40460
  * LogCapture service.
40250
40461
  * @module purecloud-platform-client-v2/api/LogCaptureApi
40251
- * @version 210.0.0
40462
+ * @version 211.0.0
40252
40463
  */
40253
40464
 
40254
40465
  /**
@@ -40448,7 +40659,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40448
40659
  /**
40449
40660
  * Messaging service.
40450
40661
  * @module purecloud-platform-client-v2/api/MessagingApi
40451
- * @version 210.0.0
40662
+ * @version 211.0.0
40452
40663
  */
40453
40664
 
40454
40665
  /**
@@ -40807,7 +41018,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40807
41018
  /**
40808
41019
  * MobileDevices service.
40809
41020
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
40810
- * @version 210.0.0
41021
+ * @version 211.0.0
40811
41022
  */
40812
41023
 
40813
41024
  /**
@@ -40958,7 +41169,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40958
41169
  /**
40959
41170
  * Notifications service.
40960
41171
  * @module purecloud-platform-client-v2/api/NotificationsApi
40961
- * @version 210.0.0
41172
+ * @version 211.0.0
40962
41173
  */
40963
41174
 
40964
41175
  /**
@@ -41191,7 +41402,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41191
41402
  /**
41192
41403
  * OAuth service.
41193
41404
  * @module purecloud-platform-client-v2/api/OAuthApi
41194
- * @version 210.0.0
41405
+ * @version 211.0.0
41195
41406
  */
41196
41407
 
41197
41408
  /**
@@ -41557,7 +41768,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41557
41768
  /**
41558
41769
  * Objects service.
41559
41770
  * @module purecloud-platform-client-v2/api/ObjectsApi
41560
- * @version 210.0.0
41771
+ * @version 211.0.0
41561
41772
  */
41562
41773
 
41563
41774
  /**
@@ -41827,7 +42038,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41827
42038
  /**
41828
42039
  * OperationalEvents service.
41829
42040
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
41830
- * @version 210.0.0
42041
+ * @version 211.0.0
41831
42042
  */
41832
42043
 
41833
42044
  /**
@@ -41944,7 +42155,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41944
42155
  /**
41945
42156
  * Organization service.
41946
42157
  * @module purecloud-platform-client-v2/api/OrganizationApi
41947
- * @version 210.0.0
42158
+ * @version 211.0.0
41948
42159
  */
41949
42160
 
41950
42161
  /**
@@ -42486,7 +42697,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
42486
42697
  /**
42487
42698
  * OrganizationAuthorization service.
42488
42699
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
42489
- * @version 210.0.0
42700
+ * @version 211.0.0
42490
42701
  */
42491
42702
 
42492
42703
  /**
@@ -43880,7 +44091,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
43880
44091
  /**
43881
44092
  * Outbound service.
43882
44093
  * @module purecloud-platform-client-v2/api/OutboundApi
43883
- * @version 210.0.0
44094
+ * @version 211.0.0
43884
44095
  */
43885
44096
 
43886
44097
  /**
@@ -48427,7 +48638,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
48427
48638
  /**
48428
48639
  * Presence service.
48429
48640
  * @module purecloud-platform-client-v2/api/PresenceApi
48430
- * @version 210.0.0
48641
+ * @version 211.0.0
48431
48642
  */
48432
48643
 
48433
48644
  /**
@@ -49171,7 +49382,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
49171
49382
  /**
49172
49383
  * ProcessAutomation service.
49173
49384
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
49174
- * @version 210.0.0
49385
+ * @version 211.0.0
49175
49386
  */
49176
49387
 
49177
49388
  /**
@@ -49410,7 +49621,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
49410
49621
  /**
49411
49622
  * Quality service.
49412
49623
  * @module purecloud-platform-client-v2/api/QualityApi
49413
- * @version 210.0.0
49624
+ * @version 211.0.0
49414
49625
  */
49415
49626
 
49416
49627
  /**
@@ -51198,7 +51409,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
51198
51409
  /**
51199
51410
  * Recording service.
51200
51411
  * @module purecloud-platform-client-v2/api/RecordingApi
51201
- * @version 210.0.0
51412
+ * @version 211.0.0
51202
51413
  */
51203
51414
 
51204
51415
  /**
@@ -52857,7 +53068,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
52857
53068
  /**
52858
53069
  * ResponseManagement service.
52859
53070
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
52860
- * @version 210.0.0
53071
+ * @version 211.0.0
52861
53072
  */
52862
53073
 
52863
53074
  /**
@@ -53367,7 +53578,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
53367
53578
  /**
53368
53579
  * Routing service.
53369
53580
  * @module purecloud-platform-client-v2/api/RoutingApi
53370
- * @version 210.0.0
53581
+ * @version 211.0.0
53371
53582
  */
53372
53583
 
53373
53584
  /**
@@ -57519,7 +57730,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
57519
57730
  /**
57520
57731
  * SCIM service.
57521
57732
  * @module purecloud-platform-client-v2/api/SCIMApi
57522
- * @version 210.0.0
57733
+ * @version 211.0.0
57523
57734
  */
57524
57735
 
57525
57736
  /**
@@ -58396,7 +58607,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
58396
58607
  /**
58397
58608
  * ScreenRecording service.
58398
58609
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
58399
- * @version 210.0.0
58610
+ * @version 211.0.0
58400
58611
  */
58401
58612
 
58402
58613
  /**
@@ -58441,7 +58652,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
58441
58652
  /**
58442
58653
  * Scripts service.
58443
58654
  * @module purecloud-platform-client-v2/api/ScriptsApi
58444
- * @version 210.0.0
58655
+ * @version 211.0.0
58445
58656
  */
58446
58657
 
58447
58658
  /**
@@ -58885,7 +59096,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
58885
59096
  /**
58886
59097
  * Search service.
58887
59098
  * @module purecloud-platform-client-v2/api/SearchApi
58888
- * @version 210.0.0
59099
+ * @version 211.0.0
58889
59100
  */
58890
59101
 
58891
59102
  /**
@@ -59628,7 +59839,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
59628
59839
  /**
59629
59840
  * Settings service.
59630
59841
  * @module purecloud-platform-client-v2/api/SettingsApi
59631
- * @version 210.0.0
59842
+ * @version 211.0.0
59632
59843
  */
59633
59844
 
59634
59845
  /**
@@ -59848,7 +60059,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
59848
60059
  /**
59849
60060
  * SocialMedia service.
59850
60061
  * @module purecloud-platform-client-v2/api/SocialMediaApi
59851
- * @version 210.0.0
60062
+ * @version 211.0.0
59852
60063
  */
59853
60064
 
59854
60065
  /**
@@ -60753,7 +60964,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
60753
60964
  /**
60754
60965
  * SpeechTextAnalytics service.
60755
60966
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
60756
- * @version 210.0.0
60967
+ * @version 211.0.0
60757
60968
  */
60758
60969
 
60759
60970
  /**
@@ -62088,7 +62299,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
62088
62299
  /**
62089
62300
  * Stations service.
62090
62301
  * @module purecloud-platform-client-v2/api/StationsApi
62091
- * @version 210.0.0
62302
+ * @version 211.0.0
62092
62303
  */
62093
62304
 
62094
62305
  /**
@@ -62190,7 +62401,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
62190
62401
  /**
62191
62402
  * Suggest service.
62192
62403
  * @module purecloud-platform-client-v2/api/SuggestApi
62193
- * @version 210.0.0
62404
+ * @version 211.0.0
62194
62405
  */
62195
62406
 
62196
62407
  /**
@@ -62329,7 +62540,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
62329
62540
  /**
62330
62541
  * TaskManagement service.
62331
62542
  * @module purecloud-platform-client-v2/api/TaskManagementApi
62332
- * @version 210.0.0
62543
+ * @version 211.0.0
62333
62544
  */
62334
62545
 
62335
62546
  /**
@@ -63993,7 +64204,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
63993
64204
  /**
63994
64205
  * Teams service.
63995
64206
  * @module purecloud-platform-client-v2/api/TeamsApi
63996
- * @version 210.0.0
64207
+ * @version 211.0.0
63997
64208
  */
63998
64209
 
63999
64210
  /**
@@ -64298,7 +64509,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
64298
64509
  /**
64299
64510
  * Telephony service.
64300
64511
  * @module purecloud-platform-client-v2/api/TelephonyApi
64301
- * @version 210.0.0
64512
+ * @version 211.0.0
64302
64513
  */
64303
64514
 
64304
64515
  /**
@@ -64480,7 +64691,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
64480
64691
  /**
64481
64692
  * TelephonyProvidersEdge service.
64482
64693
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
64483
- * @version 210.0.0
64694
+ * @version 211.0.0
64484
64695
  */
64485
64696
 
64486
64697
  /**
@@ -67931,7 +68142,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
67931
68142
  /**
67932
68143
  * Textbots service.
67933
68144
  * @module purecloud-platform-client-v2/api/TextbotsApi
67934
- * @version 210.0.0
68145
+ * @version 211.0.0
67935
68146
  */
67936
68147
 
67937
68148
  /**
@@ -68059,7 +68270,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68059
68270
  /**
68060
68271
  * Tokens service.
68061
68272
  * @module purecloud-platform-client-v2/api/TokensApi
68062
- * @version 210.0.0
68273
+ * @version 211.0.0
68063
68274
  */
68064
68275
 
68065
68276
  /**
@@ -68213,7 +68424,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68213
68424
  /**
68214
68425
  * Uploads service.
68215
68426
  * @module purecloud-platform-client-v2/api/UploadsApi
68216
- * @version 210.0.0
68427
+ * @version 211.0.0
68217
68428
  */
68218
68429
 
68219
68430
  /**
@@ -68482,7 +68693,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68482
68693
  /**
68483
68694
  * Usage service.
68484
68695
  * @module purecloud-platform-client-v2/api/UsageApi
68485
- * @version 210.0.0
68696
+ * @version 211.0.0
68486
68697
  */
68487
68698
 
68488
68699
  /**
@@ -68697,7 +68908,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68697
68908
  /**
68698
68909
  * UserRecordings service.
68699
68910
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
68700
- * @version 210.0.0
68911
+ * @version 211.0.0
68701
68912
  */
68702
68913
 
68703
68914
  /**
@@ -68912,7 +69123,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68912
69123
  /**
68913
69124
  * Users service.
68914
69125
  * @module purecloud-platform-client-v2/api/UsersApi
68915
- * @version 210.0.0
69126
+ * @version 211.0.0
68916
69127
  */
68917
69128
 
68918
69129
  /**
@@ -71741,7 +71952,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
71741
71952
  /**
71742
71953
  * Utilities service.
71743
71954
  * @module purecloud-platform-client-v2/api/UtilitiesApi
71744
- * @version 210.0.0
71955
+ * @version 211.0.0
71745
71956
  */
71746
71957
 
71747
71958
  /**
@@ -71852,7 +72063,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
71852
72063
  /**
71853
72064
  * Voicemail service.
71854
72065
  * @module purecloud-platform-client-v2/api/VoicemailApi
71855
- * @version 210.0.0
72066
+ * @version 211.0.0
71856
72067
  */
71857
72068
 
71858
72069
  /**
@@ -72574,7 +72785,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
72574
72785
  /**
72575
72786
  * WebChat service.
72576
72787
  * @module purecloud-platform-client-v2/api/WebChatApi
72577
- * @version 210.0.0
72788
+ * @version 211.0.0
72578
72789
  */
72579
72790
 
72580
72791
  /**
@@ -73125,7 +73336,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
73125
73336
  /**
73126
73337
  * WebDeployments service.
73127
73338
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
73128
- * @version 210.0.0
73339
+ * @version 211.0.0
73129
73340
  */
73130
73341
 
73131
73342
  /**
@@ -73652,7 +73863,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
73652
73863
  /**
73653
73864
  * WebMessaging service.
73654
73865
  * @module purecloud-platform-client-v2/api/WebMessagingApi
73655
- * @version 210.0.0
73866
+ * @version 211.0.0
73656
73867
  */
73657
73868
 
73658
73869
  /**
@@ -73698,7 +73909,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
73698
73909
  /**
73699
73910
  * Widgets service.
73700
73911
  * @module purecloud-platform-client-v2/api/WidgetsApi
73701
- * @version 210.0.0
73912
+ * @version 211.0.0
73702
73913
  */
73703
73914
 
73704
73915
  /**
@@ -73844,7 +74055,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
73844
74055
  /**
73845
74056
  * WorkforceManagement service.
73846
74057
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
73847
- * @version 210.0.0
74058
+ * @version 211.0.0
73848
74059
  */
73849
74060
 
73850
74061
  /**
@@ -81050,7 +81261,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
81050
81261
  * </pre>
81051
81262
  * </p>
81052
81263
  * @module purecloud-platform-client-v2/index
81053
- * @version 210.0.0
81264
+ * @version 211.0.0
81054
81265
  */
81055
81266
  class platformClient {
81056
81267
  constructor() {