purecloud-platform-client-v2 159.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 +534 -177
  3. package/dist/web-amd/purecloud-platform-client-v2.js +534 -177
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +534 -177
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +7000 -430
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +371 -168
  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 +26 -1
  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 +1 -1
  36. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  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 +1 -1
  53. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -101
  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 +1 -1
  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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.0.0
9400
+ * @version 160.0.0
9388
9401
  */
9389
9402
 
9390
9403
  /**
@@ -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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.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 159.0.0
22304
+ * @version 160.0.0
22165
22305
  */
22166
22306
 
22167
22307
  /**
@@ -23041,7 +23181,7 @@ class KnowledgeApi {
23041
23181
  /**
23042
23182
  * Knowledge service.
23043
23183
  * @module purecloud-platform-client-v2/api/KnowledgeApi
23044
- * @version 159.0.0
23184
+ * @version 160.0.0
23045
23185
  */
23046
23186
 
23047
23187
  /**
@@ -25473,7 +25613,7 @@ class LanguageUnderstandingApi {
25473
25613
  /**
25474
25614
  * LanguageUnderstanding service.
25475
25615
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
25476
- * @version 159.0.0
25616
+ * @version 160.0.0
25477
25617
  */
25478
25618
 
25479
25619
  /**
@@ -26486,7 +26626,7 @@ class LanguagesApi {
26486
26626
  /**
26487
26627
  * Languages service.
26488
26628
  * @module purecloud-platform-client-v2/api/LanguagesApi
26489
- * @version 159.0.0
26629
+ * @version 160.0.0
26490
26630
  */
26491
26631
 
26492
26632
  /**
@@ -26704,7 +26844,7 @@ class LearningApi {
26704
26844
  /**
26705
26845
  * Learning service.
26706
26846
  * @module purecloud-platform-client-v2/api/LearningApi
26707
- * @version 159.0.0
26847
+ * @version 160.0.0
26708
26848
  */
26709
26849
 
26710
26850
  /**
@@ -27112,6 +27252,35 @@ class LearningApi {
27112
27252
  );
27113
27253
  }
27114
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
+
27115
27284
  /**
27116
27285
  * Score learning assessment for preview
27117
27286
  *
@@ -27399,6 +27568,31 @@ class LearningApi {
27399
27568
  );
27400
27569
  }
27401
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
+
27402
27596
  /**
27403
27597
  * Update a learning module
27404
27598
  * This will update the name, description, completion time in days and inform steps for a learning module
@@ -27465,7 +27659,7 @@ class LicenseApi {
27465
27659
  /**
27466
27660
  * License service.
27467
27661
  * @module purecloud-platform-client-v2/api/LicenseApi
27468
- * @version 159.0.0
27662
+ * @version 160.0.0
27469
27663
  */
27470
27664
 
27471
27665
  /**
@@ -27703,7 +27897,7 @@ class LocationsApi {
27703
27897
  /**
27704
27898
  * Locations service.
27705
27899
  * @module purecloud-platform-client-v2/api/LocationsApi
27706
- * @version 159.0.0
27900
+ * @version 160.0.0
27707
27901
  */
27708
27902
 
27709
27903
  /**
@@ -27939,7 +28133,7 @@ class MessagingApi {
27939
28133
  /**
27940
28134
  * Messaging service.
27941
28135
  * @module purecloud-platform-client-v2/api/MessagingApi
27942
- * @version 159.0.0
28136
+ * @version 160.0.0
27943
28137
  */
27944
28138
 
27945
28139
  /**
@@ -28090,7 +28284,7 @@ class MobileDevicesApi {
28090
28284
  /**
28091
28285
  * MobileDevices service.
28092
28286
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
28093
- * @version 159.0.0
28287
+ * @version 160.0.0
28094
28288
  */
28095
28289
 
28096
28290
  /**
@@ -28241,7 +28435,7 @@ class NotificationsApi {
28241
28435
  /**
28242
28436
  * Notifications service.
28243
28437
  * @module purecloud-platform-client-v2/api/NotificationsApi
28244
- * @version 159.0.0
28438
+ * @version 160.0.0
28245
28439
  */
28246
28440
 
28247
28441
  /**
@@ -28385,8 +28579,12 @@ class NotificationsApi {
28385
28579
  *
28386
28580
  * @param {String} channelId Channel ID
28387
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)
28388
28584
  */
28389
- postNotificationsChannelSubscriptions(channelId, body) {
28585
+ postNotificationsChannelSubscriptions(channelId, body, opts) {
28586
+ opts = opts || {};
28587
+
28390
28588
  // verify the required parameter 'channelId' is set
28391
28589
  if (channelId === undefined || channelId === null) {
28392
28590
  throw 'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';
@@ -28400,7 +28598,7 @@ class NotificationsApi {
28400
28598
  '/api/v2/notifications/channels/{channelId}/subscriptions',
28401
28599
  'POST',
28402
28600
  { 'channelId': channelId },
28403
- { },
28601
+ { 'ignoreErrors': opts['ignoreErrors'] },
28404
28602
  { },
28405
28603
  { },
28406
28604
  body,
@@ -28435,8 +28633,12 @@ class NotificationsApi {
28435
28633
  *
28436
28634
  * @param {String} channelId Channel ID
28437
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)
28438
28638
  */
28439
- putNotificationsChannelSubscriptions(channelId, body) {
28639
+ putNotificationsChannelSubscriptions(channelId, body, opts) {
28640
+ opts = opts || {};
28641
+
28440
28642
  // verify the required parameter 'channelId' is set
28441
28643
  if (channelId === undefined || channelId === null) {
28442
28644
  throw 'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';
@@ -28450,7 +28652,7 @@ class NotificationsApi {
28450
28652
  '/api/v2/notifications/channels/{channelId}/subscriptions',
28451
28653
  'PUT',
28452
28654
  { 'channelId': channelId },
28453
- { },
28655
+ { 'ignoreErrors': opts['ignoreErrors'] },
28454
28656
  { },
28455
28657
  { },
28456
28658
  body,
@@ -28466,7 +28668,7 @@ class OAuthApi {
28466
28668
  /**
28467
28669
  * OAuth service.
28468
28670
  * @module purecloud-platform-client-v2/api/OAuthApi
28469
- * @version 159.0.0
28671
+ * @version 160.0.0
28470
28672
  */
28471
28673
 
28472
28674
  /**
@@ -28832,7 +29034,7 @@ class ObjectsApi {
28832
29034
  /**
28833
29035
  * Objects service.
28834
29036
  * @module purecloud-platform-client-v2/api/ObjectsApi
28835
- * @version 159.0.0
29037
+ * @version 160.0.0
28836
29038
  */
28837
29039
 
28838
29040
  /**
@@ -29103,7 +29305,7 @@ class OrganizationApi {
29103
29305
  /**
29104
29306
  * Organization service.
29105
29307
  * @module purecloud-platform-client-v2/api/OrganizationApi
29106
- * @version 159.0.0
29308
+ * @version 160.0.0
29107
29309
  */
29108
29310
 
29109
29311
  /**
@@ -29506,7 +29708,7 @@ class OrganizationAuthorizationApi {
29506
29708
  /**
29507
29709
  * OrganizationAuthorization service.
29508
29710
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
29509
- * @version 159.0.0
29711
+ * @version 160.0.0
29510
29712
  */
29511
29713
 
29512
29714
  /**
@@ -30801,7 +31003,7 @@ class OutboundApi {
30801
31003
  /**
30802
31004
  * Outbound service.
30803
31005
  * @module purecloud-platform-client-v2/api/OutboundApi
30804
- * @version 159.0.0
31006
+ * @version 160.0.0
30805
31007
  */
30806
31008
 
30807
31009
  /**
@@ -31151,6 +31353,35 @@ class OutboundApi {
31151
31353
  );
31152
31354
  }
31153
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
+
31154
31385
  /**
31155
31386
  * Deletes all or expired email addresses from a DNC list.
31156
31387
  * This operation is Only for Internal DNC lists of email addresses
@@ -32979,6 +33210,36 @@ class OutboundApi {
32979
33210
  );
32980
33211
  }
32981
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
+
32982
33243
  /**
32983
33244
  * Add emails to or Delete emails from a DNC list.
32984
33245
  * Only Internal DNC lists may be added to or deleted from
@@ -34338,7 +34599,7 @@ class PresenceApi {
34338
34599
  /**
34339
34600
  * Presence service.
34340
34601
  * @module purecloud-platform-client-v2/api/PresenceApi
34341
- * @version 159.0.0
34602
+ * @version 160.0.0
34342
34603
  */
34343
34604
 
34344
34605
  /**
@@ -34844,7 +35105,7 @@ class ProcessAutomationApi {
34844
35105
  /**
34845
35106
  * ProcessAutomation service.
34846
35107
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
34847
- * @version 159.0.0
35108
+ * @version 160.0.0
34848
35109
  */
34849
35110
 
34850
35111
  /**
@@ -35083,7 +35344,7 @@ class QualityApi {
35083
35344
  /**
35084
35345
  * Quality service.
35085
35346
  * @module purecloud-platform-client-v2/api/QualityApi
35086
- * @version 159.0.0
35347
+ * @version 160.0.0
35087
35348
  */
35088
35349
 
35089
35350
  /**
@@ -36662,7 +36923,7 @@ class RecordingApi {
36662
36923
  /**
36663
36924
  * Recording service.
36664
36925
  * @module purecloud-platform-client-v2/api/RecordingApi
36665
- * @version 159.0.0
36926
+ * @version 160.0.0
36666
36927
  */
36667
36928
 
36668
36929
  /**
@@ -37363,51 +37624,6 @@ class RecordingApi {
37363
37624
  );
37364
37625
  }
37365
37626
 
37366
- /**
37367
- * Get the local encryption settings. Replaced by API recording/keyconfigurations/{keyConfigurationId}
37368
- *
37369
- * @param {String} settingsId Settings Id
37370
- */
37371
- getRecordingLocalkeysSetting(settingsId) {
37372
- // verify the required parameter 'settingsId' is set
37373
- if (settingsId === undefined || settingsId === null) {
37374
- throw 'Missing the required parameter "settingsId" when calling getRecordingLocalkeysSetting';
37375
- }
37376
-
37377
- return this.apiClient.callApi(
37378
- '/api/v2/recording/localkeys/settings/{settingsId}',
37379
- 'GET',
37380
- { 'settingsId': settingsId },
37381
- { },
37382
- { },
37383
- { },
37384
- null,
37385
- ['PureCloud OAuth'],
37386
- ['application/json'],
37387
- ['application/json']
37388
- );
37389
- }
37390
-
37391
- /**
37392
- * gets a list local key settings data. Replaced by API recording/keyconfigurations
37393
- *
37394
- */
37395
- getRecordingLocalkeysSettings() {
37396
-
37397
- return this.apiClient.callApi(
37398
- '/api/v2/recording/localkeys/settings',
37399
- 'GET',
37400
- { },
37401
- { },
37402
- { },
37403
- { },
37404
- null,
37405
- ['PureCloud OAuth'],
37406
- ['application/json'],
37407
- ['application/json']
37408
- );
37409
- }
37410
-
37411
37627
  /**
37412
37628
  * Gets media retention policy list with query options to filter on name and enabled.
37413
37629
  * for a less verbose response, add summary=true to this endpoint
@@ -37890,31 +38106,6 @@ class RecordingApi {
37890
38106
  );
37891
38107
  }
37892
38108
 
37893
- /**
37894
- * create settings for local key creation. Replaced by API recording/keyconfigurations
37895
- *
37896
- * @param {Object} body Local Encryption Configuration
37897
- */
37898
- postRecordingLocalkeysSettings(body) {
37899
- // verify the required parameter 'body' is set
37900
- if (body === undefined || body === null) {
37901
- throw 'Missing the required parameter "body" when calling postRecordingLocalkeysSettings';
37902
- }
37903
-
37904
- return this.apiClient.callApi(
37905
- '/api/v2/recording/localkeys/settings',
37906
- 'POST',
37907
- { },
37908
- { },
37909
- { },
37910
- { },
37911
- body,
37912
- ['PureCloud OAuth'],
37913
- ['application/json'],
37914
- ['application/json']
37915
- );
37916
- }
37917
-
37918
38109
  /**
37919
38110
  * Create media retention policy
37920
38111
  * Policy does not work retroactively
@@ -38258,36 +38449,6 @@ class RecordingApi {
38258
38449
  );
38259
38450
  }
38260
38451
 
38261
- /**
38262
- * Update the local encryption settings. Replaced by API recording/keyconfigurations/{keyConfigurationId}
38263
- *
38264
- * @param {String} settingsId Settings Id
38265
- * @param {Object} body Local Encryption metadata
38266
- */
38267
- putRecordingLocalkeysSetting(settingsId, body) {
38268
- // verify the required parameter 'settingsId' is set
38269
- if (settingsId === undefined || settingsId === null) {
38270
- throw 'Missing the required parameter "settingsId" when calling putRecordingLocalkeysSetting';
38271
- }
38272
- // verify the required parameter 'body' is set
38273
- if (body === undefined || body === null) {
38274
- throw 'Missing the required parameter "body" when calling putRecordingLocalkeysSetting';
38275
- }
38276
-
38277
- return this.apiClient.callApi(
38278
- '/api/v2/recording/localkeys/settings/{settingsId}',
38279
- 'PUT',
38280
- { 'settingsId': settingsId },
38281
- { },
38282
- { },
38283
- { },
38284
- body,
38285
- ['PureCloud OAuth'],
38286
- ['application/json'],
38287
- ['application/json']
38288
- );
38289
- }
38290
-
38291
38452
  /**
38292
38453
  * Update a media retention policy
38293
38454
  * Policy does not work retroactively
@@ -38399,7 +38560,7 @@ class ResponseManagementApi {
38399
38560
  /**
38400
38561
  * ResponseManagement service.
38401
38562
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
38402
- * @version 159.0.0
38563
+ * @version 160.0.0
38403
38564
  */
38404
38565
 
38405
38566
  /**
@@ -38883,7 +39044,7 @@ class RoutingApi {
38883
39044
  /**
38884
39045
  * Routing service.
38885
39046
  * @module purecloud-platform-client-v2/api/RoutingApi
38886
- * @version 159.0.0
39047
+ * @version 160.0.0
38887
39048
  */
38888
39049
 
38889
39050
  /**
@@ -40686,8 +40847,12 @@ class RoutingApi {
40686
40847
  * Get a phone number provisioned for SMS.
40687
40848
  *
40688
40849
  * @param {String} addressId Address ID
40850
+ * @param {Object} opts Optional parameters
40851
+ * @param {Object} opts.expand Expand response with additional information
40689
40852
  */
40690
- getRoutingSmsPhonenumber(addressId) {
40853
+ getRoutingSmsPhonenumber(addressId, opts) {
40854
+ opts = opts || {};
40855
+
40691
40856
  // verify the required parameter 'addressId' is set
40692
40857
  if (addressId === undefined || addressId === null) {
40693
40858
  throw 'Missing the required parameter "addressId" when calling getRoutingSmsPhonenumber';
@@ -40697,7 +40862,7 @@ class RoutingApi {
40697
40862
  '/api/v2/routing/sms/phonenumbers/{addressId}',
40698
40863
  'GET',
40699
40864
  { 'addressId': addressId },
40700
- { },
40865
+ { 'expand': opts['expand'] },
40701
40866
  { },
40702
40867
  { },
40703
40868
  null,
@@ -40931,6 +41096,37 @@ class RoutingApi {
40931
41096
  );
40932
41097
  }
40933
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
+
40934
41130
  /**
40935
41131
  * Update attributes of an in-queue conversation
40936
41132
  * Returns an object indicating the updated values of all settable attributes. Supported attributes: skillIds, languageId, and priority.
@@ -42348,7 +42544,7 @@ class SCIMApi {
42348
42544
  /**
42349
42545
  * SCIM service.
42350
42546
  * @module purecloud-platform-client-v2/api/SCIMApi
42351
- * @version 159.0.0
42547
+ * @version 160.0.0
42352
42548
  */
42353
42549
 
42354
42550
  /**
@@ -43225,7 +43421,7 @@ class ScriptsApi {
43225
43421
  /**
43226
43422
  * Scripts service.
43227
43423
  * @module purecloud-platform-client-v2/api/ScriptsApi
43228
- * @version 159.0.0
43424
+ * @version 160.0.0
43229
43425
  */
43230
43426
 
43231
43427
  /**
@@ -43644,7 +43840,7 @@ class SearchApi {
43644
43840
  /**
43645
43841
  * Search service.
43646
43842
  * @module purecloud-platform-client-v2/api/SearchApi
43647
- * @version 159.0.0
43843
+ * @version 160.0.0
43648
43844
  */
43649
43845
 
43650
43846
  /**
@@ -43911,6 +44107,31 @@ class SearchApi {
43911
44107
  );
43912
44108
  }
43913
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
+
43914
44135
  /**
43915
44136
  * Search gkn documentation
43916
44137
  *
@@ -44229,7 +44450,7 @@ class SpeechTextAnalyticsApi {
44229
44450
  /**
44230
44451
  * SpeechTextAnalytics service.
44231
44452
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
44232
- * @version 159.0.0
44453
+ * @version 160.0.0
44233
44454
  */
44234
44455
 
44235
44456
  /**
@@ -44448,6 +44669,31 @@ class SpeechTextAnalyticsApi {
44448
44669
  );
44449
44670
  }
44450
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
+
44451
44697
  /**
44452
44698
  * Get the list of Speech and Text Analytics programs
44453
44699
  *
@@ -44549,6 +44795,26 @@ class SpeechTextAnalyticsApi {
44549
44795
  );
44550
44796
  }
44551
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
+
44552
44818
  /**
44553
44819
  * Get the list of Speech and Text Analytics unpublished programs
44554
44820
  *
@@ -45022,6 +45288,36 @@ class SpeechTextAnalyticsApi {
45022
45288
  );
45023
45289
  }
45024
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
+
45025
45321
  /**
45026
45322
  * Update Speech And Text Analytics Settings
45027
45323
  *
@@ -45083,7 +45379,7 @@ class StationsApi {
45083
45379
  /**
45084
45380
  * Stations service.
45085
45381
  * @module purecloud-platform-client-v2/api/StationsApi
45086
- * @version 159.0.0
45382
+ * @version 160.0.0
45087
45383
  */
45088
45384
 
45089
45385
  /**
@@ -45230,7 +45526,7 @@ class SuggestApi {
45230
45526
  /**
45231
45527
  * Suggest service.
45232
45528
  * @module purecloud-platform-client-v2/api/SuggestApi
45233
- * @version 159.0.0
45529
+ * @version 160.0.0
45234
45530
  */
45235
45531
 
45236
45532
  /**
@@ -45369,7 +45665,7 @@ class TeamsApi {
45369
45665
  /**
45370
45666
  * Teams service.
45371
45667
  * @module purecloud-platform-client-v2/api/TeamsApi
45372
- * @version 159.0.0
45668
+ * @version 160.0.0
45373
45669
  */
45374
45670
 
45375
45671
  /**
@@ -45640,7 +45936,7 @@ class TelephonyApi {
45640
45936
  /**
45641
45937
  * Telephony service.
45642
45938
  * @module purecloud-platform-client-v2/api/TelephonyApi
45643
- * @version 159.0.0
45939
+ * @version 160.0.0
45644
45940
  */
45645
45941
 
45646
45942
  /**
@@ -45768,7 +46064,7 @@ class TelephonyProvidersEdgeApi {
45768
46064
  /**
45769
46065
  * TelephonyProvidersEdge service.
45770
46066
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
45771
- * @version 159.0.0
46067
+ * @version 160.0.0
45772
46068
  */
45773
46069
 
45774
46070
  /**
@@ -49402,7 +49698,7 @@ class TextbotsApi {
49402
49698
  /**
49403
49699
  * Textbots service.
49404
49700
  * @module purecloud-platform-client-v2/api/TextbotsApi
49405
- * @version 159.0.0
49701
+ * @version 160.0.0
49406
49702
  */
49407
49703
 
49408
49704
  /**
@@ -49530,7 +49826,7 @@ class TokensApi {
49530
49826
  /**
49531
49827
  * Tokens service.
49532
49828
  * @module purecloud-platform-client-v2/api/TokensApi
49533
- * @version 159.0.0
49829
+ * @version 160.0.0
49534
49830
  */
49535
49831
 
49536
49832
  /**
@@ -49636,7 +49932,7 @@ class UploadsApi {
49636
49932
  /**
49637
49933
  * Uploads service.
49638
49934
  * @module purecloud-platform-client-v2/api/UploadsApi
49639
- * @version 159.0.0
49935
+ * @version 160.0.0
49640
49936
  */
49641
49937
 
49642
49938
  /**
@@ -49812,7 +50108,7 @@ class UsageApi {
49812
50108
  /**
49813
50109
  * Usage service.
49814
50110
  * @module purecloud-platform-client-v2/api/UsageApi
49815
- * @version 159.0.0
50111
+ * @version 160.0.0
49816
50112
  */
49817
50113
 
49818
50114
  /**
@@ -49883,7 +50179,7 @@ class UserRecordingsApi {
49883
50179
  /**
49884
50180
  * UserRecordings service.
49885
50181
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
49886
- * @version 159.0.0
50182
+ * @version 160.0.0
49887
50183
  */
49888
50184
 
49889
50185
  /**
@@ -50068,7 +50364,7 @@ class UsersApi {
50068
50364
  /**
50069
50365
  * Users service.
50070
50366
  * @module purecloud-platform-client-v2/api/UsersApi
50071
- * @version 159.0.0
50367
+ * @version 160.0.0
50072
50368
  */
50073
50369
 
50074
50370
  /**
@@ -50997,6 +51293,37 @@ class UsersApi {
50997
51293
  );
50998
51294
  }
50999
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
+
51000
51327
  /**
51001
51328
  * Get user state information.
51002
51329
  *
@@ -52425,7 +52752,7 @@ class UtilitiesApi {
52425
52752
  /**
52426
52753
  * Utilities service.
52427
52754
  * @module purecloud-platform-client-v2/api/UtilitiesApi
52428
- * @version 159.0.0
52755
+ * @version 160.0.0
52429
52756
  */
52430
52757
 
52431
52758
  /**
@@ -52536,7 +52863,7 @@ class VoicemailApi {
52536
52863
  /**
52537
52864
  * Voicemail service.
52538
52865
  * @module purecloud-platform-client-v2/api/VoicemailApi
52539
- * @version 159.0.0
52866
+ * @version 160.0.0
52540
52867
  */
52541
52868
 
52542
52869
  /**
@@ -53203,7 +53530,7 @@ class WebChatApi {
53203
53530
  /**
53204
53531
  * WebChat service.
53205
53532
  * @module purecloud-platform-client-v2/api/WebChatApi
53206
- * @version 159.0.0
53533
+ * @version 160.0.0
53207
53534
  */
53208
53535
 
53209
53536
  /**
@@ -53747,7 +54074,7 @@ class WebDeploymentsApi {
53747
54074
  /**
53748
54075
  * WebDeployments service.
53749
54076
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
53750
- * @version 159.0.0
54077
+ * @version 160.0.0
53751
54078
  */
53752
54079
 
53753
54080
  /**
@@ -54269,7 +54596,7 @@ class WebMessagingApi {
54269
54596
  /**
54270
54597
  * WebMessaging service.
54271
54598
  * @module purecloud-platform-client-v2/api/WebMessagingApi
54272
- * @version 159.0.0
54599
+ * @version 160.0.0
54273
54600
  */
54274
54601
 
54275
54602
  /**
@@ -54315,7 +54642,7 @@ class WidgetsApi {
54315
54642
  /**
54316
54643
  * Widgets service.
54317
54644
  * @module purecloud-platform-client-v2/api/WidgetsApi
54318
- * @version 159.0.0
54645
+ * @version 160.0.0
54319
54646
  */
54320
54647
 
54321
54648
  /**
@@ -54461,7 +54788,7 @@ class WorkforceManagementApi {
54461
54788
  /**
54462
54789
  * WorkforceManagement service.
54463
54790
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
54464
- * @version 159.0.0
54791
+ * @version 160.0.0
54465
54792
  */
54466
54793
 
54467
54794
  /**
@@ -57496,6 +57823,31 @@ class WorkforceManagementApi {
57496
57823
  );
57497
57824
  }
57498
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
+
57499
57851
  /**
57500
57852
  * Get published schedule for the current user
57501
57853
  *
@@ -59180,7 +59532,7 @@ class WorkforceManagementApi {
59180
59532
  * </pre>
59181
59533
  * </p>
59182
59534
  * @module purecloud-platform-client-v2/index
59183
- * @version 159.0.0
59535
+ * @version 160.0.0
59184
59536
  */
59185
59537
  class platformClient {
59186
59538
  constructor() {
@@ -59304,6 +59656,11 @@ class platformClient {
59304
59656
  * @property {module:purecloud-platform-client-v2/api/IdentityProviderApi}
59305
59657
  */
59306
59658
  this.IdentityProviderApi = IdentityProviderApi;
59659
+ /**
59660
+ * The InfrastructureAsCodeApi service constructor.
59661
+ * @property {module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi}
59662
+ */
59663
+ this.InfrastructureAsCodeApi = InfrastructureAsCodeApi;
59307
59664
  /**
59308
59665
  * The IntegrationsApi service constructor.
59309
59666
  * @property {module:purecloud-platform-client-v2/api/IntegrationsApi}