purecloud-platform-client-v2 209.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 +773 -155
  3. package/dist/web-amd/purecloud-platform-client-v2.js +773 -156
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +295 -181
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +6697 -534
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +937 -702
  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 +175 -0
  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 +240 -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 +9 -9
  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 +5 -13
  94. package/src/purecloud-platform-client-v2/configuration.js +2 -0
  95. package/src/purecloud-platform-client-v2/index.js +7 -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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.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 209.0.0
21489
+ * @version 211.0.0
21279
21490
  */
21280
21491
 
21281
21492
  /**
@@ -21357,11 +21568,181 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21357
21568
 
21358
21569
  }
21359
21570
 
21571
+ class DataPrivacyApi {
21572
+ /**
21573
+ * DataPrivacy service.
21574
+ * @module purecloud-platform-client-v2/api/DataPrivacyApi
21575
+ * @version 211.0.0
21576
+ */
21577
+
21578
+ /**
21579
+ * Constructs a new DataPrivacyApi.
21580
+ * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
21581
+ * @class
21582
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
21583
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
21584
+ */
21585
+ constructor(apiClient) {
21586
+ this.apiClient = apiClient || ApiClient.instance;
21587
+ }
21588
+
21589
+
21590
+ /**
21591
+ * Delete a masking rule.
21592
+ *
21593
+ * @param {String} ruleId ruleId
21594
+ */
21595
+ deleteDataprivacyMaskingrule(ruleId) {
21596
+ // verify the required parameter 'ruleId' is set
21597
+ if (ruleId === undefined || ruleId === null) {
21598
+ throw 'Missing the required parameter "ruleId" when calling deleteDataprivacyMaskingrule';
21599
+ }
21600
+
21601
+ return this.apiClient.callApi(
21602
+ '/api/v2/dataprivacy/maskingrules/{ruleId}',
21603
+ 'DELETE',
21604
+ { 'ruleId': ruleId },
21605
+ { },
21606
+ { },
21607
+ { },
21608
+ null,
21609
+ ['PureCloud OAuth'],
21610
+ ['application/json'],
21611
+ ['application/json']
21612
+ );
21613
+ }
21614
+
21615
+ /**
21616
+ * Fetch details about a masking rule.
21617
+ *
21618
+ * @param {String} ruleId ruleId
21619
+ */
21620
+ getDataprivacyMaskingrule(ruleId) {
21621
+ // verify the required parameter 'ruleId' is set
21622
+ if (ruleId === undefined || ruleId === null) {
21623
+ throw 'Missing the required parameter "ruleId" when calling getDataprivacyMaskingrule';
21624
+ }
21625
+
21626
+ return this.apiClient.callApi(
21627
+ '/api/v2/dataprivacy/maskingrules/{ruleId}',
21628
+ 'GET',
21629
+ { 'ruleId': ruleId },
21630
+ { },
21631
+ { },
21632
+ { },
21633
+ null,
21634
+ ['PureCloud OAuth'],
21635
+ ['application/json'],
21636
+ ['application/json']
21637
+ );
21638
+ }
21639
+
21640
+ /**
21641
+ * Retrieve the list of masking rules.
21642
+ *
21643
+ */
21644
+ getDataprivacyMaskingrules() {
21645
+
21646
+ return this.apiClient.callApi(
21647
+ '/api/v2/dataprivacy/maskingrules',
21648
+ 'GET',
21649
+ { },
21650
+ { },
21651
+ { },
21652
+ { },
21653
+ null,
21654
+ ['PureCloud OAuth'],
21655
+ ['application/json'],
21656
+ ['application/json']
21657
+ );
21658
+ }
21659
+
21660
+ /**
21661
+ * Update information about a masking rule.
21662
+ *
21663
+ * @param {String} ruleId ruleId
21664
+ * @param {Object} opts Optional parameters
21665
+ * @param {Object} opts.body
21666
+ */
21667
+ patchDataprivacyMaskingrule(ruleId, opts) {
21668
+ opts = opts || {};
21669
+
21670
+ // verify the required parameter 'ruleId' is set
21671
+ if (ruleId === undefined || ruleId === null) {
21672
+ throw 'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';
21673
+ }
21674
+
21675
+ return this.apiClient.callApi(
21676
+ '/api/v2/dataprivacy/maskingrules/{ruleId}',
21677
+ 'PATCH',
21678
+ { 'ruleId': ruleId },
21679
+ { },
21680
+ { },
21681
+ { },
21682
+ opts['body'],
21683
+ ['PureCloud OAuth'],
21684
+ ['application/json'],
21685
+ ['application/json']
21686
+ );
21687
+ }
21688
+
21689
+ /**
21690
+ * Create a new masking rule resource.
21691
+ *
21692
+ * @param {Object} body Details for creating masking rule resource
21693
+ */
21694
+ postDataprivacyMaskingrules(body) {
21695
+ // verify the required parameter 'body' is set
21696
+ if (body === undefined || body === null) {
21697
+ throw 'Missing the required parameter "body" when calling postDataprivacyMaskingrules';
21698
+ }
21699
+
21700
+ return this.apiClient.callApi(
21701
+ '/api/v2/dataprivacy/maskingrules',
21702
+ 'POST',
21703
+ { },
21704
+ { },
21705
+ { },
21706
+ { },
21707
+ body,
21708
+ ['PureCloud OAuth'],
21709
+ ['application/json'],
21710
+ ['application/json']
21711
+ );
21712
+ }
21713
+
21714
+ /**
21715
+ * Validate masking before creating.
21716
+ *
21717
+ * @param {Object} body Text to be masked
21718
+ */
21719
+ postDataprivacyMaskingrulesValidate(body) {
21720
+ // verify the required parameter 'body' is set
21721
+ if (body === undefined || body === null) {
21722
+ throw 'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';
21723
+ }
21724
+
21725
+ return this.apiClient.callApi(
21726
+ '/api/v2/dataprivacy/maskingrules/validate',
21727
+ 'POST',
21728
+ { },
21729
+ { },
21730
+ { },
21731
+ { },
21732
+ body,
21733
+ ['PureCloud OAuth'],
21734
+ ['application/json'],
21735
+ ['application/json']
21736
+ );
21737
+ }
21738
+
21739
+ }
21740
+
21360
21741
  class DownloadsApi {
21361
21742
  /**
21362
21743
  * Downloads service.
21363
21744
  * @module purecloud-platform-client-v2/api/DownloadsApi
21364
- * @version 209.0.0
21745
+ * @version 211.0.0
21365
21746
  */
21366
21747
 
21367
21748
  /**
@@ -21413,7 +21794,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21413
21794
  /**
21414
21795
  * Emails service.
21415
21796
  * @module purecloud-platform-client-v2/api/EmailsApi
21416
- * @version 209.0.0
21797
+ * @version 211.0.0
21417
21798
  */
21418
21799
 
21419
21800
  /**
@@ -21478,7 +21859,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21478
21859
  /**
21479
21860
  * EmployeeEngagement service.
21480
21861
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
21481
- * @version 209.0.0
21862
+ * @version 211.0.0
21482
21863
  */
21483
21864
 
21484
21865
  /**
@@ -21629,7 +22010,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21629
22010
  /**
21630
22011
  * Events service.
21631
22012
  * @module purecloud-platform-client-v2/api/EventsApi
21632
- * @version 209.0.0
22013
+ * @version 211.0.0
21633
22014
  */
21634
22015
 
21635
22016
  /**
@@ -21725,7 +22106,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21725
22106
  /**
21726
22107
  * ExternalContacts service.
21727
22108
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
21728
- * @version 209.0.0
22109
+ * @version 211.0.0
21729
22110
  */
21730
22111
 
21731
22112
  /**
@@ -21870,6 +22251,31 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21870
22251
  );
21871
22252
  }
21872
22253
 
22254
+ /**
22255
+ * Delete Settings
22256
+ *
22257
+ * @param {String} settingsId Settings id
22258
+ */
22259
+ deleteExternalcontactsImportSetting(settingsId) {
22260
+ // verify the required parameter 'settingsId' is set
22261
+ if (settingsId === undefined || settingsId === null) {
22262
+ throw 'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportSetting';
22263
+ }
22264
+
22265
+ return this.apiClient.callApi(
22266
+ '/api/v2/externalcontacts/import/settings/{settingsId}',
22267
+ 'DELETE',
22268
+ { 'settingsId': settingsId },
22269
+ { },
22270
+ { },
22271
+ { },
22272
+ null,
22273
+ ['PureCloud OAuth'],
22274
+ ['application/json'],
22275
+ ['application/json']
22276
+ );
22277
+ }
22278
+
21873
22279
  /**
21874
22280
  * Delete an external organization
21875
22281
  *
@@ -22436,6 +22842,110 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
22436
22842
  );
22437
22843
  }
22438
22844
 
22845
+ /**
22846
+ * Get job based on id
22847
+ *
22848
+ * @param {String} jobId Job id
22849
+ */
22850
+ getExternalcontactsImportJob(jobId) {
22851
+ // verify the required parameter 'jobId' is set
22852
+ if (jobId === undefined || jobId === null) {
22853
+ throw 'Missing the required parameter "jobId" when calling getExternalcontactsImportJob';
22854
+ }
22855
+
22856
+ return this.apiClient.callApi(
22857
+ '/api/v2/externalcontacts/import/jobs/{jobId}',
22858
+ 'GET',
22859
+ { 'jobId': jobId },
22860
+ { },
22861
+ { },
22862
+ { },
22863
+ null,
22864
+ ['PureCloud OAuth'],
22865
+ ['application/json'],
22866
+ ['application/json']
22867
+ );
22868
+ }
22869
+
22870
+ /**
22871
+ * List jobs for organization
22872
+ *
22873
+ * @param {Object} opts Optional parameters
22874
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22875
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100. (default to 25)
22876
+ * @param {Object} opts.sortOrder Direction of sorting. (default to Ascending)
22877
+ * @param {Object} opts.jobStatus Search term to filter by jobStatus
22878
+ */
22879
+ getExternalcontactsImportJobs(opts) {
22880
+ opts = opts || {};
22881
+
22882
+
22883
+ return this.apiClient.callApi(
22884
+ '/api/v2/externalcontacts/import/jobs',
22885
+ 'GET',
22886
+ { },
22887
+ { 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'jobStatus': opts['jobStatus'] },
22888
+ { },
22889
+ { },
22890
+ null,
22891
+ ['PureCloud OAuth'],
22892
+ ['application/json'],
22893
+ ['application/json']
22894
+ );
22895
+ }
22896
+
22897
+ /**
22898
+ * Get setting based on id
22899
+ *
22900
+ * @param {String} settingsId Settings id
22901
+ */
22902
+ getExternalcontactsImportSetting(settingsId) {
22903
+ // verify the required parameter 'settingsId' is set
22904
+ if (settingsId === undefined || settingsId === null) {
22905
+ throw 'Missing the required parameter "settingsId" when calling getExternalcontactsImportSetting';
22906
+ }
22907
+
22908
+ return this.apiClient.callApi(
22909
+ '/api/v2/externalcontacts/import/settings/{settingsId}',
22910
+ 'GET',
22911
+ { 'settingsId': settingsId },
22912
+ { },
22913
+ { },
22914
+ { },
22915
+ null,
22916
+ ['PureCloud OAuth'],
22917
+ ['application/json'],
22918
+ ['application/json']
22919
+ );
22920
+ }
22921
+
22922
+ /**
22923
+ * List settings for organization
22924
+ *
22925
+ * @param {Object} opts Optional parameters
22926
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22927
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100. (default to 25)
22928
+ * @param {Object} opts.sortOrder Direction of sorting. (default to Ascending)
22929
+ * @param {String} opts.name Search term to filter by settings name
22930
+ */
22931
+ getExternalcontactsImportSettings(opts) {
22932
+ opts = opts || {};
22933
+
22934
+
22935
+ return this.apiClient.callApi(
22936
+ '/api/v2/externalcontacts/import/settings',
22937
+ 'GET',
22938
+ { },
22939
+ { 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'name': opts['name'] },
22940
+ { },
22941
+ { },
22942
+ null,
22943
+ ['PureCloud OAuth'],
22944
+ ['application/json'],
22945
+ ['application/json']
22946
+ );
22947
+ }
22948
+
22439
22949
  /**
22440
22950
  * Fetch an external organization
22441
22951
  *
@@ -23574,6 +24084,56 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
23574
24084
  );
23575
24085
  }
23576
24086
 
24087
+ /**
24088
+ * Create a new job
24089
+ *
24090
+ * @param {Object} body Job
24091
+ */
24092
+ postExternalcontactsImportJobs(body) {
24093
+ // verify the required parameter 'body' is set
24094
+ if (body === undefined || body === null) {
24095
+ throw 'Missing the required parameter "body" when calling postExternalcontactsImportJobs';
24096
+ }
24097
+
24098
+ return this.apiClient.callApi(
24099
+ '/api/v2/externalcontacts/import/jobs',
24100
+ 'POST',
24101
+ { },
24102
+ { },
24103
+ { },
24104
+ { },
24105
+ body,
24106
+ ['PureCloud OAuth'],
24107
+ ['application/json'],
24108
+ ['application/json']
24109
+ );
24110
+ }
24111
+
24112
+ /**
24113
+ * Create a new settings
24114
+ *
24115
+ * @param {Object} body Setting
24116
+ */
24117
+ postExternalcontactsImportSettings(body) {
24118
+ // verify the required parameter 'body' is set
24119
+ if (body === undefined || body === null) {
24120
+ throw 'Missing the required parameter "body" when calling postExternalcontactsImportSettings';
24121
+ }
24122
+
24123
+ return this.apiClient.callApi(
24124
+ '/api/v2/externalcontacts/import/settings',
24125
+ 'POST',
24126
+ { },
24127
+ { },
24128
+ { },
24129
+ { },
24130
+ body,
24131
+ ['PureCloud OAuth'],
24132
+ ['application/json'],
24133
+ ['application/json']
24134
+ );
24135
+ }
24136
+
23577
24137
  /**
23578
24138
  * Merge two contacts into a new contact record
23579
24139
  * Two curated contacts cannot be merged. Refer to the Contact Merging article on the Developer Center for details
@@ -23889,6 +24449,66 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
23889
24449
  );
23890
24450
  }
23891
24451
 
24452
+ /**
24453
+ * Update Job's workflow status
24454
+ *
24455
+ * @param {String} jobId Job id
24456
+ * @param {Object} body Status of the Job's workflow
24457
+ */
24458
+ putExternalcontactsImportJob(jobId, body) {
24459
+ // verify the required parameter 'jobId' is set
24460
+ if (jobId === undefined || jobId === null) {
24461
+ throw 'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';
24462
+ }
24463
+ // verify the required parameter 'body' is set
24464
+ if (body === undefined || body === null) {
24465
+ throw 'Missing the required parameter "body" when calling putExternalcontactsImportJob';
24466
+ }
24467
+
24468
+ return this.apiClient.callApi(
24469
+ '/api/v2/externalcontacts/import/jobs/{jobId}',
24470
+ 'PUT',
24471
+ { 'jobId': jobId },
24472
+ { },
24473
+ { },
24474
+ { },
24475
+ body,
24476
+ ['PureCloud OAuth'],
24477
+ ['application/json'],
24478
+ ['application/json']
24479
+ );
24480
+ }
24481
+
24482
+ /**
24483
+ * Update settings
24484
+ *
24485
+ * @param {String} settingsId Settings id
24486
+ * @param {Object} body Setting
24487
+ */
24488
+ putExternalcontactsImportSetting(settingsId, body) {
24489
+ // verify the required parameter 'settingsId' is set
24490
+ if (settingsId === undefined || settingsId === null) {
24491
+ throw 'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';
24492
+ }
24493
+ // verify the required parameter 'body' is set
24494
+ if (body === undefined || body === null) {
24495
+ throw 'Missing the required parameter "body" when calling putExternalcontactsImportSetting';
24496
+ }
24497
+
24498
+ return this.apiClient.callApi(
24499
+ '/api/v2/externalcontacts/import/settings/{settingsId}',
24500
+ 'PUT',
24501
+ { 'settingsId': settingsId },
24502
+ { },
24503
+ { },
24504
+ { },
24505
+ body,
24506
+ ['PureCloud OAuth'],
24507
+ ['application/json'],
24508
+ ['application/json']
24509
+ );
24510
+ }
24511
+
23892
24512
  /**
23893
24513
  * Update an external organization
23894
24514
  *
@@ -24050,7 +24670,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
24050
24670
  /**
24051
24671
  * Fax service.
24052
24672
  * @module purecloud-platform-client-v2/api/FaxApi
24053
- * @version 209.0.0
24673
+ * @version 211.0.0
24054
24674
  */
24055
24675
 
24056
24676
  /**
@@ -24265,7 +24885,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
24265
24885
  /**
24266
24886
  * Flows service.
24267
24887
  * @module purecloud-platform-client-v2/api/FlowsApi
24268
- * @version 209.0.0
24888
+ * @version 211.0.0
24269
24889
  */
24270
24890
 
24271
24891
  /**
@@ -24448,7 +25068,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
24448
25068
  /**
24449
25069
  * Gamification service.
24450
25070
  * @module purecloud-platform-client-v2/api/GamificationApi
24451
- * @version 209.0.0
25071
+ * @version 211.0.0
24452
25072
  */
24453
25073
 
24454
25074
  /**
@@ -26534,7 +27154,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
26534
27154
  /**
26535
27155
  * GeneralDataProtectionRegulation service.
26536
27156
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
26537
- * @version 209.0.0
27157
+ * @version 211.0.0
26538
27158
  */
26539
27159
 
26540
27160
  /**
@@ -26664,7 +27284,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
26664
27284
  /**
26665
27285
  * Geolocation service.
26666
27286
  * @module purecloud-platform-client-v2/api/GeolocationApi
26667
- * @version 209.0.0
27287
+ * @version 211.0.0
26668
27288
  */
26669
27289
 
26670
27290
  /**
@@ -26795,7 +27415,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
26795
27415
  /**
26796
27416
  * Greetings service.
26797
27417
  * @module purecloud-platform-client-v2/api/GreetingsApi
26798
- * @version 209.0.0
27418
+ * @version 211.0.0
26799
27419
  */
26800
27420
 
26801
27421
  /**
@@ -27250,7 +27870,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
27250
27870
  /**
27251
27871
  * Groups service.
27252
27872
  * @module purecloud-platform-client-v2/api/GroupsApi
27253
- * @version 209.0.0
27873
+ * @version 211.0.0
27254
27874
  */
27255
27875
 
27256
27876
  /**
@@ -27769,7 +28389,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
27769
28389
  /**
27770
28390
  * IdentityProvider service.
27771
28391
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
27772
- * @version 209.0.0
28392
+ * @version 211.0.0
27773
28393
  */
27774
28394
 
27775
28395
  /**
@@ -28630,7 +29250,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
28630
29250
  /**
28631
29251
  * InfrastructureAsCode service.
28632
29252
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
28633
- * @version 209.0.0
29253
+ * @version 211.0.0
28634
29254
  */
28635
29255
 
28636
29256
  /**
@@ -28797,7 +29417,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
28797
29417
  /**
28798
29418
  * Integrations service.
28799
29419
  * @module purecloud-platform-client-v2/api/IntegrationsApi
28800
- * @version 209.0.0
29420
+ * @version 211.0.0
28801
29421
  */
28802
29422
 
28803
29423
  /**
@@ -31239,7 +31859,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
31239
31859
  /**
31240
31860
  * Journey service.
31241
31861
  * @module purecloud-platform-client-v2/api/JourneyApi
31242
- * @version 209.0.0
31862
+ * @version 211.0.0
31243
31863
  */
31244
31864
 
31245
31865
  /**
@@ -31410,7 +32030,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
31410
32030
 
31411
32031
  /**
31412
32032
  * Delete the Schedule of a JourneyView
31413
- * used for long descriptions
32033
+ *
31414
32034
  * @param {String} viewId Journey View Id
31415
32035
  */
31416
32036
  deleteJourneyViewSchedules(viewId) {
@@ -32083,7 +32703,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
32083
32703
 
32084
32704
  /**
32085
32705
  * Get the Schedule for a JourneyView
32086
- * used for long descriptions
32706
+ *
32087
32707
  * @param {String} viewId Journey View Id
32088
32708
  */
32089
32709
  getJourneyViewSchedules(viewId) {
@@ -32213,7 +32833,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
32213
32833
 
32214
32834
  /**
32215
32835
  * Get the job for a journey view version.
32216
- * used for long descriptions
32836
+ *
32217
32837
  * @param {String} viewId Journey View Id
32218
32838
  * @param {String} journeyVersionId Journey View Version
32219
32839
  * @param {String} jobId JobId
@@ -32248,7 +32868,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
32248
32868
 
32249
32869
  /**
32250
32870
  * Get the result of a job for a journey view version.
32251
- * used for long descriptions
32871
+ *
32252
32872
  * @param {String} viewId JourneyViewResult id
32253
32873
  * @param {String} journeyViewVersion Journey View Version
32254
32874
  * @param {String} jobId Id of the executing job
@@ -32323,7 +32943,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
32323
32943
 
32324
32944
  /**
32325
32945
  * Get the latest job of a journey view version.
32326
- * used for long descriptions
32946
+ *
32327
32947
  * @param {String} viewId Journey View Id
32328
32948
  * @param {String} journeyVersionId Journey View Version
32329
32949
  */
@@ -32623,7 +33243,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
32623
33243
 
32624
33244
  /**
32625
33245
  * Update the job for a journey view version. Only the status can be changed and only to Cancelled
32626
- * used for long descriptions
33246
+ *
32627
33247
  * @param {String} viewId Journey View Id
32628
33248
  * @param {String} journeyVersionId Journey View Version
32629
33249
  * @param {String} jobId JobId
@@ -33026,7 +33646,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
33026
33646
 
33027
33647
  /**
33028
33648
  * Submit a job request for a journey view version.
33029
- * used for long descriptions
33649
+ *
33030
33650
  * @param {String} viewId Journey View Id
33031
33651
  * @param {String} journeyVersionId Journey View Version
33032
33652
  */
@@ -33135,7 +33755,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
33135
33755
 
33136
33756
  /**
33137
33757
  * Update the Schedule for a JourneyView
33138
- * used for long descriptions
33758
+ *
33139
33759
  * @param {String} viewId Journey View Id
33140
33760
  * @param {Object} body journeyViewSchedule
33141
33761
  */
@@ -33204,7 +33824,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
33204
33824
  /**
33205
33825
  * Knowledge service.
33206
33826
  * @module purecloud-platform-client-v2/api/KnowledgeApi
33207
- * @version 209.0.0
33827
+ * @version 211.0.0
33208
33828
  */
33209
33829
 
33210
33830
  /**
@@ -37080,7 +37700,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
37080
37700
  /**
37081
37701
  * LanguageUnderstanding service.
37082
37702
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
37083
- * @version 209.0.0
37703
+ * @version 211.0.0
37084
37704
  */
37085
37705
 
37086
37706
  /**
@@ -38114,7 +38734,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
38114
38734
  /**
38115
38735
  * Languages service.
38116
38736
  * @module purecloud-platform-client-v2/api/LanguagesApi
38117
- * @version 209.0.0
38737
+ * @version 211.0.0
38118
38738
  */
38119
38739
 
38120
38740
  /**
@@ -38336,7 +38956,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
38336
38956
  /**
38337
38957
  * Learning service.
38338
38958
  * @module purecloud-platform-client-v2/api/LearningApi
38339
- * @version 209.0.0
38959
+ * @version 211.0.0
38340
38960
  */
38341
38961
 
38342
38962
  /**
@@ -39365,7 +39985,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
39365
39985
  /**
39366
39986
  * License service.
39367
39987
  * @module purecloud-platform-client-v2/api/LicenseApi
39368
- * @version 209.0.0
39988
+ * @version 211.0.0
39369
39989
  */
39370
39990
 
39371
39991
  /**
@@ -39603,7 +40223,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
39603
40223
  /**
39604
40224
  * Locations service.
39605
40225
  * @module purecloud-platform-client-v2/api/LocationsApi
39606
- * @version 209.0.0
40226
+ * @version 211.0.0
39607
40227
  */
39608
40228
 
39609
40229
  /**
@@ -39839,7 +40459,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
39839
40459
  /**
39840
40460
  * LogCapture service.
39841
40461
  * @module purecloud-platform-client-v2/api/LogCaptureApi
39842
- * @version 209.0.0
40462
+ * @version 211.0.0
39843
40463
  */
39844
40464
 
39845
40465
  /**
@@ -40039,7 +40659,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40039
40659
  /**
40040
40660
  * Messaging service.
40041
40661
  * @module purecloud-platform-client-v2/api/MessagingApi
40042
- * @version 209.0.0
40662
+ * @version 211.0.0
40043
40663
  */
40044
40664
 
40045
40665
  /**
@@ -40398,7 +41018,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40398
41018
  /**
40399
41019
  * MobileDevices service.
40400
41020
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
40401
- * @version 209.0.0
41021
+ * @version 211.0.0
40402
41022
  */
40403
41023
 
40404
41024
  /**
@@ -40549,7 +41169,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40549
41169
  /**
40550
41170
  * Notifications service.
40551
41171
  * @module purecloud-platform-client-v2/api/NotificationsApi
40552
- * @version 209.0.0
41172
+ * @version 211.0.0
40553
41173
  */
40554
41174
 
40555
41175
  /**
@@ -40782,7 +41402,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
40782
41402
  /**
40783
41403
  * OAuth service.
40784
41404
  * @module purecloud-platform-client-v2/api/OAuthApi
40785
- * @version 209.0.0
41405
+ * @version 211.0.0
40786
41406
  */
40787
41407
 
40788
41408
  /**
@@ -41148,7 +41768,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41148
41768
  /**
41149
41769
  * Objects service.
41150
41770
  * @module purecloud-platform-client-v2/api/ObjectsApi
41151
- * @version 209.0.0
41771
+ * @version 211.0.0
41152
41772
  */
41153
41773
 
41154
41774
  /**
@@ -41418,7 +42038,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41418
42038
  /**
41419
42039
  * OperationalEvents service.
41420
42040
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
41421
- * @version 209.0.0
42041
+ * @version 211.0.0
41422
42042
  */
41423
42043
 
41424
42044
  /**
@@ -41535,7 +42155,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41535
42155
  /**
41536
42156
  * Organization service.
41537
42157
  * @module purecloud-platform-client-v2/api/OrganizationApi
41538
- * @version 209.0.0
42158
+ * @version 211.0.0
41539
42159
  */
41540
42160
 
41541
42161
  /**
@@ -42077,7 +42697,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
42077
42697
  /**
42078
42698
  * OrganizationAuthorization service.
42079
42699
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
42080
- * @version 209.0.0
42700
+ * @version 211.0.0
42081
42701
  */
42082
42702
 
42083
42703
  /**
@@ -43471,7 +44091,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
43471
44091
  /**
43472
44092
  * Outbound service.
43473
44093
  * @module purecloud-platform-client-v2/api/OutboundApi
43474
- * @version 209.0.0
44094
+ * @version 211.0.0
43475
44095
  */
43476
44096
 
43477
44097
  /**
@@ -48018,7 +48638,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
48018
48638
  /**
48019
48639
  * Presence service.
48020
48640
  * @module purecloud-platform-client-v2/api/PresenceApi
48021
- * @version 209.0.0
48641
+ * @version 211.0.0
48022
48642
  */
48023
48643
 
48024
48644
  /**
@@ -48762,7 +49382,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
48762
49382
  /**
48763
49383
  * ProcessAutomation service.
48764
49384
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
48765
- * @version 209.0.0
49385
+ * @version 211.0.0
48766
49386
  */
48767
49387
 
48768
49388
  /**
@@ -49001,7 +49621,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
49001
49621
  /**
49002
49622
  * Quality service.
49003
49623
  * @module purecloud-platform-client-v2/api/QualityApi
49004
- * @version 209.0.0
49624
+ * @version 211.0.0
49005
49625
  */
49006
49626
 
49007
49627
  /**
@@ -50789,7 +51409,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
50789
51409
  /**
50790
51410
  * Recording service.
50791
51411
  * @module purecloud-platform-client-v2/api/RecordingApi
50792
- * @version 209.0.0
51412
+ * @version 211.0.0
50793
51413
  */
50794
51414
 
50795
51415
  /**
@@ -52448,7 +53068,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
52448
53068
  /**
52449
53069
  * ResponseManagement service.
52450
53070
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
52451
- * @version 209.0.0
53071
+ * @version 211.0.0
52452
53072
  */
52453
53073
 
52454
53074
  /**
@@ -52958,7 +53578,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
52958
53578
  /**
52959
53579
  * Routing service.
52960
53580
  * @module purecloud-platform-client-v2/api/RoutingApi
52961
- * @version 209.0.0
53581
+ * @version 211.0.0
52962
53582
  */
52963
53583
 
52964
53584
  /**
@@ -57110,7 +57730,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
57110
57730
  /**
57111
57731
  * SCIM service.
57112
57732
  * @module purecloud-platform-client-v2/api/SCIMApi
57113
- * @version 209.0.0
57733
+ * @version 211.0.0
57114
57734
  */
57115
57735
 
57116
57736
  /**
@@ -57987,7 +58607,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
57987
58607
  /**
57988
58608
  * ScreenRecording service.
57989
58609
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
57990
- * @version 209.0.0
58610
+ * @version 211.0.0
57991
58611
  */
57992
58612
 
57993
58613
  /**
@@ -58032,7 +58652,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
58032
58652
  /**
58033
58653
  * Scripts service.
58034
58654
  * @module purecloud-platform-client-v2/api/ScriptsApi
58035
- * @version 209.0.0
58655
+ * @version 211.0.0
58036
58656
  */
58037
58657
 
58038
58658
  /**
@@ -58476,7 +59096,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
58476
59096
  /**
58477
59097
  * Search service.
58478
59098
  * @module purecloud-platform-client-v2/api/SearchApi
58479
- * @version 209.0.0
59099
+ * @version 211.0.0
58480
59100
  */
58481
59101
 
58482
59102
  /**
@@ -59219,7 +59839,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
59219
59839
  /**
59220
59840
  * Settings service.
59221
59841
  * @module purecloud-platform-client-v2/api/SettingsApi
59222
- * @version 209.0.0
59842
+ * @version 211.0.0
59223
59843
  */
59224
59844
 
59225
59845
  /**
@@ -59439,7 +60059,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
59439
60059
  /**
59440
60060
  * SocialMedia service.
59441
60061
  * @module purecloud-platform-client-v2/api/SocialMediaApi
59442
- * @version 209.0.0
60062
+ * @version 211.0.0
59443
60063
  */
59444
60064
 
59445
60065
  /**
@@ -60344,7 +60964,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
60344
60964
  /**
60345
60965
  * SpeechTextAnalytics service.
60346
60966
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
60347
- * @version 209.0.0
60967
+ * @version 211.0.0
60348
60968
  */
60349
60969
 
60350
60970
  /**
@@ -61679,7 +62299,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
61679
62299
  /**
61680
62300
  * Stations service.
61681
62301
  * @module purecloud-platform-client-v2/api/StationsApi
61682
- * @version 209.0.0
62302
+ * @version 211.0.0
61683
62303
  */
61684
62304
 
61685
62305
  /**
@@ -61781,7 +62401,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
61781
62401
  /**
61782
62402
  * Suggest service.
61783
62403
  * @module purecloud-platform-client-v2/api/SuggestApi
61784
- * @version 209.0.0
62404
+ * @version 211.0.0
61785
62405
  */
61786
62406
 
61787
62407
  /**
@@ -61920,7 +62540,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
61920
62540
  /**
61921
62541
  * TaskManagement service.
61922
62542
  * @module purecloud-platform-client-v2/api/TaskManagementApi
61923
- * @version 209.0.0
62543
+ * @version 211.0.0
61924
62544
  */
61925
62545
 
61926
62546
  /**
@@ -63584,7 +64204,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
63584
64204
  /**
63585
64205
  * Teams service.
63586
64206
  * @module purecloud-platform-client-v2/api/TeamsApi
63587
- * @version 209.0.0
64207
+ * @version 211.0.0
63588
64208
  */
63589
64209
 
63590
64210
  /**
@@ -63889,7 +64509,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
63889
64509
  /**
63890
64510
  * Telephony service.
63891
64511
  * @module purecloud-platform-client-v2/api/TelephonyApi
63892
- * @version 209.0.0
64512
+ * @version 211.0.0
63893
64513
  */
63894
64514
 
63895
64515
  /**
@@ -64071,7 +64691,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
64071
64691
  /**
64072
64692
  * TelephonyProvidersEdge service.
64073
64693
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
64074
- * @version 209.0.0
64694
+ * @version 211.0.0
64075
64695
  */
64076
64696
 
64077
64697
  /**
@@ -67522,7 +68142,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
67522
68142
  /**
67523
68143
  * Textbots service.
67524
68144
  * @module purecloud-platform-client-v2/api/TextbotsApi
67525
- * @version 209.0.0
68145
+ * @version 211.0.0
67526
68146
  */
67527
68147
 
67528
68148
  /**
@@ -67650,7 +68270,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
67650
68270
  /**
67651
68271
  * Tokens service.
67652
68272
  * @module purecloud-platform-client-v2/api/TokensApi
67653
- * @version 209.0.0
68273
+ * @version 211.0.0
67654
68274
  */
67655
68275
 
67656
68276
  /**
@@ -67804,7 +68424,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
67804
68424
  /**
67805
68425
  * Uploads service.
67806
68426
  * @module purecloud-platform-client-v2/api/UploadsApi
67807
- * @version 209.0.0
68427
+ * @version 211.0.0
67808
68428
  */
67809
68429
 
67810
68430
  /**
@@ -68073,7 +68693,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68073
68693
  /**
68074
68694
  * Usage service.
68075
68695
  * @module purecloud-platform-client-v2/api/UsageApi
68076
- * @version 209.0.0
68696
+ * @version 211.0.0
68077
68697
  */
68078
68698
 
68079
68699
  /**
@@ -68288,7 +68908,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68288
68908
  /**
68289
68909
  * UserRecordings service.
68290
68910
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
68291
- * @version 209.0.0
68911
+ * @version 211.0.0
68292
68912
  */
68293
68913
 
68294
68914
  /**
@@ -68503,7 +69123,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
68503
69123
  /**
68504
69124
  * Users service.
68505
69125
  * @module purecloud-platform-client-v2/api/UsersApi
68506
- * @version 209.0.0
69126
+ * @version 211.0.0
68507
69127
  */
68508
69128
 
68509
69129
  /**
@@ -71332,7 +71952,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
71332
71952
  /**
71333
71953
  * Utilities service.
71334
71954
  * @module purecloud-platform-client-v2/api/UtilitiesApi
71335
- * @version 209.0.0
71955
+ * @version 211.0.0
71336
71956
  */
71337
71957
 
71338
71958
  /**
@@ -71443,7 +72063,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
71443
72063
  /**
71444
72064
  * Voicemail service.
71445
72065
  * @module purecloud-platform-client-v2/api/VoicemailApi
71446
- * @version 209.0.0
72066
+ * @version 211.0.0
71447
72067
  */
71448
72068
 
71449
72069
  /**
@@ -72165,7 +72785,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
72165
72785
  /**
72166
72786
  * WebChat service.
72167
72787
  * @module purecloud-platform-client-v2/api/WebChatApi
72168
- * @version 209.0.0
72788
+ * @version 211.0.0
72169
72789
  */
72170
72790
 
72171
72791
  /**
@@ -72716,7 +73336,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
72716
73336
  /**
72717
73337
  * WebDeployments service.
72718
73338
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
72719
- * @version 209.0.0
73339
+ * @version 211.0.0
72720
73340
  */
72721
73341
 
72722
73342
  /**
@@ -73243,7 +73863,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
73243
73863
  /**
73244
73864
  * WebMessaging service.
73245
73865
  * @module purecloud-platform-client-v2/api/WebMessagingApi
73246
- * @version 209.0.0
73866
+ * @version 211.0.0
73247
73867
  */
73248
73868
 
73249
73869
  /**
@@ -73289,7 +73909,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
73289
73909
  /**
73290
73910
  * Widgets service.
73291
73911
  * @module purecloud-platform-client-v2/api/WidgetsApi
73292
- * @version 209.0.0
73912
+ * @version 211.0.0
73293
73913
  */
73294
73914
 
73295
73915
  /**
@@ -73435,7 +74055,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
73435
74055
  /**
73436
74056
  * WorkforceManagement service.
73437
74057
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
73438
- * @version 209.0.0
74058
+ * @version 211.0.0
73439
74059
  */
73440
74060
 
73441
74061
  /**
@@ -76335,12 +76955,8 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
76335
76955
  *
76336
76956
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
76337
76957
  * @param {String} userId The userId to whom the Time Off Request applies.
76338
- * @param {Object} opts Optional parameters
76339
- * @param {Boolean} opts.recentlyReviewed Limit results to requests that have been reviewed within the preceding 30 days (default to false)
76340
76958
  */
76341
- getWorkforcemanagementManagementunitUserTimeoffrequests(managementUnitId, userId, opts) {
76342
- opts = opts || {};
76343
-
76959
+ getWorkforcemanagementManagementunitUserTimeoffrequests(managementUnitId, userId) {
76344
76960
  // verify the required parameter 'managementUnitId' is set
76345
76961
  if (managementUnitId === undefined || managementUnitId === null) {
76346
76962
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';
@@ -76354,7 +76970,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
76354
76970
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests',
76355
76971
  'GET',
76356
76972
  { 'managementUnitId': managementUnitId,'userId': userId },
76357
- { 'recentlyReviewed': opts['recentlyReviewed'] },
76973
+ { },
76358
76974
  { },
76359
76975
  { },
76360
76976
  null,
@@ -76845,18 +77461,14 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
76845
77461
  /**
76846
77462
  * Get a list of time off requests for the current user
76847
77463
  *
76848
- * @param {Object} opts Optional parameters
76849
- * @param {Boolean} opts.recentlyReviewed Limit results to requests that have been reviewed within the preceding 30 days (default to false)
76850
77464
  */
76851
- getWorkforcemanagementTimeoffrequests(opts) {
76852
- opts = opts || {};
76853
-
77465
+ getWorkforcemanagementTimeoffrequests() {
76854
77466
 
76855
77467
  return this.apiClient.callApi(
76856
77468
  '/api/v2/workforcemanagement/timeoffrequests',
76857
77469
  'GET',
76858
77470
  { },
76859
- { 'recentlyReviewed': opts['recentlyReviewed'] },
77471
+ { },
76860
77472
  { },
76861
77473
  { },
76862
77474
  null,
@@ -80649,7 +81261,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
80649
81261
  * </pre>
80650
81262
  * </p>
80651
81263
  * @module purecloud-platform-client-v2/index
80652
- * @version 209.0.0
81264
+ * @version 211.0.0
80653
81265
  */
80654
81266
  class platformClient {
80655
81267
  constructor() {
@@ -80738,6 +81350,11 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
80738
81350
  * @property {module:purecloud-platform-client-v2/api/DataExtensionsApi}
80739
81351
  */
80740
81352
  this.DataExtensionsApi = DataExtensionsApi;
81353
+ /**
81354
+ * The DataPrivacyApi service constructor.
81355
+ * @property {module:purecloud-platform-client-v2/api/DataPrivacyApi}
81356
+ */
81357
+ this.DataPrivacyApi = DataPrivacyApi;
80741
81358
  /**
80742
81359
  * The DownloadsApi service constructor.
80743
81360
  * @property {module:purecloud-platform-client-v2/api/DownloadsApi}