purecloud-platform-client-v2 158.0.0 → 160.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 (78) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +637 -185
  3. package/dist/web-amd/purecloud-platform-client-v2.js +637 -185
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +637 -185
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +7146 -481
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +444 -169
  9. package/package.json +3 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +16 -4
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +27 -2
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +107 -0
  34. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/JourneyApi.js +95 -1
  36. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +2 -3
  37. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/LearningApi.js +55 -1
  40. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +13 -5
  45. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/OutboundApi.js +60 -1
  50. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/QualityApi.js +5 -4
  53. package/src/purecloud-platform-client-v2/api/RecordingApi.js +2 -102
  54. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/RoutingApi.js +38 -3
  56. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/SearchApi.js +26 -1
  59. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +76 -1
  60. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +3 -2
  65. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/UsersApi.js +32 -1
  71. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +26 -1
  78. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -400,9 +400,11 @@ class Configuration {
400
400
  }
401
401
  }
402
402
 
403
+ const { HttpsProxyAgent } = require('hpagent');
404
+
403
405
  /**
404
406
  * @module purecloud-platform-client-v2/ApiClient
405
- * @version 158.0.0
407
+ * @version 160.0.0
406
408
  */
407
409
  class ApiClient {
408
410
  /**
@@ -671,16 +673,21 @@ class ApiClient {
671
673
  reject(new Error('The client credentials grant is not supported in a browser.'));
672
674
  return;
673
675
  }
674
-
675
676
  const headers = {
676
677
  'Authorization': `Basic ${authHeader}`
677
678
  };
679
+ let httpsAgent;
680
+ if (this.proxy !== undefined){
681
+ httpsAgent = new HttpsProxyAgent({
682
+ proxy : `${this.proxy.protocol}://${this.proxy.host}:${this.proxy.port}`
683
+ });
684
+ }
678
685
  axios__default["default"]({
679
686
  method: `POST`,
680
687
  url: `https://login.${this.config.environment}/oauth/token`,
681
688
  headers: headers,
682
689
  data: 'grant_type=client_credentials',
683
- proxy: this.proxy
690
+ httpsAgent: httpsAgent
684
691
  })
685
692
  .then((response) => {
686
693
  // Logging
@@ -1377,10 +1384,16 @@ class ApiClient {
1377
1384
  sendRequest(this);
1378
1385
  function sendRequest(that) {
1379
1386
  var url = that.buildUrl(path, pathParams);
1387
+ let httpsAgent;
1388
+ if (that.proxy !== undefined){
1389
+ httpsAgent = new HttpsProxyAgent({
1390
+ proxy : `${that.proxy.protocol}://${that.proxy.host}:${that.proxy.port}`
1391
+ });
1392
+ }
1380
1393
  var request = {
1381
1394
  method: httpMethod,
1382
1395
  url: url,
1383
- proxy: that.proxy,
1396
+ httpsAgent: httpsAgent,
1384
1397
  timeout: that.timeout,
1385
1398
  params: that.serialize(queryParams)
1386
1399
  };
@@ -1481,7 +1494,7 @@ class AlertingApi {
1481
1494
  /**
1482
1495
  * Alerting service.
1483
1496
  * @module purecloud-platform-client-v2/api/AlertingApi
1484
- * @version 158.0.0
1497
+ * @version 160.0.0
1485
1498
  */
1486
1499
 
1487
1500
  /**
@@ -1795,7 +1808,7 @@ class AnalyticsApi {
1795
1808
  /**
1796
1809
  * Analytics service.
1797
1810
  * @module purecloud-platform-client-v2/api/AnalyticsApi
1798
- * @version 158.0.0
1811
+ * @version 160.0.0
1799
1812
  */
1800
1813
 
1801
1814
  /**
@@ -3049,7 +3062,7 @@ class ArchitectApi {
3049
3062
  /**
3050
3063
  * Architect service.
3051
3064
  * @module purecloud-platform-client-v2/api/ArchitectApi
3052
- * @version 158.0.0
3065
+ * @version 160.0.0
3053
3066
  */
3054
3067
 
3055
3068
  /**
@@ -6097,7 +6110,7 @@ class AuditApi {
6097
6110
  /**
6098
6111
  * Audit service.
6099
6112
  * @module purecloud-platform-client-v2/api/AuditApi
6100
- * @version 158.0.0
6113
+ * @version 160.0.0
6101
6114
  */
6102
6115
 
6103
6116
  /**
@@ -6268,7 +6281,7 @@ class AuthorizationApi {
6268
6281
  /**
6269
6282
  * Authorization service.
6270
6283
  * @module purecloud-platform-client-v2/api/AuthorizationApi
6271
- * @version 158.0.0
6284
+ * @version 160.0.0
6272
6285
  */
6273
6286
 
6274
6287
  /**
@@ -7496,7 +7509,7 @@ class BillingApi {
7496
7509
  /**
7497
7510
  * Billing service.
7498
7511
  * @module purecloud-platform-client-v2/api/BillingApi
7499
- * @version 158.0.0
7512
+ * @version 160.0.0
7500
7513
  */
7501
7514
 
7502
7515
  /**
@@ -7576,7 +7589,7 @@ class ChatApi {
7576
7589
  /**
7577
7590
  * Chat service.
7578
7591
  * @module purecloud-platform-client-v2/api/ChatApi
7579
- * @version 158.0.0
7592
+ * @version 160.0.0
7580
7593
  */
7581
7594
 
7582
7595
  /**
@@ -7667,7 +7680,7 @@ class CoachingApi {
7667
7680
  /**
7668
7681
  * Coaching service.
7669
7682
  * @module purecloud-platform-client-v2/api/CoachingApi
7670
- * @version 158.0.0
7683
+ * @version 160.0.0
7671
7684
  */
7672
7685
 
7673
7686
  /**
@@ -8244,7 +8257,7 @@ class ContentManagementApi {
8244
8257
  /**
8245
8258
  * ContentManagement service.
8246
8259
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8247
- * @version 158.0.0
8260
+ * @version 160.0.0
8248
8261
  */
8249
8262
 
8250
8263
  /**
@@ -9384,7 +9397,7 @@ class ConversationsApi {
9384
9397
  /**
9385
9398
  * Conversations service.
9386
9399
  * @module purecloud-platform-client-v2/api/ConversationsApi
9387
- * @version 158.0.0
9400
+ * @version 160.0.0
9388
9401
  */
9389
9402
 
9390
9403
  /**
@@ -12772,7 +12785,7 @@ class ConversationsApi {
12772
12785
  }
12773
12786
 
12774
12787
  /**
12775
- * Creates a cobrowse session
12788
+ * Creates a cobrowse session. Requires conversation:cobrowse:add (for web messaging) or conversation:cobrowsevoice:add permission.
12776
12789
  *
12777
12790
  * @param {String} conversationId Conversation ID
12778
12791
  */
@@ -14086,6 +14099,31 @@ class ConversationsApi {
14086
14099
  );
14087
14100
  }
14088
14101
 
14102
+ /**
14103
+ * Search conversations
14104
+ *
14105
+ * @param {Object} body Search request options
14106
+ */
14107
+ postConversationsParticipantsAttributesSearch(body) {
14108
+ // verify the required parameter 'body' is set
14109
+ if (body === undefined || body === null) {
14110
+ throw 'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';
14111
+ }
14112
+
14113
+ return this.apiClient.callApi(
14114
+ '/api/v2/conversations/participants/attributes/search',
14115
+ 'POST',
14116
+ { },
14117
+ { },
14118
+ { },
14119
+ { },
14120
+ body,
14121
+ ['PureCloud OAuth'],
14122
+ ['application/json'],
14123
+ ['application/json']
14124
+ );
14125
+ }
14126
+
14089
14127
  /**
14090
14128
  * Set flagged reason on conversation participant to indicate bad conversation quality.
14091
14129
  *
@@ -14632,7 +14670,7 @@ class DataExtensionsApi {
14632
14670
  /**
14633
14671
  * DataExtensions service.
14634
14672
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
14635
- * @version 158.0.0
14673
+ * @version 160.0.0
14636
14674
  */
14637
14675
 
14638
14676
  /**
@@ -14718,7 +14756,7 @@ class DownloadsApi {
14718
14756
  /**
14719
14757
  * Downloads service.
14720
14758
  * @module purecloud-platform-client-v2/api/DownloadsApi
14721
- * @version 158.0.0
14759
+ * @version 160.0.0
14722
14760
  */
14723
14761
 
14724
14762
  /**
@@ -14770,7 +14808,7 @@ class EventsApi {
14770
14808
  /**
14771
14809
  * Events service.
14772
14810
  * @module purecloud-platform-client-v2/api/EventsApi
14773
- * @version 158.0.0
14811
+ * @version 160.0.0
14774
14812
  */
14775
14813
 
14776
14814
  /**
@@ -14866,7 +14904,7 @@ class ExternalContactsApi {
14866
14904
  /**
14867
14905
  * ExternalContacts service.
14868
14906
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
14869
- * @version 158.0.0
14907
+ * @version 160.0.0
14870
14908
  */
14871
14909
 
14872
14910
  /**
@@ -16824,7 +16862,7 @@ class FaxApi {
16824
16862
  /**
16825
16863
  * Fax service.
16826
16864
  * @module purecloud-platform-client-v2/api/FaxApi
16827
- * @version 158.0.0
16865
+ * @version 160.0.0
16828
16866
  */
16829
16867
 
16830
16868
  /**
@@ -16995,7 +17033,7 @@ class FlowsApi {
16995
17033
  /**
16996
17034
  * Flows service.
16997
17035
  * @module purecloud-platform-client-v2/api/FlowsApi
16998
- * @version 158.0.0
17036
+ * @version 160.0.0
16999
17037
  */
17000
17038
 
17001
17039
  /**
@@ -17066,7 +17104,7 @@ class GamificationApi {
17066
17104
  /**
17067
17105
  * Gamification service.
17068
17106
  * @module purecloud-platform-client-v2/api/GamificationApi
17069
- * @version 158.0.0
17107
+ * @version 160.0.0
17070
17108
  */
17071
17109
 
17072
17110
  /**
@@ -18683,7 +18721,7 @@ class GeneralDataProtectionRegulationApi {
18683
18721
  /**
18684
18722
  * GeneralDataProtectionRegulation service.
18685
18723
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
18686
- * @version 158.0.0
18724
+ * @version 160.0.0
18687
18725
  */
18688
18726
 
18689
18727
  /**
@@ -18813,7 +18851,7 @@ class GeolocationApi {
18813
18851
  /**
18814
18852
  * Geolocation service.
18815
18853
  * @module purecloud-platform-client-v2/api/GeolocationApi
18816
- * @version 158.0.0
18854
+ * @version 160.0.0
18817
18855
  */
18818
18856
 
18819
18857
  /**
@@ -18944,7 +18982,7 @@ class GreetingsApi {
18944
18982
  /**
18945
18983
  * Greetings service.
18946
18984
  * @module purecloud-platform-client-v2/api/GreetingsApi
18947
- * @version 158.0.0
18985
+ * @version 160.0.0
18948
18986
  */
18949
18987
 
18950
18988
  /**
@@ -19399,7 +19437,7 @@ class GroupsApi {
19399
19437
  /**
19400
19438
  * Groups service.
19401
19439
  * @module purecloud-platform-client-v2/api/GroupsApi
19402
- * @version 158.0.0
19440
+ * @version 160.0.0
19403
19441
  */
19404
19442
 
19405
19443
  /**
@@ -19805,7 +19843,7 @@ class IdentityProviderApi {
19805
19843
  /**
19806
19844
  * IdentityProvider service.
19807
19845
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
19808
- * @version 158.0.0
19846
+ * @version 160.0.0
19809
19847
  */
19810
19848
 
19811
19849
  /**
@@ -20557,11 +20595,113 @@ class IdentityProviderApi {
20557
20595
 
20558
20596
  }
20559
20597
 
20598
+ class InfrastructureAsCodeApi {
20599
+ /**
20600
+ * InfrastructureAsCode service.
20601
+ * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
20602
+ * @version 160.0.0
20603
+ */
20604
+
20605
+ /**
20606
+ * Constructs a new InfrastructureAsCodeApi.
20607
+ * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
20608
+ * @class
20609
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
20610
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
20611
+ */
20612
+ constructor(apiClient) {
20613
+ this.apiClient = apiClient || ApiClient.instance;
20614
+ }
20615
+
20616
+
20617
+ /**
20618
+ * Get job status and results
20619
+ * Get the execution status of a submitted job, optionally including results and error details.
20620
+ * @param {String} jobId Job ID
20621
+ * @param {Object} opts Optional parameters
20622
+ * @param {Boolean} opts.details Include details of execution, including job results or error information (default to false)
20623
+ */
20624
+ getInfrastructureascodeJob(jobId, opts) {
20625
+ opts = opts || {};
20626
+
20627
+ // verify the required parameter 'jobId' is set
20628
+ if (jobId === undefined || jobId === null) {
20629
+ throw 'Missing the required parameter "jobId" when calling getInfrastructureascodeJob';
20630
+ }
20631
+
20632
+ return this.apiClient.callApi(
20633
+ '/api/v2/infrastructureascode/jobs/{jobId}',
20634
+ 'GET',
20635
+ { 'jobId': jobId },
20636
+ { 'details': opts['details'] },
20637
+ { },
20638
+ { },
20639
+ null,
20640
+ ['PureCloud OAuth'],
20641
+ ['application/json'],
20642
+ ['application/json']
20643
+ );
20644
+ }
20645
+
20646
+ /**
20647
+ * Get job history
20648
+ * Get a history of submitted jobs, optionally including error messages.
20649
+ * @param {Object} opts Optional parameters
20650
+ * @param {Number} opts.maxResults Number of jobs to show (default to 1)
20651
+ * @param {Boolean} opts.includeErrors Include error messages (default to false)
20652
+ * @param {Object} opts.sortBy Sort by (default to id)
20653
+ * @param {Object} opts.sortOrder Sort order (default to asc)
20654
+ */
20655
+ getInfrastructureascodeJobs(opts) {
20656
+ opts = opts || {};
20657
+
20658
+
20659
+ return this.apiClient.callApi(
20660
+ '/api/v2/infrastructureascode/jobs',
20661
+ 'GET',
20662
+ { },
20663
+ { 'maxResults': opts['maxResults'],'includeErrors': opts['includeErrors'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
20664
+ { },
20665
+ { },
20666
+ null,
20667
+ ['PureCloud OAuth'],
20668
+ ['application/json'],
20669
+ ['application/json']
20670
+ );
20671
+ }
20672
+
20673
+ /**
20674
+ * Create a Job
20675
+ * Create and submit a job for remote execution or see job planning results.
20676
+ * @param {Object} body
20677
+ */
20678
+ postInfrastructureascodeJobs(body) {
20679
+ // verify the required parameter 'body' is set
20680
+ if (body === undefined || body === null) {
20681
+ throw 'Missing the required parameter "body" when calling postInfrastructureascodeJobs';
20682
+ }
20683
+
20684
+ return this.apiClient.callApi(
20685
+ '/api/v2/infrastructureascode/jobs',
20686
+ 'POST',
20687
+ { },
20688
+ { },
20689
+ { },
20690
+ { },
20691
+ body,
20692
+ ['PureCloud OAuth'],
20693
+ ['application/json'],
20694
+ ['application/json']
20695
+ );
20696
+ }
20697
+
20698
+ }
20699
+
20560
20700
  class IntegrationsApi {
20561
20701
  /**
20562
20702
  * Integrations service.
20563
20703
  * @module purecloud-platform-client-v2/api/IntegrationsApi
20564
- * @version 158.0.0
20704
+ * @version 160.0.0
20565
20705
  */
20566
20706
 
20567
20707
  /**
@@ -22161,7 +22301,7 @@ class JourneyApi {
22161
22301
  /**
22162
22302
  * Journey service.
22163
22303
  * @module purecloud-platform-client-v2/api/JourneyApi
22164
- * @version 158.0.0
22304
+ * @version 160.0.0
22165
22305
  */
22166
22306
 
22167
22307
  /**
@@ -22255,6 +22395,31 @@ class JourneyApi {
22255
22395
  );
22256
22396
  }
22257
22397
 
22398
+ /**
22399
+ * Delete an outcome predictor.
22400
+ *
22401
+ * @param {String} predictorId ID of predictor
22402
+ */
22403
+ deleteJourneyOutcomesPredictor(predictorId) {
22404
+ // verify the required parameter 'predictorId' is set
22405
+ if (predictorId === undefined || predictorId === null) {
22406
+ throw 'Missing the required parameter "predictorId" when calling deleteJourneyOutcomesPredictor';
22407
+ }
22408
+
22409
+ return this.apiClient.callApi(
22410
+ '/api/v2/journey/outcomes/predictors/{predictorId}',
22411
+ 'DELETE',
22412
+ { 'predictorId': predictorId },
22413
+ { },
22414
+ { },
22415
+ { },
22416
+ null,
22417
+ ['PureCloud OAuth'],
22418
+ ['application/json'],
22419
+ ['application/json']
22420
+ );
22421
+ }
22422
+
22258
22423
  /**
22259
22424
  * Delete a segment.
22260
22425
  *
@@ -22545,6 +22710,51 @@ class JourneyApi {
22545
22710
  );
22546
22711
  }
22547
22712
 
22713
+ /**
22714
+ * Retrieve a single outcome predictor.
22715
+ *
22716
+ * @param {String} predictorId ID of predictor
22717
+ */
22718
+ getJourneyOutcomesPredictor(predictorId) {
22719
+ // verify the required parameter 'predictorId' is set
22720
+ if (predictorId === undefined || predictorId === null) {
22721
+ throw 'Missing the required parameter "predictorId" when calling getJourneyOutcomesPredictor';
22722
+ }
22723
+
22724
+ return this.apiClient.callApi(
22725
+ '/api/v2/journey/outcomes/predictors/{predictorId}',
22726
+ 'GET',
22727
+ { 'predictorId': predictorId },
22728
+ { },
22729
+ { },
22730
+ { },
22731
+ null,
22732
+ ['PureCloud OAuth'],
22733
+ ['application/json'],
22734
+ ['application/json']
22735
+ );
22736
+ }
22737
+
22738
+ /**
22739
+ * Retrieve all outcome predictors.
22740
+ *
22741
+ */
22742
+ getJourneyOutcomesPredictors() {
22743
+
22744
+ return this.apiClient.callApi(
22745
+ '/api/v2/journey/outcomes/predictors',
22746
+ 'GET',
22747
+ { },
22748
+ { },
22749
+ { },
22750
+ { },
22751
+ null,
22752
+ ['PureCloud OAuth'],
22753
+ ['application/json'],
22754
+ ['application/json']
22755
+ );
22756
+ }
22757
+
22548
22758
  /**
22549
22759
  * Retrieve a single segment.
22550
22760
  *
@@ -22917,6 +23127,30 @@ class JourneyApi {
22917
23127
  );
22918
23128
  }
22919
23129
 
23130
+ /**
23131
+ * Create an outcome predictor.
23132
+ *
23133
+ * @param {Object} opts Optional parameters
23134
+ * @param {Object} opts.body
23135
+ */
23136
+ postJourneyOutcomesPredictors(opts) {
23137
+ opts = opts || {};
23138
+
23139
+
23140
+ return this.apiClient.callApi(
23141
+ '/api/v2/journey/outcomes/predictors',
23142
+ 'POST',
23143
+ { },
23144
+ { },
23145
+ { },
23146
+ { },
23147
+ opts['body'],
23148
+ ['PureCloud OAuth'],
23149
+ ['application/json'],
23150
+ ['application/json']
23151
+ );
23152
+ }
23153
+
22920
23154
  /**
22921
23155
  * Create a segment.
22922
23156
  *
@@ -22947,7 +23181,7 @@ class KnowledgeApi {
22947
23181
  /**
22948
23182
  * Knowledge service.
22949
23183
  * @module purecloud-platform-client-v2/api/KnowledgeApi
22950
- * @version 158.0.0
23184
+ * @version 160.0.0
22951
23185
  */
22952
23186
 
22953
23187
  /**
@@ -23350,7 +23584,6 @@ class KnowledgeApi {
23350
23584
  * @param {String} sessionId Knowledge guest session ID.
23351
23585
  * @param {Object} opts Optional parameters
23352
23586
  * @param {Array.<String>} opts.categoryId If specified, retrieves documents associated with category ids, comma separated values expected.
23353
- * @param {Boolean} opts.includeSubcategories Deprecated - Do Not Use. Works along with 'categoryId' query parameter. If specified, retrieves documents associated with category ids and its children categories.
23354
23587
  * @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 10)
23355
23588
  */
23356
23589
  getKnowledgeGuestSessionDocuments(sessionId, opts) {
@@ -23365,7 +23598,7 @@ class KnowledgeApi {
23365
23598
  '/api/v2/knowledge/guest/sessions/{sessionId}/documents',
23366
23599
  'GET',
23367
23600
  { 'sessionId': sessionId },
23368
- { 'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'includeSubcategories': opts['includeSubcategories'],'pageSize': opts['pageSize'] },
23601
+ { 'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'pageSize': opts['pageSize'] },
23369
23602
  { },
23370
23603
  { },
23371
23604
  null,
@@ -25380,7 +25613,7 @@ class LanguageUnderstandingApi {
25380
25613
  /**
25381
25614
  * LanguageUnderstanding service.
25382
25615
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
25383
- * @version 158.0.0
25616
+ * @version 160.0.0
25384
25617
  */
25385
25618
 
25386
25619
  /**
@@ -26393,7 +26626,7 @@ class LanguagesApi {
26393
26626
  /**
26394
26627
  * Languages service.
26395
26628
  * @module purecloud-platform-client-v2/api/LanguagesApi
26396
- * @version 158.0.0
26629
+ * @version 160.0.0
26397
26630
  */
26398
26631
 
26399
26632
  /**
@@ -26611,7 +26844,7 @@ class LearningApi {
26611
26844
  /**
26612
26845
  * Learning service.
26613
26846
  * @module purecloud-platform-client-v2/api/LearningApi
26614
- * @version 158.0.0
26847
+ * @version 160.0.0
26615
26848
  */
26616
26849
 
26617
26850
  /**
@@ -27019,6 +27252,35 @@ class LearningApi {
27019
27252
  );
27020
27253
  }
27021
27254
 
27255
+ /**
27256
+ * Reschedule Learning Assignment
27257
+ *
27258
+ * @param {String} assignmentId The ID of Learning Assignment
27259
+ * @param {Object} opts Optional parameters
27260
+ * @param {Object} opts.body The Learning assignment reschedule model
27261
+ */
27262
+ patchLearningAssignmentReschedule(assignmentId, opts) {
27263
+ opts = opts || {};
27264
+
27265
+ // verify the required parameter 'assignmentId' is set
27266
+ if (assignmentId === undefined || assignmentId === null) {
27267
+ throw 'Missing the required parameter "assignmentId" when calling patchLearningAssignmentReschedule';
27268
+ }
27269
+
27270
+ return this.apiClient.callApi(
27271
+ '/api/v2/learning/assignments/{assignmentId}/reschedule',
27272
+ 'PATCH',
27273
+ { 'assignmentId': assignmentId },
27274
+ { },
27275
+ { },
27276
+ { },
27277
+ opts['body'],
27278
+ ['PureCloud OAuth'],
27279
+ ['application/json'],
27280
+ ['application/json']
27281
+ );
27282
+ }
27283
+
27022
27284
  /**
27023
27285
  * Score learning assessment for preview
27024
27286
  *
@@ -27306,6 +27568,31 @@ class LearningApi {
27306
27568
  );
27307
27569
  }
27308
27570
 
27571
+ /**
27572
+ * Get list of possible slots where a learning activity can be scheduled.
27573
+ *
27574
+ * @param {Object} body The slot search request
27575
+ */
27576
+ postLearningScheduleslotsQuery(body) {
27577
+ // verify the required parameter 'body' is set
27578
+ if (body === undefined || body === null) {
27579
+ throw 'Missing the required parameter "body" when calling postLearningScheduleslotsQuery';
27580
+ }
27581
+
27582
+ return this.apiClient.callApi(
27583
+ '/api/v2/learning/scheduleslots/query',
27584
+ 'POST',
27585
+ { },
27586
+ { },
27587
+ { },
27588
+ { },
27589
+ body,
27590
+ ['PureCloud OAuth'],
27591
+ ['application/json'],
27592
+ ['application/json']
27593
+ );
27594
+ }
27595
+
27309
27596
  /**
27310
27597
  * Update a learning module
27311
27598
  * This will update the name, description, completion time in days and inform steps for a learning module
@@ -27372,7 +27659,7 @@ class LicenseApi {
27372
27659
  /**
27373
27660
  * License service.
27374
27661
  * @module purecloud-platform-client-v2/api/LicenseApi
27375
- * @version 158.0.0
27662
+ * @version 160.0.0
27376
27663
  */
27377
27664
 
27378
27665
  /**
@@ -27610,7 +27897,7 @@ class LocationsApi {
27610
27897
  /**
27611
27898
  * Locations service.
27612
27899
  * @module purecloud-platform-client-v2/api/LocationsApi
27613
- * @version 158.0.0
27900
+ * @version 160.0.0
27614
27901
  */
27615
27902
 
27616
27903
  /**
@@ -27846,7 +28133,7 @@ class MessagingApi {
27846
28133
  /**
27847
28134
  * Messaging service.
27848
28135
  * @module purecloud-platform-client-v2/api/MessagingApi
27849
- * @version 158.0.0
28136
+ * @version 160.0.0
27850
28137
  */
27851
28138
 
27852
28139
  /**
@@ -27997,7 +28284,7 @@ class MobileDevicesApi {
27997
28284
  /**
27998
28285
  * MobileDevices service.
27999
28286
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
28000
- * @version 158.0.0
28287
+ * @version 160.0.0
28001
28288
  */
28002
28289
 
28003
28290
  /**
@@ -28148,7 +28435,7 @@ class NotificationsApi {
28148
28435
  /**
28149
28436
  * Notifications service.
28150
28437
  * @module purecloud-platform-client-v2/api/NotificationsApi
28151
- * @version 158.0.0
28438
+ * @version 160.0.0
28152
28439
  */
28153
28440
 
28154
28441
  /**
@@ -28292,8 +28579,12 @@ class NotificationsApi {
28292
28579
  *
28293
28580
  * @param {String} channelId Channel ID
28294
28581
  * @param {Array.<Object>} body Body
28582
+ * @param {Object} opts Optional parameters
28583
+ * @param {Boolean} opts.ignoreErrors Optionally prevent throwing of errors for failed permissions checks. (default to false)
28295
28584
  */
28296
- postNotificationsChannelSubscriptions(channelId, body) {
28585
+ postNotificationsChannelSubscriptions(channelId, body, opts) {
28586
+ opts = opts || {};
28587
+
28297
28588
  // verify the required parameter 'channelId' is set
28298
28589
  if (channelId === undefined || channelId === null) {
28299
28590
  throw 'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';
@@ -28307,7 +28598,7 @@ class NotificationsApi {
28307
28598
  '/api/v2/notifications/channels/{channelId}/subscriptions',
28308
28599
  'POST',
28309
28600
  { 'channelId': channelId },
28310
- { },
28601
+ { 'ignoreErrors': opts['ignoreErrors'] },
28311
28602
  { },
28312
28603
  { },
28313
28604
  body,
@@ -28342,8 +28633,12 @@ class NotificationsApi {
28342
28633
  *
28343
28634
  * @param {String} channelId Channel ID
28344
28635
  * @param {Array.<Object>} body Body
28636
+ * @param {Object} opts Optional parameters
28637
+ * @param {Boolean} opts.ignoreErrors Optionally prevent throwing of errors for failed permissions checks. (default to false)
28345
28638
  */
28346
- putNotificationsChannelSubscriptions(channelId, body) {
28639
+ putNotificationsChannelSubscriptions(channelId, body, opts) {
28640
+ opts = opts || {};
28641
+
28347
28642
  // verify the required parameter 'channelId' is set
28348
28643
  if (channelId === undefined || channelId === null) {
28349
28644
  throw 'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';
@@ -28357,7 +28652,7 @@ class NotificationsApi {
28357
28652
  '/api/v2/notifications/channels/{channelId}/subscriptions',
28358
28653
  'PUT',
28359
28654
  { 'channelId': channelId },
28360
- { },
28655
+ { 'ignoreErrors': opts['ignoreErrors'] },
28361
28656
  { },
28362
28657
  { },
28363
28658
  body,
@@ -28373,7 +28668,7 @@ class OAuthApi {
28373
28668
  /**
28374
28669
  * OAuth service.
28375
28670
  * @module purecloud-platform-client-v2/api/OAuthApi
28376
- * @version 158.0.0
28671
+ * @version 160.0.0
28377
28672
  */
28378
28673
 
28379
28674
  /**
@@ -28739,7 +29034,7 @@ class ObjectsApi {
28739
29034
  /**
28740
29035
  * Objects service.
28741
29036
  * @module purecloud-platform-client-v2/api/ObjectsApi
28742
- * @version 158.0.0
29037
+ * @version 160.0.0
28743
29038
  */
28744
29039
 
28745
29040
  /**
@@ -29010,7 +29305,7 @@ class OrganizationApi {
29010
29305
  /**
29011
29306
  * Organization service.
29012
29307
  * @module purecloud-platform-client-v2/api/OrganizationApi
29013
- * @version 158.0.0
29308
+ * @version 160.0.0
29014
29309
  */
29015
29310
 
29016
29311
  /**
@@ -29413,7 +29708,7 @@ class OrganizationAuthorizationApi {
29413
29708
  /**
29414
29709
  * OrganizationAuthorization service.
29415
29710
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
29416
- * @version 158.0.0
29711
+ * @version 160.0.0
29417
29712
  */
29418
29713
 
29419
29714
  /**
@@ -30708,7 +31003,7 @@ class OutboundApi {
30708
31003
  /**
30709
31004
  * Outbound service.
30710
31005
  * @module purecloud-platform-client-v2/api/OutboundApi
30711
- * @version 158.0.0
31006
+ * @version 160.0.0
30712
31007
  */
30713
31008
 
30714
31009
  /**
@@ -31058,6 +31353,35 @@ class OutboundApi {
31058
31353
  );
31059
31354
  }
31060
31355
 
31356
+ /**
31357
+ * Deletes all or expired custom exclusion column entries from a DNC list.
31358
+ * This operation is only for Internal DNC lists of custom exclusion column entries
31359
+ * @param {String} dncListId DncList ID
31360
+ * @param {Object} opts Optional parameters
31361
+ * @param {Boolean} opts.expiredOnly Set to true to only remove DNC entries that are expired (default to false)
31362
+ */
31363
+ deleteOutboundDnclistCustomexclusioncolumns(dncListId, opts) {
31364
+ opts = opts || {};
31365
+
31366
+ // verify the required parameter 'dncListId' is set
31367
+ if (dncListId === undefined || dncListId === null) {
31368
+ throw 'Missing the required parameter "dncListId" when calling deleteOutboundDnclistCustomexclusioncolumns';
31369
+ }
31370
+
31371
+ return this.apiClient.callApi(
31372
+ '/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns',
31373
+ 'DELETE',
31374
+ { 'dncListId': dncListId },
31375
+ { 'expiredOnly': opts['expiredOnly'] },
31376
+ { },
31377
+ { },
31378
+ null,
31379
+ ['PureCloud OAuth'],
31380
+ ['application/json'],
31381
+ ['application/json']
31382
+ );
31383
+ }
31384
+
31061
31385
  /**
31062
31386
  * Deletes all or expired email addresses from a DNC list.
31063
31387
  * This operation is Only for Internal DNC lists of email addresses
@@ -32886,6 +33210,36 @@ class OutboundApi {
32886
33210
  );
32887
33211
  }
32888
33212
 
33213
+ /**
33214
+ * Add entries to or delete entries from a DNC list.
33215
+ * Only Internal DNC lists may be deleted from
33216
+ * @param {String} dncListId DncList ID
33217
+ * @param {Object} body DNC Custom exclusion column entries
33218
+ */
33219
+ patchOutboundDnclistCustomexclusioncolumns(dncListId, body) {
33220
+ // verify the required parameter 'dncListId' is set
33221
+ if (dncListId === undefined || dncListId === null) {
33222
+ throw 'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';
33223
+ }
33224
+ // verify the required parameter 'body' is set
33225
+ if (body === undefined || body === null) {
33226
+ throw 'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';
33227
+ }
33228
+
33229
+ return this.apiClient.callApi(
33230
+ '/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns',
33231
+ 'PATCH',
33232
+ { 'dncListId': dncListId },
33233
+ { },
33234
+ { },
33235
+ { },
33236
+ body,
33237
+ ['PureCloud OAuth'],
33238
+ ['application/json'],
33239
+ ['application/json']
33240
+ );
33241
+ }
33242
+
32889
33243
  /**
32890
33244
  * Add emails to or Delete emails from a DNC list.
32891
33245
  * Only Internal DNC lists may be added to or deleted from
@@ -34245,7 +34599,7 @@ class PresenceApi {
34245
34599
  /**
34246
34600
  * Presence service.
34247
34601
  * @module purecloud-platform-client-v2/api/PresenceApi
34248
- * @version 158.0.0
34602
+ * @version 160.0.0
34249
34603
  */
34250
34604
 
34251
34605
  /**
@@ -34751,7 +35105,7 @@ class ProcessAutomationApi {
34751
35105
  /**
34752
35106
  * ProcessAutomation service.
34753
35107
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
34754
- * @version 158.0.0
35108
+ * @version 160.0.0
34755
35109
  */
34756
35110
 
34757
35111
  /**
@@ -34990,7 +35344,7 @@ class QualityApi {
34990
35344
  /**
34991
35345
  * Quality service.
34992
35346
  * @module purecloud-platform-client-v2/api/QualityApi
34993
- * @version 158.0.0
35347
+ * @version 160.0.0
34994
35348
  */
34995
35349
 
34996
35350
  /**
@@ -35252,7 +35606,7 @@ class QualityApi {
35252
35606
  * @param {String} conversationId conversationId
35253
35607
  * @param {String} evaluationId evaluationId
35254
35608
  * @param {Object} opts Optional parameters
35255
- * @param {String} opts.expand agent, evaluator, evaluationForm
35609
+ * @param {String} opts.expand agent, assignee, evaluator, evaluationForm
35256
35610
  */
35257
35611
  getQualityConversationEvaluation(conversationId, evaluationId, opts) {
35258
35612
  opts = opts || {};
@@ -35363,7 +35717,7 @@ class QualityApi {
35363
35717
 
35364
35718
  /**
35365
35719
  * Queries Evaluations and returns a paged list
35366
- * Query params must include one of conversationId, evaluatorUserId, or agentUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date.
35720
+ * Query params must include one of conversationId, evaluatorUserId, agentUserId or assigneeUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date.
35367
35721
  * @param {Object} opts Optional parameters
35368
35722
  * @param {Number} opts.pageSize The total page size requested (default to 25)
35369
35723
  * @param {Number} opts.pageNumber The page number requested (default to 1)
@@ -35374,6 +35728,7 @@ class QualityApi {
35374
35728
  * @param {String} opts.conversationId conversationId specified
35375
35729
  * @param {String} opts.agentUserId user id of the agent
35376
35730
  * @param {String} opts.evaluatorUserId evaluator user id
35731
+ * @param {String} opts.assigneeUserId assignee user id
35377
35732
  * @param {String} opts.queueId queue id
35378
35733
  * @param {String} opts.startTime start time of the evaluation query
35379
35734
  * @param {String} opts.endTime end time of the evaluation query
@@ -35392,7 +35747,7 @@ class QualityApi {
35392
35747
  '/api/v2/quality/evaluations/query',
35393
35748
  'GET',
35394
35749
  { },
35395
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'],'conversationId': opts['conversationId'],'agentUserId': opts['agentUserId'],'evaluatorUserId': opts['evaluatorUserId'],'queueId': opts['queueId'],'startTime': opts['startTime'],'endTime': opts['endTime'],'evaluationState': this.apiClient.buildCollectionParam(opts['evaluationState'], 'multi'),'isReleased': opts['isReleased'],'agentHasRead': opts['agentHasRead'],'expandAnswerTotalScores': opts['expandAnswerTotalScores'],'maximum': opts['maximum'],'sortOrder': opts['sortOrder'] },
35750
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'],'conversationId': opts['conversationId'],'agentUserId': opts['agentUserId'],'evaluatorUserId': opts['evaluatorUserId'],'assigneeUserId': opts['assigneeUserId'],'queueId': opts['queueId'],'startTime': opts['startTime'],'endTime': opts['endTime'],'evaluationState': this.apiClient.buildCollectionParam(opts['evaluationState'], 'multi'),'isReleased': opts['isReleased'],'agentHasRead': opts['agentHasRead'],'expandAnswerTotalScores': opts['expandAnswerTotalScores'],'maximum': opts['maximum'],'sortOrder': opts['sortOrder'] },
35396
35751
  { },
35397
35752
  { },
35398
35753
  null,
@@ -36568,7 +36923,7 @@ class RecordingApi {
36568
36923
  /**
36569
36924
  * Recording service.
36570
36925
  * @module purecloud-platform-client-v2/api/RecordingApi
36571
- * @version 158.0.0
36926
+ * @version 160.0.0
36572
36927
  */
36573
36928
 
36574
36929
  /**
@@ -37269,51 +37624,6 @@ class RecordingApi {
37269
37624
  );
37270
37625
  }
37271
37626
 
37272
- /**
37273
- * Get the local encryption settings. Replaced by API recording/keyconfigurations/{keyConfigurationId}
37274
- *
37275
- * @param {String} settingsId Settings Id
37276
- */
37277
- getRecordingLocalkeysSetting(settingsId) {
37278
- // verify the required parameter 'settingsId' is set
37279
- if (settingsId === undefined || settingsId === null) {
37280
- throw 'Missing the required parameter "settingsId" when calling getRecordingLocalkeysSetting';
37281
- }
37282
-
37283
- return this.apiClient.callApi(
37284
- '/api/v2/recording/localkeys/settings/{settingsId}',
37285
- 'GET',
37286
- { 'settingsId': settingsId },
37287
- { },
37288
- { },
37289
- { },
37290
- null,
37291
- ['PureCloud OAuth'],
37292
- ['application/json'],
37293
- ['application/json']
37294
- );
37295
- }
37296
-
37297
- /**
37298
- * gets a list local key settings data. Replaced by API recording/keyconfigurations
37299
- *
37300
- */
37301
- getRecordingLocalkeysSettings() {
37302
-
37303
- return this.apiClient.callApi(
37304
- '/api/v2/recording/localkeys/settings',
37305
- 'GET',
37306
- { },
37307
- { },
37308
- { },
37309
- { },
37310
- null,
37311
- ['PureCloud OAuth'],
37312
- ['application/json'],
37313
- ['application/json']
37314
- );
37315
- }
37316
-
37317
37627
  /**
37318
37628
  * Gets media retention policy list with query options to filter on name and enabled.
37319
37629
  * for a less verbose response, add summary=true to this endpoint
@@ -37698,7 +38008,7 @@ class RecordingApi {
37698
38008
 
37699
38009
  /**
37700
38010
  * Create a recording bulk job.
37701
- * Each organization can run up to a maximum of two concurrent jobs that are either in pending or processing state. Furthermore, the recording:recording:viewSensitiveData permission is required to access recordings with PCI DSS and/or PII data. If the requester does not have that permission and includeRecordingsWithSensitiveData is set to true, then their request will be rejected.
38011
+ * Each organization can run up to a maximum of two concurrent jobs that are either in pending or processing state. Furthermore, the recording:recording:viewSensitiveData permission is required to access recordings with PCI DSS and/or PII data when redaction is enabled for their organization. If the requester does not have that permission and includeRecordingsWithSensitiveData is set to true, then their request will be rejected.
37702
38012
  * @param {Object} body query
37703
38013
  */
37704
38014
  postRecordingJobs(body) {
@@ -37796,31 +38106,6 @@ class RecordingApi {
37796
38106
  );
37797
38107
  }
37798
38108
 
37799
- /**
37800
- * create settings for local key creation. Replaced by API recording/keyconfigurations
37801
- *
37802
- * @param {Object} body Local Encryption Configuration
37803
- */
37804
- postRecordingLocalkeysSettings(body) {
37805
- // verify the required parameter 'body' is set
37806
- if (body === undefined || body === null) {
37807
- throw 'Missing the required parameter "body" when calling postRecordingLocalkeysSettings';
37808
- }
37809
-
37810
- return this.apiClient.callApi(
37811
- '/api/v2/recording/localkeys/settings',
37812
- 'POST',
37813
- { },
37814
- { },
37815
- { },
37816
- { },
37817
- body,
37818
- ['PureCloud OAuth'],
37819
- ['application/json'],
37820
- ['application/json']
37821
- );
37822
- }
37823
-
37824
38109
  /**
37825
38110
  * Create media retention policy
37826
38111
  * Policy does not work retroactively
@@ -38164,36 +38449,6 @@ class RecordingApi {
38164
38449
  );
38165
38450
  }
38166
38451
 
38167
- /**
38168
- * Update the local encryption settings. Replaced by API recording/keyconfigurations/{keyConfigurationId}
38169
- *
38170
- * @param {String} settingsId Settings Id
38171
- * @param {Object} body Local Encryption metadata
38172
- */
38173
- putRecordingLocalkeysSetting(settingsId, body) {
38174
- // verify the required parameter 'settingsId' is set
38175
- if (settingsId === undefined || settingsId === null) {
38176
- throw 'Missing the required parameter "settingsId" when calling putRecordingLocalkeysSetting';
38177
- }
38178
- // verify the required parameter 'body' is set
38179
- if (body === undefined || body === null) {
38180
- throw 'Missing the required parameter "body" when calling putRecordingLocalkeysSetting';
38181
- }
38182
-
38183
- return this.apiClient.callApi(
38184
- '/api/v2/recording/localkeys/settings/{settingsId}',
38185
- 'PUT',
38186
- { 'settingsId': settingsId },
38187
- { },
38188
- { },
38189
- { },
38190
- body,
38191
- ['PureCloud OAuth'],
38192
- ['application/json'],
38193
- ['application/json']
38194
- );
38195
- }
38196
-
38197
38452
  /**
38198
38453
  * Update a media retention policy
38199
38454
  * Policy does not work retroactively
@@ -38305,7 +38560,7 @@ class ResponseManagementApi {
38305
38560
  /**
38306
38561
  * ResponseManagement service.
38307
38562
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
38308
- * @version 158.0.0
38563
+ * @version 160.0.0
38309
38564
  */
38310
38565
 
38311
38566
  /**
@@ -38789,7 +39044,7 @@ class RoutingApi {
38789
39044
  /**
38790
39045
  * Routing service.
38791
39046
  * @module purecloud-platform-client-v2/api/RoutingApi
38792
- * @version 158.0.0
39047
+ * @version 160.0.0
38793
39048
  */
38794
39049
 
38795
39050
  /**
@@ -40592,8 +40847,12 @@ class RoutingApi {
40592
40847
  * Get a phone number provisioned for SMS.
40593
40848
  *
40594
40849
  * @param {String} addressId Address ID
40850
+ * @param {Object} opts Optional parameters
40851
+ * @param {Object} opts.expand Expand response with additional information
40595
40852
  */
40596
- getRoutingSmsPhonenumber(addressId) {
40853
+ getRoutingSmsPhonenumber(addressId, opts) {
40854
+ opts = opts || {};
40855
+
40597
40856
  // verify the required parameter 'addressId' is set
40598
40857
  if (addressId === undefined || addressId === null) {
40599
40858
  throw 'Missing the required parameter "addressId" when calling getRoutingSmsPhonenumber';
@@ -40603,7 +40862,7 @@ class RoutingApi {
40603
40862
  '/api/v2/routing/sms/phonenumbers/{addressId}',
40604
40863
  'GET',
40605
40864
  { 'addressId': addressId },
40606
- { },
40865
+ { 'expand': opts['expand'] },
40607
40866
  { },
40608
40867
  { },
40609
40868
  null,
@@ -40837,6 +41096,37 @@ class RoutingApi {
40837
41096
  );
40838
41097
  }
40839
41098
 
41099
+ /**
41100
+ * Get skill groups for a user
41101
+ *
41102
+ * @param {String} userId User ID
41103
+ * @param {Object} opts Optional parameters
41104
+ * @param {Number} opts.pageSize Page size (default to 25)
41105
+ * @param {String} opts.after The cursor that points to the next page
41106
+ * @param {String} opts.before The cursor that points to the previous page
41107
+ */
41108
+ getUserSkillgroups(userId, opts) {
41109
+ opts = opts || {};
41110
+
41111
+ // verify the required parameter 'userId' is set
41112
+ if (userId === undefined || userId === null) {
41113
+ throw 'Missing the required parameter "userId" when calling getUserSkillgroups';
41114
+ }
41115
+
41116
+ return this.apiClient.callApi(
41117
+ '/api/v2/users/{userId}/skillgroups',
41118
+ 'GET',
41119
+ { 'userId': userId },
41120
+ { 'pageSize': opts['pageSize'],'after': opts['after'],'before': opts['before'] },
41121
+ { },
41122
+ { },
41123
+ null,
41124
+ ['PureCloud OAuth'],
41125
+ ['application/json'],
41126
+ ['application/json']
41127
+ );
41128
+ }
41129
+
40840
41130
  /**
40841
41131
  * Update attributes of an in-queue conversation
40842
41132
  * Returns an object indicating the updated values of all settable attributes. Supported attributes: skillIds, languageId, and priority.
@@ -42254,7 +42544,7 @@ class SCIMApi {
42254
42544
  /**
42255
42545
  * SCIM service.
42256
42546
  * @module purecloud-platform-client-v2/api/SCIMApi
42257
- * @version 158.0.0
42547
+ * @version 160.0.0
42258
42548
  */
42259
42549
 
42260
42550
  /**
@@ -43131,7 +43421,7 @@ class ScriptsApi {
43131
43421
  /**
43132
43422
  * Scripts service.
43133
43423
  * @module purecloud-platform-client-v2/api/ScriptsApi
43134
- * @version 158.0.0
43424
+ * @version 160.0.0
43135
43425
  */
43136
43426
 
43137
43427
  /**
@@ -43550,7 +43840,7 @@ class SearchApi {
43550
43840
  /**
43551
43841
  * Search service.
43552
43842
  * @module purecloud-platform-client-v2/api/SearchApi
43553
- * @version 158.0.0
43843
+ * @version 160.0.0
43554
43844
  */
43555
43845
 
43556
43846
  /**
@@ -43817,6 +44107,31 @@ class SearchApi {
43817
44107
  );
43818
44108
  }
43819
44109
 
44110
+ /**
44111
+ * Search conversations
44112
+ *
44113
+ * @param {Object} body Search request options
44114
+ */
44115
+ postConversationsParticipantsAttributesSearch(body) {
44116
+ // verify the required parameter 'body' is set
44117
+ if (body === undefined || body === null) {
44118
+ throw 'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';
44119
+ }
44120
+
44121
+ return this.apiClient.callApi(
44122
+ '/api/v2/conversations/participants/attributes/search',
44123
+ 'POST',
44124
+ { },
44125
+ { },
44126
+ { },
44127
+ { },
44128
+ body,
44129
+ ['PureCloud OAuth'],
44130
+ ['application/json'],
44131
+ ['application/json']
44132
+ );
44133
+ }
44134
+
43820
44135
  /**
43821
44136
  * Search gkn documentation
43822
44137
  *
@@ -44135,7 +44450,7 @@ class SpeechTextAnalyticsApi {
44135
44450
  /**
44136
44451
  * SpeechTextAnalytics service.
44137
44452
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
44138
- * @version 158.0.0
44453
+ * @version 160.0.0
44139
44454
  */
44140
44455
 
44141
44456
  /**
@@ -44354,6 +44669,31 @@ class SpeechTextAnalyticsApi {
44354
44669
  );
44355
44670
  }
44356
44671
 
44672
+ /**
44673
+ * Get transcription engine settings of a program
44674
+ *
44675
+ * @param {String} programId The id of the program
44676
+ */
44677
+ getSpeechandtextanalyticsProgramTranscriptionengines(programId) {
44678
+ // verify the required parameter 'programId' is set
44679
+ if (programId === undefined || programId === null) {
44680
+ throw 'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramTranscriptionengines';
44681
+ }
44682
+
44683
+ return this.apiClient.callApi(
44684
+ '/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines',
44685
+ 'GET',
44686
+ { 'programId': programId },
44687
+ { },
44688
+ { },
44689
+ { },
44690
+ null,
44691
+ ['PureCloud OAuth'],
44692
+ ['application/json'],
44693
+ ['application/json']
44694
+ );
44695
+ }
44696
+
44357
44697
  /**
44358
44698
  * Get the list of Speech and Text Analytics programs
44359
44699
  *
@@ -44455,6 +44795,26 @@ class SpeechTextAnalyticsApi {
44455
44795
  );
44456
44796
  }
44457
44797
 
44798
+ /**
44799
+ * Get supported dialects for each transcription engine
44800
+ *
44801
+ */
44802
+ getSpeechandtextanalyticsProgramsTranscriptionenginesDialects() {
44803
+
44804
+ return this.apiClient.callApi(
44805
+ '/api/v2/speechandtextanalytics/programs/transcriptionengines/dialects',
44806
+ 'GET',
44807
+ { },
44808
+ { },
44809
+ { },
44810
+ { },
44811
+ null,
44812
+ ['PureCloud OAuth'],
44813
+ ['application/json'],
44814
+ ['application/json']
44815
+ );
44816
+ }
44817
+
44458
44818
  /**
44459
44819
  * Get the list of Speech and Text Analytics unpublished programs
44460
44820
  *
@@ -44928,6 +45288,36 @@ class SpeechTextAnalyticsApi {
44928
45288
  );
44929
45289
  }
44930
45290
 
45291
+ /**
45292
+ * Update transcription engine settings of a program
45293
+ *
45294
+ * @param {String} programId The id of the program
45295
+ * @param {Object} body Program transcription engine setting
45296
+ */
45297
+ putSpeechandtextanalyticsProgramTranscriptionengines(programId, body) {
45298
+ // verify the required parameter 'programId' is set
45299
+ if (programId === undefined || programId === null) {
45300
+ throw 'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';
45301
+ }
45302
+ // verify the required parameter 'body' is set
45303
+ if (body === undefined || body === null) {
45304
+ throw 'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';
45305
+ }
45306
+
45307
+ return this.apiClient.callApi(
45308
+ '/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines',
45309
+ 'PUT',
45310
+ { 'programId': programId },
45311
+ { },
45312
+ { },
45313
+ { },
45314
+ body,
45315
+ ['PureCloud OAuth'],
45316
+ ['application/json'],
45317
+ ['application/json']
45318
+ );
45319
+ }
45320
+
44931
45321
  /**
44932
45322
  * Update Speech And Text Analytics Settings
44933
45323
  *
@@ -44989,7 +45379,7 @@ class StationsApi {
44989
45379
  /**
44990
45380
  * Stations service.
44991
45381
  * @module purecloud-platform-client-v2/api/StationsApi
44992
- * @version 158.0.0
45382
+ * @version 160.0.0
44993
45383
  */
44994
45384
 
44995
45385
  /**
@@ -45136,7 +45526,7 @@ class SuggestApi {
45136
45526
  /**
45137
45527
  * Suggest service.
45138
45528
  * @module purecloud-platform-client-v2/api/SuggestApi
45139
- * @version 158.0.0
45529
+ * @version 160.0.0
45140
45530
  */
45141
45531
 
45142
45532
  /**
@@ -45275,7 +45665,7 @@ class TeamsApi {
45275
45665
  /**
45276
45666
  * Teams service.
45277
45667
  * @module purecloud-platform-client-v2/api/TeamsApi
45278
- * @version 158.0.0
45668
+ * @version 160.0.0
45279
45669
  */
45280
45670
 
45281
45671
  /**
@@ -45546,7 +45936,7 @@ class TelephonyApi {
45546
45936
  /**
45547
45937
  * Telephony service.
45548
45938
  * @module purecloud-platform-client-v2/api/TelephonyApi
45549
- * @version 158.0.0
45939
+ * @version 160.0.0
45550
45940
  */
45551
45941
 
45552
45942
  /**
@@ -45674,7 +46064,7 @@ class TelephonyProvidersEdgeApi {
45674
46064
  /**
45675
46065
  * TelephonyProvidersEdge service.
45676
46066
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
45677
- * @version 158.0.0
46067
+ * @version 160.0.0
45678
46068
  */
45679
46069
 
45680
46070
  /**
@@ -46680,6 +47070,7 @@ class TelephonyProvidersEdgeApi {
46680
47070
  * @param {String} opts.edgeGroupId Filter by edgeGroup.id
46681
47071
  * @param {String} opts.sortBy Sort by (default to name)
46682
47072
  * @param {Boolean} opts.managed Filter by managed
47073
+ * @param {Boolean} opts.showCloudMedia True to show the cloud media devices in the result. (default to true)
46683
47074
  */
46684
47075
  getTelephonyProvidersEdges(opts) {
46685
47076
  opts = opts || {};
@@ -46689,7 +47080,7 @@ class TelephonyProvidersEdgeApi {
46689
47080
  '/api/v2/telephony/providers/edges',
46690
47081
  'GET',
46691
47082
  { },
46692
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'name': opts['name'],'site.id': opts['siteId'],'edgeGroup.id': opts['edgeGroupId'],'sortBy': opts['sortBy'],'managed': opts['managed'] },
47083
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'name': opts['name'],'site.id': opts['siteId'],'edgeGroup.id': opts['edgeGroupId'],'sortBy': opts['sortBy'],'managed': opts['managed'],'showCloudMedia': opts['showCloudMedia'] },
46693
47084
  { },
46694
47085
  { },
46695
47086
  null,
@@ -49307,7 +49698,7 @@ class TextbotsApi {
49307
49698
  /**
49308
49699
  * Textbots service.
49309
49700
  * @module purecloud-platform-client-v2/api/TextbotsApi
49310
- * @version 158.0.0
49701
+ * @version 160.0.0
49311
49702
  */
49312
49703
 
49313
49704
  /**
@@ -49435,7 +49826,7 @@ class TokensApi {
49435
49826
  /**
49436
49827
  * Tokens service.
49437
49828
  * @module purecloud-platform-client-v2/api/TokensApi
49438
- * @version 158.0.0
49829
+ * @version 160.0.0
49439
49830
  */
49440
49831
 
49441
49832
  /**
@@ -49541,7 +49932,7 @@ class UploadsApi {
49541
49932
  /**
49542
49933
  * Uploads service.
49543
49934
  * @module purecloud-platform-client-v2/api/UploadsApi
49544
- * @version 158.0.0
49935
+ * @version 160.0.0
49545
49936
  */
49546
49937
 
49547
49938
  /**
@@ -49717,7 +50108,7 @@ class UsageApi {
49717
50108
  /**
49718
50109
  * Usage service.
49719
50110
  * @module purecloud-platform-client-v2/api/UsageApi
49720
- * @version 158.0.0
50111
+ * @version 160.0.0
49721
50112
  */
49722
50113
 
49723
50114
  /**
@@ -49788,7 +50179,7 @@ class UserRecordingsApi {
49788
50179
  /**
49789
50180
  * UserRecordings service.
49790
50181
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
49791
- * @version 158.0.0
50182
+ * @version 160.0.0
49792
50183
  */
49793
50184
 
49794
50185
  /**
@@ -49973,7 +50364,7 @@ class UsersApi {
49973
50364
  /**
49974
50365
  * Users service.
49975
50366
  * @module purecloud-platform-client-v2/api/UsersApi
49976
- * @version 158.0.0
50367
+ * @version 160.0.0
49977
50368
  */
49978
50369
 
49979
50370
  /**
@@ -50902,6 +51293,37 @@ class UsersApi {
50902
51293
  );
50903
51294
  }
50904
51295
 
51296
+ /**
51297
+ * Get skill groups for a user
51298
+ *
51299
+ * @param {String} userId User ID
51300
+ * @param {Object} opts Optional parameters
51301
+ * @param {Number} opts.pageSize Page size (default to 25)
51302
+ * @param {String} opts.after The cursor that points to the next page
51303
+ * @param {String} opts.before The cursor that points to the previous page
51304
+ */
51305
+ getUserSkillgroups(userId, opts) {
51306
+ opts = opts || {};
51307
+
51308
+ // verify the required parameter 'userId' is set
51309
+ if (userId === undefined || userId === null) {
51310
+ throw 'Missing the required parameter "userId" when calling getUserSkillgroups';
51311
+ }
51312
+
51313
+ return this.apiClient.callApi(
51314
+ '/api/v2/users/{userId}/skillgroups',
51315
+ 'GET',
51316
+ { 'userId': userId },
51317
+ { 'pageSize': opts['pageSize'],'after': opts['after'],'before': opts['before'] },
51318
+ { },
51319
+ { },
51320
+ null,
51321
+ ['PureCloud OAuth'],
51322
+ ['application/json'],
51323
+ ['application/json']
51324
+ );
51325
+ }
51326
+
50905
51327
  /**
50906
51328
  * Get user state information.
50907
51329
  *
@@ -52330,7 +52752,7 @@ class UtilitiesApi {
52330
52752
  /**
52331
52753
  * Utilities service.
52332
52754
  * @module purecloud-platform-client-v2/api/UtilitiesApi
52333
- * @version 158.0.0
52755
+ * @version 160.0.0
52334
52756
  */
52335
52757
 
52336
52758
  /**
@@ -52441,7 +52863,7 @@ class VoicemailApi {
52441
52863
  /**
52442
52864
  * Voicemail service.
52443
52865
  * @module purecloud-platform-client-v2/api/VoicemailApi
52444
- * @version 158.0.0
52866
+ * @version 160.0.0
52445
52867
  */
52446
52868
 
52447
52869
  /**
@@ -53108,7 +53530,7 @@ class WebChatApi {
53108
53530
  /**
53109
53531
  * WebChat service.
53110
53532
  * @module purecloud-platform-client-v2/api/WebChatApi
53111
- * @version 158.0.0
53533
+ * @version 160.0.0
53112
53534
  */
53113
53535
 
53114
53536
  /**
@@ -53652,7 +54074,7 @@ class WebDeploymentsApi {
53652
54074
  /**
53653
54075
  * WebDeployments service.
53654
54076
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
53655
- * @version 158.0.0
54077
+ * @version 160.0.0
53656
54078
  */
53657
54079
 
53658
54080
  /**
@@ -54174,7 +54596,7 @@ class WebMessagingApi {
54174
54596
  /**
54175
54597
  * WebMessaging service.
54176
54598
  * @module purecloud-platform-client-v2/api/WebMessagingApi
54177
- * @version 158.0.0
54599
+ * @version 160.0.0
54178
54600
  */
54179
54601
 
54180
54602
  /**
@@ -54220,7 +54642,7 @@ class WidgetsApi {
54220
54642
  /**
54221
54643
  * Widgets service.
54222
54644
  * @module purecloud-platform-client-v2/api/WidgetsApi
54223
- * @version 158.0.0
54645
+ * @version 160.0.0
54224
54646
  */
54225
54647
 
54226
54648
  /**
@@ -54366,7 +54788,7 @@ class WorkforceManagementApi {
54366
54788
  /**
54367
54789
  * WorkforceManagement service.
54368
54790
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
54369
- * @version 158.0.0
54791
+ * @version 160.0.0
54370
54792
  */
54371
54793
 
54372
54794
  /**
@@ -57401,6 +57823,31 @@ class WorkforceManagementApi {
57401
57823
  );
57402
57824
  }
57403
57825
 
57826
+ /**
57827
+ * Get agent possible work shifts for requested time frame
57828
+ *
57829
+ * @param {Object} body body
57830
+ */
57831
+ postWorkforcemanagementAgentsMePossibleworkshifts(body) {
57832
+ // verify the required parameter 'body' is set
57833
+ if (body === undefined || body === null) {
57834
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';
57835
+ }
57836
+
57837
+ return this.apiClient.callApi(
57838
+ '/api/v2/workforcemanagement/agents/me/possibleworkshifts',
57839
+ 'POST',
57840
+ { },
57841
+ { },
57842
+ { },
57843
+ { },
57844
+ body,
57845
+ ['PureCloud OAuth'],
57846
+ ['application/json'],
57847
+ ['application/json']
57848
+ );
57849
+ }
57850
+
57404
57851
  /**
57405
57852
  * Get published schedule for the current user
57406
57853
  *
@@ -59085,7 +59532,7 @@ class WorkforceManagementApi {
59085
59532
  * </pre>
59086
59533
  * </p>
59087
59534
  * @module purecloud-platform-client-v2/index
59088
- * @version 158.0.0
59535
+ * @version 160.0.0
59089
59536
  */
59090
59537
  class platformClient {
59091
59538
  constructor() {
@@ -59209,6 +59656,11 @@ class platformClient {
59209
59656
  * @property {module:purecloud-platform-client-v2/api/IdentityProviderApi}
59210
59657
  */
59211
59658
  this.IdentityProviderApi = IdentityProviderApi;
59659
+ /**
59660
+ * The InfrastructureAsCodeApi service constructor.
59661
+ * @property {module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi}
59662
+ */
59663
+ this.InfrastructureAsCodeApi = InfrastructureAsCodeApi;
59212
59664
  /**
59213
59665
  * The IntegrationsApi service constructor.
59214
59666
  * @property {module:purecloud-platform-client-v2/api/IntegrationsApi}