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
@@ -2277,9 +2277,11 @@ class Configuration {
2277
2277
  }
2278
2278
  }
2279
2279
 
2280
+ const { HttpsProxyAgent } = require('hpagent');
2281
+
2280
2282
  /**
2281
2283
  * @module purecloud-platform-client-v2/ApiClient
2282
- * @version 158.0.0
2284
+ * @version 160.0.0
2283
2285
  */
2284
2286
  class ApiClient {
2285
2287
  /**
@@ -2548,16 +2550,21 @@ class ApiClient {
2548
2550
  reject(new Error('The client credentials grant is not supported in a browser.'));
2549
2551
  return;
2550
2552
  }
2551
-
2552
2553
  const headers = {
2553
2554
  'Authorization': `Basic ${authHeader}`
2554
2555
  };
2556
+ let httpsAgent;
2557
+ if (this.proxy !== undefined){
2558
+ httpsAgent = new HttpsProxyAgent({
2559
+ proxy : `${this.proxy.protocol}://${this.proxy.host}:${this.proxy.port}`
2560
+ });
2561
+ }
2555
2562
  axios__default["default"]({
2556
2563
  method: `POST`,
2557
2564
  url: `https://login.${this.config.environment}/oauth/token`,
2558
2565
  headers: headers,
2559
2566
  data: 'grant_type=client_credentials',
2560
- proxy: this.proxy
2567
+ httpsAgent: httpsAgent
2561
2568
  })
2562
2569
  .then((response) => {
2563
2570
  // Logging
@@ -3247,10 +3254,16 @@ class ApiClient {
3247
3254
  sendRequest(this);
3248
3255
  function sendRequest(that) {
3249
3256
  var url = that.buildUrl(path, pathParams);
3257
+ let httpsAgent;
3258
+ if (that.proxy !== undefined){
3259
+ httpsAgent = new HttpsProxyAgent({
3260
+ proxy : `${that.proxy.protocol}://${that.proxy.host}:${that.proxy.port}`
3261
+ });
3262
+ }
3250
3263
  var request = {
3251
3264
  method: httpMethod,
3252
3265
  url: url,
3253
- proxy: that.proxy,
3266
+ httpsAgent: httpsAgent,
3254
3267
  timeout: that.timeout,
3255
3268
  params: that.serialize(queryParams)
3256
3269
  };
@@ -3351,7 +3364,7 @@ class AlertingApi {
3351
3364
  /**
3352
3365
  * Alerting service.
3353
3366
  * @module purecloud-platform-client-v2/api/AlertingApi
3354
- * @version 158.0.0
3367
+ * @version 160.0.0
3355
3368
  */
3356
3369
 
3357
3370
  /**
@@ -3665,7 +3678,7 @@ class AnalyticsApi {
3665
3678
  /**
3666
3679
  * Analytics service.
3667
3680
  * @module purecloud-platform-client-v2/api/AnalyticsApi
3668
- * @version 158.0.0
3681
+ * @version 160.0.0
3669
3682
  */
3670
3683
 
3671
3684
  /**
@@ -4919,7 +4932,7 @@ class ArchitectApi {
4919
4932
  /**
4920
4933
  * Architect service.
4921
4934
  * @module purecloud-platform-client-v2/api/ArchitectApi
4922
- * @version 158.0.0
4935
+ * @version 160.0.0
4923
4936
  */
4924
4937
 
4925
4938
  /**
@@ -7967,7 +7980,7 @@ class AuditApi {
7967
7980
  /**
7968
7981
  * Audit service.
7969
7982
  * @module purecloud-platform-client-v2/api/AuditApi
7970
- * @version 158.0.0
7983
+ * @version 160.0.0
7971
7984
  */
7972
7985
 
7973
7986
  /**
@@ -8138,7 +8151,7 @@ class AuthorizationApi {
8138
8151
  /**
8139
8152
  * Authorization service.
8140
8153
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8141
- * @version 158.0.0
8154
+ * @version 160.0.0
8142
8155
  */
8143
8156
 
8144
8157
  /**
@@ -9366,7 +9379,7 @@ class BillingApi {
9366
9379
  /**
9367
9380
  * Billing service.
9368
9381
  * @module purecloud-platform-client-v2/api/BillingApi
9369
- * @version 158.0.0
9382
+ * @version 160.0.0
9370
9383
  */
9371
9384
 
9372
9385
  /**
@@ -9446,7 +9459,7 @@ class ChatApi {
9446
9459
  /**
9447
9460
  * Chat service.
9448
9461
  * @module purecloud-platform-client-v2/api/ChatApi
9449
- * @version 158.0.0
9462
+ * @version 160.0.0
9450
9463
  */
9451
9464
 
9452
9465
  /**
@@ -9537,7 +9550,7 @@ class CoachingApi {
9537
9550
  /**
9538
9551
  * Coaching service.
9539
9552
  * @module purecloud-platform-client-v2/api/CoachingApi
9540
- * @version 158.0.0
9553
+ * @version 160.0.0
9541
9554
  */
9542
9555
 
9543
9556
  /**
@@ -10114,7 +10127,7 @@ class ContentManagementApi {
10114
10127
  /**
10115
10128
  * ContentManagement service.
10116
10129
  * @module purecloud-platform-client-v2/api/ContentManagementApi
10117
- * @version 158.0.0
10130
+ * @version 160.0.0
10118
10131
  */
10119
10132
 
10120
10133
  /**
@@ -11254,7 +11267,7 @@ class ConversationsApi {
11254
11267
  /**
11255
11268
  * Conversations service.
11256
11269
  * @module purecloud-platform-client-v2/api/ConversationsApi
11257
- * @version 158.0.0
11270
+ * @version 160.0.0
11258
11271
  */
11259
11272
 
11260
11273
  /**
@@ -14642,7 +14655,7 @@ class ConversationsApi {
14642
14655
  }
14643
14656
 
14644
14657
  /**
14645
- * Creates a cobrowse session
14658
+ * Creates a cobrowse session. Requires conversation:cobrowse:add (for web messaging) or conversation:cobrowsevoice:add permission.
14646
14659
  *
14647
14660
  * @param {String} conversationId Conversation ID
14648
14661
  */
@@ -15956,6 +15969,31 @@ class ConversationsApi {
15956
15969
  );
15957
15970
  }
15958
15971
 
15972
+ /**
15973
+ * Search conversations
15974
+ *
15975
+ * @param {Object} body Search request options
15976
+ */
15977
+ postConversationsParticipantsAttributesSearch(body) {
15978
+ // verify the required parameter 'body' is set
15979
+ if (body === undefined || body === null) {
15980
+ throw 'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';
15981
+ }
15982
+
15983
+ return this.apiClient.callApi(
15984
+ '/api/v2/conversations/participants/attributes/search',
15985
+ 'POST',
15986
+ { },
15987
+ { },
15988
+ { },
15989
+ { },
15990
+ body,
15991
+ ['PureCloud OAuth'],
15992
+ ['application/json'],
15993
+ ['application/json']
15994
+ );
15995
+ }
15996
+
15959
15997
  /**
15960
15998
  * Set flagged reason on conversation participant to indicate bad conversation quality.
15961
15999
  *
@@ -16502,7 +16540,7 @@ class DataExtensionsApi {
16502
16540
  /**
16503
16541
  * DataExtensions service.
16504
16542
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
16505
- * @version 158.0.0
16543
+ * @version 160.0.0
16506
16544
  */
16507
16545
 
16508
16546
  /**
@@ -16588,7 +16626,7 @@ class DownloadsApi {
16588
16626
  /**
16589
16627
  * Downloads service.
16590
16628
  * @module purecloud-platform-client-v2/api/DownloadsApi
16591
- * @version 158.0.0
16629
+ * @version 160.0.0
16592
16630
  */
16593
16631
 
16594
16632
  /**
@@ -16640,7 +16678,7 @@ class EventsApi {
16640
16678
  /**
16641
16679
  * Events service.
16642
16680
  * @module purecloud-platform-client-v2/api/EventsApi
16643
- * @version 158.0.0
16681
+ * @version 160.0.0
16644
16682
  */
16645
16683
 
16646
16684
  /**
@@ -16736,7 +16774,7 @@ class ExternalContactsApi {
16736
16774
  /**
16737
16775
  * ExternalContacts service.
16738
16776
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
16739
- * @version 158.0.0
16777
+ * @version 160.0.0
16740
16778
  */
16741
16779
 
16742
16780
  /**
@@ -18694,7 +18732,7 @@ class FaxApi {
18694
18732
  /**
18695
18733
  * Fax service.
18696
18734
  * @module purecloud-platform-client-v2/api/FaxApi
18697
- * @version 158.0.0
18735
+ * @version 160.0.0
18698
18736
  */
18699
18737
 
18700
18738
  /**
@@ -18865,7 +18903,7 @@ class FlowsApi {
18865
18903
  /**
18866
18904
  * Flows service.
18867
18905
  * @module purecloud-platform-client-v2/api/FlowsApi
18868
- * @version 158.0.0
18906
+ * @version 160.0.0
18869
18907
  */
18870
18908
 
18871
18909
  /**
@@ -18936,7 +18974,7 @@ class GamificationApi {
18936
18974
  /**
18937
18975
  * Gamification service.
18938
18976
  * @module purecloud-platform-client-v2/api/GamificationApi
18939
- * @version 158.0.0
18977
+ * @version 160.0.0
18940
18978
  */
18941
18979
 
18942
18980
  /**
@@ -20553,7 +20591,7 @@ class GeneralDataProtectionRegulationApi {
20553
20591
  /**
20554
20592
  * GeneralDataProtectionRegulation service.
20555
20593
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
20556
- * @version 158.0.0
20594
+ * @version 160.0.0
20557
20595
  */
20558
20596
 
20559
20597
  /**
@@ -20683,7 +20721,7 @@ class GeolocationApi {
20683
20721
  /**
20684
20722
  * Geolocation service.
20685
20723
  * @module purecloud-platform-client-v2/api/GeolocationApi
20686
- * @version 158.0.0
20724
+ * @version 160.0.0
20687
20725
  */
20688
20726
 
20689
20727
  /**
@@ -20814,7 +20852,7 @@ class GreetingsApi {
20814
20852
  /**
20815
20853
  * Greetings service.
20816
20854
  * @module purecloud-platform-client-v2/api/GreetingsApi
20817
- * @version 158.0.0
20855
+ * @version 160.0.0
20818
20856
  */
20819
20857
 
20820
20858
  /**
@@ -21269,7 +21307,7 @@ class GroupsApi {
21269
21307
  /**
21270
21308
  * Groups service.
21271
21309
  * @module purecloud-platform-client-v2/api/GroupsApi
21272
- * @version 158.0.0
21310
+ * @version 160.0.0
21273
21311
  */
21274
21312
 
21275
21313
  /**
@@ -21675,7 +21713,7 @@ class IdentityProviderApi {
21675
21713
  /**
21676
21714
  * IdentityProvider service.
21677
21715
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
21678
- * @version 158.0.0
21716
+ * @version 160.0.0
21679
21717
  */
21680
21718
 
21681
21719
  /**
@@ -22427,11 +22465,113 @@ class IdentityProviderApi {
22427
22465
 
22428
22466
  }
22429
22467
 
22468
+ class InfrastructureAsCodeApi {
22469
+ /**
22470
+ * InfrastructureAsCode service.
22471
+ * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
22472
+ * @version 160.0.0
22473
+ */
22474
+
22475
+ /**
22476
+ * Constructs a new InfrastructureAsCodeApi.
22477
+ * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
22478
+ * @class
22479
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
22480
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
22481
+ */
22482
+ constructor(apiClient) {
22483
+ this.apiClient = apiClient || ApiClient.instance;
22484
+ }
22485
+
22486
+
22487
+ /**
22488
+ * Get job status and results
22489
+ * Get the execution status of a submitted job, optionally including results and error details.
22490
+ * @param {String} jobId Job ID
22491
+ * @param {Object} opts Optional parameters
22492
+ * @param {Boolean} opts.details Include details of execution, including job results or error information (default to false)
22493
+ */
22494
+ getInfrastructureascodeJob(jobId, opts) {
22495
+ opts = opts || {};
22496
+
22497
+ // verify the required parameter 'jobId' is set
22498
+ if (jobId === undefined || jobId === null) {
22499
+ throw 'Missing the required parameter "jobId" when calling getInfrastructureascodeJob';
22500
+ }
22501
+
22502
+ return this.apiClient.callApi(
22503
+ '/api/v2/infrastructureascode/jobs/{jobId}',
22504
+ 'GET',
22505
+ { 'jobId': jobId },
22506
+ { 'details': opts['details'] },
22507
+ { },
22508
+ { },
22509
+ null,
22510
+ ['PureCloud OAuth'],
22511
+ ['application/json'],
22512
+ ['application/json']
22513
+ );
22514
+ }
22515
+
22516
+ /**
22517
+ * Get job history
22518
+ * Get a history of submitted jobs, optionally including error messages.
22519
+ * @param {Object} opts Optional parameters
22520
+ * @param {Number} opts.maxResults Number of jobs to show (default to 1)
22521
+ * @param {Boolean} opts.includeErrors Include error messages (default to false)
22522
+ * @param {Object} opts.sortBy Sort by (default to id)
22523
+ * @param {Object} opts.sortOrder Sort order (default to asc)
22524
+ */
22525
+ getInfrastructureascodeJobs(opts) {
22526
+ opts = opts || {};
22527
+
22528
+
22529
+ return this.apiClient.callApi(
22530
+ '/api/v2/infrastructureascode/jobs',
22531
+ 'GET',
22532
+ { },
22533
+ { 'maxResults': opts['maxResults'],'includeErrors': opts['includeErrors'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
22534
+ { },
22535
+ { },
22536
+ null,
22537
+ ['PureCloud OAuth'],
22538
+ ['application/json'],
22539
+ ['application/json']
22540
+ );
22541
+ }
22542
+
22543
+ /**
22544
+ * Create a Job
22545
+ * Create and submit a job for remote execution or see job planning results.
22546
+ * @param {Object} body
22547
+ */
22548
+ postInfrastructureascodeJobs(body) {
22549
+ // verify the required parameter 'body' is set
22550
+ if (body === undefined || body === null) {
22551
+ throw 'Missing the required parameter "body" when calling postInfrastructureascodeJobs';
22552
+ }
22553
+
22554
+ return this.apiClient.callApi(
22555
+ '/api/v2/infrastructureascode/jobs',
22556
+ 'POST',
22557
+ { },
22558
+ { },
22559
+ { },
22560
+ { },
22561
+ body,
22562
+ ['PureCloud OAuth'],
22563
+ ['application/json'],
22564
+ ['application/json']
22565
+ );
22566
+ }
22567
+
22568
+ }
22569
+
22430
22570
  class IntegrationsApi {
22431
22571
  /**
22432
22572
  * Integrations service.
22433
22573
  * @module purecloud-platform-client-v2/api/IntegrationsApi
22434
- * @version 158.0.0
22574
+ * @version 160.0.0
22435
22575
  */
22436
22576
 
22437
22577
  /**
@@ -24031,7 +24171,7 @@ class JourneyApi {
24031
24171
  /**
24032
24172
  * Journey service.
24033
24173
  * @module purecloud-platform-client-v2/api/JourneyApi
24034
- * @version 158.0.0
24174
+ * @version 160.0.0
24035
24175
  */
24036
24176
 
24037
24177
  /**
@@ -24125,6 +24265,31 @@ class JourneyApi {
24125
24265
  );
24126
24266
  }
24127
24267
 
24268
+ /**
24269
+ * Delete an outcome predictor.
24270
+ *
24271
+ * @param {String} predictorId ID of predictor
24272
+ */
24273
+ deleteJourneyOutcomesPredictor(predictorId) {
24274
+ // verify the required parameter 'predictorId' is set
24275
+ if (predictorId === undefined || predictorId === null) {
24276
+ throw 'Missing the required parameter "predictorId" when calling deleteJourneyOutcomesPredictor';
24277
+ }
24278
+
24279
+ return this.apiClient.callApi(
24280
+ '/api/v2/journey/outcomes/predictors/{predictorId}',
24281
+ 'DELETE',
24282
+ { 'predictorId': predictorId },
24283
+ { },
24284
+ { },
24285
+ { },
24286
+ null,
24287
+ ['PureCloud OAuth'],
24288
+ ['application/json'],
24289
+ ['application/json']
24290
+ );
24291
+ }
24292
+
24128
24293
  /**
24129
24294
  * Delete a segment.
24130
24295
  *
@@ -24415,6 +24580,51 @@ class JourneyApi {
24415
24580
  );
24416
24581
  }
24417
24582
 
24583
+ /**
24584
+ * Retrieve a single outcome predictor.
24585
+ *
24586
+ * @param {String} predictorId ID of predictor
24587
+ */
24588
+ getJourneyOutcomesPredictor(predictorId) {
24589
+ // verify the required parameter 'predictorId' is set
24590
+ if (predictorId === undefined || predictorId === null) {
24591
+ throw 'Missing the required parameter "predictorId" when calling getJourneyOutcomesPredictor';
24592
+ }
24593
+
24594
+ return this.apiClient.callApi(
24595
+ '/api/v2/journey/outcomes/predictors/{predictorId}',
24596
+ 'GET',
24597
+ { 'predictorId': predictorId },
24598
+ { },
24599
+ { },
24600
+ { },
24601
+ null,
24602
+ ['PureCloud OAuth'],
24603
+ ['application/json'],
24604
+ ['application/json']
24605
+ );
24606
+ }
24607
+
24608
+ /**
24609
+ * Retrieve all outcome predictors.
24610
+ *
24611
+ */
24612
+ getJourneyOutcomesPredictors() {
24613
+
24614
+ return this.apiClient.callApi(
24615
+ '/api/v2/journey/outcomes/predictors',
24616
+ 'GET',
24617
+ { },
24618
+ { },
24619
+ { },
24620
+ { },
24621
+ null,
24622
+ ['PureCloud OAuth'],
24623
+ ['application/json'],
24624
+ ['application/json']
24625
+ );
24626
+ }
24627
+
24418
24628
  /**
24419
24629
  * Retrieve a single segment.
24420
24630
  *
@@ -24787,6 +24997,30 @@ class JourneyApi {
24787
24997
  );
24788
24998
  }
24789
24999
 
25000
+ /**
25001
+ * Create an outcome predictor.
25002
+ *
25003
+ * @param {Object} opts Optional parameters
25004
+ * @param {Object} opts.body
25005
+ */
25006
+ postJourneyOutcomesPredictors(opts) {
25007
+ opts = opts || {};
25008
+
25009
+
25010
+ return this.apiClient.callApi(
25011
+ '/api/v2/journey/outcomes/predictors',
25012
+ 'POST',
25013
+ { },
25014
+ { },
25015
+ { },
25016
+ { },
25017
+ opts['body'],
25018
+ ['PureCloud OAuth'],
25019
+ ['application/json'],
25020
+ ['application/json']
25021
+ );
25022
+ }
25023
+
24790
25024
  /**
24791
25025
  * Create a segment.
24792
25026
  *
@@ -24817,7 +25051,7 @@ class KnowledgeApi {
24817
25051
  /**
24818
25052
  * Knowledge service.
24819
25053
  * @module purecloud-platform-client-v2/api/KnowledgeApi
24820
- * @version 158.0.0
25054
+ * @version 160.0.0
24821
25055
  */
24822
25056
 
24823
25057
  /**
@@ -25220,7 +25454,6 @@ class KnowledgeApi {
25220
25454
  * @param {String} sessionId Knowledge guest session ID.
25221
25455
  * @param {Object} opts Optional parameters
25222
25456
  * @param {Array.<String>} opts.categoryId If specified, retrieves documents associated with category ids, comma separated values expected.
25223
- * @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.
25224
25457
  * @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 10)
25225
25458
  */
25226
25459
  getKnowledgeGuestSessionDocuments(sessionId, opts) {
@@ -25235,7 +25468,7 @@ class KnowledgeApi {
25235
25468
  '/api/v2/knowledge/guest/sessions/{sessionId}/documents',
25236
25469
  'GET',
25237
25470
  { 'sessionId': sessionId },
25238
- { 'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'includeSubcategories': opts['includeSubcategories'],'pageSize': opts['pageSize'] },
25471
+ { 'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'pageSize': opts['pageSize'] },
25239
25472
  { },
25240
25473
  { },
25241
25474
  null,
@@ -27250,7 +27483,7 @@ class LanguageUnderstandingApi {
27250
27483
  /**
27251
27484
  * LanguageUnderstanding service.
27252
27485
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
27253
- * @version 158.0.0
27486
+ * @version 160.0.0
27254
27487
  */
27255
27488
 
27256
27489
  /**
@@ -28263,7 +28496,7 @@ class LanguagesApi {
28263
28496
  /**
28264
28497
  * Languages service.
28265
28498
  * @module purecloud-platform-client-v2/api/LanguagesApi
28266
- * @version 158.0.0
28499
+ * @version 160.0.0
28267
28500
  */
28268
28501
 
28269
28502
  /**
@@ -28481,7 +28714,7 @@ class LearningApi {
28481
28714
  /**
28482
28715
  * Learning service.
28483
28716
  * @module purecloud-platform-client-v2/api/LearningApi
28484
- * @version 158.0.0
28717
+ * @version 160.0.0
28485
28718
  */
28486
28719
 
28487
28720
  /**
@@ -28889,6 +29122,35 @@ class LearningApi {
28889
29122
  );
28890
29123
  }
28891
29124
 
29125
+ /**
29126
+ * Reschedule Learning Assignment
29127
+ *
29128
+ * @param {String} assignmentId The ID of Learning Assignment
29129
+ * @param {Object} opts Optional parameters
29130
+ * @param {Object} opts.body The Learning assignment reschedule model
29131
+ */
29132
+ patchLearningAssignmentReschedule(assignmentId, opts) {
29133
+ opts = opts || {};
29134
+
29135
+ // verify the required parameter 'assignmentId' is set
29136
+ if (assignmentId === undefined || assignmentId === null) {
29137
+ throw 'Missing the required parameter "assignmentId" when calling patchLearningAssignmentReschedule';
29138
+ }
29139
+
29140
+ return this.apiClient.callApi(
29141
+ '/api/v2/learning/assignments/{assignmentId}/reschedule',
29142
+ 'PATCH',
29143
+ { 'assignmentId': assignmentId },
29144
+ { },
29145
+ { },
29146
+ { },
29147
+ opts['body'],
29148
+ ['PureCloud OAuth'],
29149
+ ['application/json'],
29150
+ ['application/json']
29151
+ );
29152
+ }
29153
+
28892
29154
  /**
28893
29155
  * Score learning assessment for preview
28894
29156
  *
@@ -29176,6 +29438,31 @@ class LearningApi {
29176
29438
  );
29177
29439
  }
29178
29440
 
29441
+ /**
29442
+ * Get list of possible slots where a learning activity can be scheduled.
29443
+ *
29444
+ * @param {Object} body The slot search request
29445
+ */
29446
+ postLearningScheduleslotsQuery(body) {
29447
+ // verify the required parameter 'body' is set
29448
+ if (body === undefined || body === null) {
29449
+ throw 'Missing the required parameter "body" when calling postLearningScheduleslotsQuery';
29450
+ }
29451
+
29452
+ return this.apiClient.callApi(
29453
+ '/api/v2/learning/scheduleslots/query',
29454
+ 'POST',
29455
+ { },
29456
+ { },
29457
+ { },
29458
+ { },
29459
+ body,
29460
+ ['PureCloud OAuth'],
29461
+ ['application/json'],
29462
+ ['application/json']
29463
+ );
29464
+ }
29465
+
29179
29466
  /**
29180
29467
  * Update a learning module
29181
29468
  * This will update the name, description, completion time in days and inform steps for a learning module
@@ -29242,7 +29529,7 @@ class LicenseApi {
29242
29529
  /**
29243
29530
  * License service.
29244
29531
  * @module purecloud-platform-client-v2/api/LicenseApi
29245
- * @version 158.0.0
29532
+ * @version 160.0.0
29246
29533
  */
29247
29534
 
29248
29535
  /**
@@ -29480,7 +29767,7 @@ class LocationsApi {
29480
29767
  /**
29481
29768
  * Locations service.
29482
29769
  * @module purecloud-platform-client-v2/api/LocationsApi
29483
- * @version 158.0.0
29770
+ * @version 160.0.0
29484
29771
  */
29485
29772
 
29486
29773
  /**
@@ -29716,7 +30003,7 @@ class MessagingApi {
29716
30003
  /**
29717
30004
  * Messaging service.
29718
30005
  * @module purecloud-platform-client-v2/api/MessagingApi
29719
- * @version 158.0.0
30006
+ * @version 160.0.0
29720
30007
  */
29721
30008
 
29722
30009
  /**
@@ -29867,7 +30154,7 @@ class MobileDevicesApi {
29867
30154
  /**
29868
30155
  * MobileDevices service.
29869
30156
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
29870
- * @version 158.0.0
30157
+ * @version 160.0.0
29871
30158
  */
29872
30159
 
29873
30160
  /**
@@ -30018,7 +30305,7 @@ class NotificationsApi {
30018
30305
  /**
30019
30306
  * Notifications service.
30020
30307
  * @module purecloud-platform-client-v2/api/NotificationsApi
30021
- * @version 158.0.0
30308
+ * @version 160.0.0
30022
30309
  */
30023
30310
 
30024
30311
  /**
@@ -30162,8 +30449,12 @@ class NotificationsApi {
30162
30449
  *
30163
30450
  * @param {String} channelId Channel ID
30164
30451
  * @param {Array.<Object>} body Body
30452
+ * @param {Object} opts Optional parameters
30453
+ * @param {Boolean} opts.ignoreErrors Optionally prevent throwing of errors for failed permissions checks. (default to false)
30165
30454
  */
30166
- postNotificationsChannelSubscriptions(channelId, body) {
30455
+ postNotificationsChannelSubscriptions(channelId, body, opts) {
30456
+ opts = opts || {};
30457
+
30167
30458
  // verify the required parameter 'channelId' is set
30168
30459
  if (channelId === undefined || channelId === null) {
30169
30460
  throw 'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';
@@ -30177,7 +30468,7 @@ class NotificationsApi {
30177
30468
  '/api/v2/notifications/channels/{channelId}/subscriptions',
30178
30469
  'POST',
30179
30470
  { 'channelId': channelId },
30180
- { },
30471
+ { 'ignoreErrors': opts['ignoreErrors'] },
30181
30472
  { },
30182
30473
  { },
30183
30474
  body,
@@ -30212,8 +30503,12 @@ class NotificationsApi {
30212
30503
  *
30213
30504
  * @param {String} channelId Channel ID
30214
30505
  * @param {Array.<Object>} body Body
30506
+ * @param {Object} opts Optional parameters
30507
+ * @param {Boolean} opts.ignoreErrors Optionally prevent throwing of errors for failed permissions checks. (default to false)
30215
30508
  */
30216
- putNotificationsChannelSubscriptions(channelId, body) {
30509
+ putNotificationsChannelSubscriptions(channelId, body, opts) {
30510
+ opts = opts || {};
30511
+
30217
30512
  // verify the required parameter 'channelId' is set
30218
30513
  if (channelId === undefined || channelId === null) {
30219
30514
  throw 'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';
@@ -30227,7 +30522,7 @@ class NotificationsApi {
30227
30522
  '/api/v2/notifications/channels/{channelId}/subscriptions',
30228
30523
  'PUT',
30229
30524
  { 'channelId': channelId },
30230
- { },
30525
+ { 'ignoreErrors': opts['ignoreErrors'] },
30231
30526
  { },
30232
30527
  { },
30233
30528
  body,
@@ -30243,7 +30538,7 @@ class OAuthApi {
30243
30538
  /**
30244
30539
  * OAuth service.
30245
30540
  * @module purecloud-platform-client-v2/api/OAuthApi
30246
- * @version 158.0.0
30541
+ * @version 160.0.0
30247
30542
  */
30248
30543
 
30249
30544
  /**
@@ -30609,7 +30904,7 @@ class ObjectsApi {
30609
30904
  /**
30610
30905
  * Objects service.
30611
30906
  * @module purecloud-platform-client-v2/api/ObjectsApi
30612
- * @version 158.0.0
30907
+ * @version 160.0.0
30613
30908
  */
30614
30909
 
30615
30910
  /**
@@ -30880,7 +31175,7 @@ class OrganizationApi {
30880
31175
  /**
30881
31176
  * Organization service.
30882
31177
  * @module purecloud-platform-client-v2/api/OrganizationApi
30883
- * @version 158.0.0
31178
+ * @version 160.0.0
30884
31179
  */
30885
31180
 
30886
31181
  /**
@@ -31283,7 +31578,7 @@ class OrganizationAuthorizationApi {
31283
31578
  /**
31284
31579
  * OrganizationAuthorization service.
31285
31580
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
31286
- * @version 158.0.0
31581
+ * @version 160.0.0
31287
31582
  */
31288
31583
 
31289
31584
  /**
@@ -32578,7 +32873,7 @@ class OutboundApi {
32578
32873
  /**
32579
32874
  * Outbound service.
32580
32875
  * @module purecloud-platform-client-v2/api/OutboundApi
32581
- * @version 158.0.0
32876
+ * @version 160.0.0
32582
32877
  */
32583
32878
 
32584
32879
  /**
@@ -32928,6 +33223,35 @@ class OutboundApi {
32928
33223
  );
32929
33224
  }
32930
33225
 
33226
+ /**
33227
+ * Deletes all or expired custom exclusion column entries from a DNC list.
33228
+ * This operation is only for Internal DNC lists of custom exclusion column entries
33229
+ * @param {String} dncListId DncList ID
33230
+ * @param {Object} opts Optional parameters
33231
+ * @param {Boolean} opts.expiredOnly Set to true to only remove DNC entries that are expired (default to false)
33232
+ */
33233
+ deleteOutboundDnclistCustomexclusioncolumns(dncListId, opts) {
33234
+ opts = opts || {};
33235
+
33236
+ // verify the required parameter 'dncListId' is set
33237
+ if (dncListId === undefined || dncListId === null) {
33238
+ throw 'Missing the required parameter "dncListId" when calling deleteOutboundDnclistCustomexclusioncolumns';
33239
+ }
33240
+
33241
+ return this.apiClient.callApi(
33242
+ '/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns',
33243
+ 'DELETE',
33244
+ { 'dncListId': dncListId },
33245
+ { 'expiredOnly': opts['expiredOnly'] },
33246
+ { },
33247
+ { },
33248
+ null,
33249
+ ['PureCloud OAuth'],
33250
+ ['application/json'],
33251
+ ['application/json']
33252
+ );
33253
+ }
33254
+
32931
33255
  /**
32932
33256
  * Deletes all or expired email addresses from a DNC list.
32933
33257
  * This operation is Only for Internal DNC lists of email addresses
@@ -34756,6 +35080,36 @@ class OutboundApi {
34756
35080
  );
34757
35081
  }
34758
35082
 
35083
+ /**
35084
+ * Add entries to or delete entries from a DNC list.
35085
+ * Only Internal DNC lists may be deleted from
35086
+ * @param {String} dncListId DncList ID
35087
+ * @param {Object} body DNC Custom exclusion column entries
35088
+ */
35089
+ patchOutboundDnclistCustomexclusioncolumns(dncListId, body) {
35090
+ // verify the required parameter 'dncListId' is set
35091
+ if (dncListId === undefined || dncListId === null) {
35092
+ throw 'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';
35093
+ }
35094
+ // verify the required parameter 'body' is set
35095
+ if (body === undefined || body === null) {
35096
+ throw 'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';
35097
+ }
35098
+
35099
+ return this.apiClient.callApi(
35100
+ '/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns',
35101
+ 'PATCH',
35102
+ { 'dncListId': dncListId },
35103
+ { },
35104
+ { },
35105
+ { },
35106
+ body,
35107
+ ['PureCloud OAuth'],
35108
+ ['application/json'],
35109
+ ['application/json']
35110
+ );
35111
+ }
35112
+
34759
35113
  /**
34760
35114
  * Add emails to or Delete emails from a DNC list.
34761
35115
  * Only Internal DNC lists may be added to or deleted from
@@ -36115,7 +36469,7 @@ class PresenceApi {
36115
36469
  /**
36116
36470
  * Presence service.
36117
36471
  * @module purecloud-platform-client-v2/api/PresenceApi
36118
- * @version 158.0.0
36472
+ * @version 160.0.0
36119
36473
  */
36120
36474
 
36121
36475
  /**
@@ -36621,7 +36975,7 @@ class ProcessAutomationApi {
36621
36975
  /**
36622
36976
  * ProcessAutomation service.
36623
36977
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
36624
- * @version 158.0.0
36978
+ * @version 160.0.0
36625
36979
  */
36626
36980
 
36627
36981
  /**
@@ -36860,7 +37214,7 @@ class QualityApi {
36860
37214
  /**
36861
37215
  * Quality service.
36862
37216
  * @module purecloud-platform-client-v2/api/QualityApi
36863
- * @version 158.0.0
37217
+ * @version 160.0.0
36864
37218
  */
36865
37219
 
36866
37220
  /**
@@ -37122,7 +37476,7 @@ class QualityApi {
37122
37476
  * @param {String} conversationId conversationId
37123
37477
  * @param {String} evaluationId evaluationId
37124
37478
  * @param {Object} opts Optional parameters
37125
- * @param {String} opts.expand agent, evaluator, evaluationForm
37479
+ * @param {String} opts.expand agent, assignee, evaluator, evaluationForm
37126
37480
  */
37127
37481
  getQualityConversationEvaluation(conversationId, evaluationId, opts) {
37128
37482
  opts = opts || {};
@@ -37233,7 +37587,7 @@ class QualityApi {
37233
37587
 
37234
37588
  /**
37235
37589
  * Queries Evaluations and returns a paged list
37236
- * 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.
37590
+ * 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.
37237
37591
  * @param {Object} opts Optional parameters
37238
37592
  * @param {Number} opts.pageSize The total page size requested (default to 25)
37239
37593
  * @param {Number} opts.pageNumber The page number requested (default to 1)
@@ -37244,6 +37598,7 @@ class QualityApi {
37244
37598
  * @param {String} opts.conversationId conversationId specified
37245
37599
  * @param {String} opts.agentUserId user id of the agent
37246
37600
  * @param {String} opts.evaluatorUserId evaluator user id
37601
+ * @param {String} opts.assigneeUserId assignee user id
37247
37602
  * @param {String} opts.queueId queue id
37248
37603
  * @param {String} opts.startTime start time of the evaluation query
37249
37604
  * @param {String} opts.endTime end time of the evaluation query
@@ -37262,7 +37617,7 @@ class QualityApi {
37262
37617
  '/api/v2/quality/evaluations/query',
37263
37618
  'GET',
37264
37619
  { },
37265
- { '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'] },
37620
+ { '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'] },
37266
37621
  { },
37267
37622
  { },
37268
37623
  null,
@@ -38438,7 +38793,7 @@ class RecordingApi {
38438
38793
  /**
38439
38794
  * Recording service.
38440
38795
  * @module purecloud-platform-client-v2/api/RecordingApi
38441
- * @version 158.0.0
38796
+ * @version 160.0.0
38442
38797
  */
38443
38798
 
38444
38799
  /**
@@ -39139,51 +39494,6 @@ class RecordingApi {
39139
39494
  );
39140
39495
  }
39141
39496
 
39142
- /**
39143
- * Get the local encryption settings. Replaced by API recording/keyconfigurations/{keyConfigurationId}
39144
- *
39145
- * @param {String} settingsId Settings Id
39146
- */
39147
- getRecordingLocalkeysSetting(settingsId) {
39148
- // verify the required parameter 'settingsId' is set
39149
- if (settingsId === undefined || settingsId === null) {
39150
- throw 'Missing the required parameter "settingsId" when calling getRecordingLocalkeysSetting';
39151
- }
39152
-
39153
- return this.apiClient.callApi(
39154
- '/api/v2/recording/localkeys/settings/{settingsId}',
39155
- 'GET',
39156
- { 'settingsId': settingsId },
39157
- { },
39158
- { },
39159
- { },
39160
- null,
39161
- ['PureCloud OAuth'],
39162
- ['application/json'],
39163
- ['application/json']
39164
- );
39165
- }
39166
-
39167
- /**
39168
- * gets a list local key settings data. Replaced by API recording/keyconfigurations
39169
- *
39170
- */
39171
- getRecordingLocalkeysSettings() {
39172
-
39173
- return this.apiClient.callApi(
39174
- '/api/v2/recording/localkeys/settings',
39175
- 'GET',
39176
- { },
39177
- { },
39178
- { },
39179
- { },
39180
- null,
39181
- ['PureCloud OAuth'],
39182
- ['application/json'],
39183
- ['application/json']
39184
- );
39185
- }
39186
-
39187
39497
  /**
39188
39498
  * Gets media retention policy list with query options to filter on name and enabled.
39189
39499
  * for a less verbose response, add summary=true to this endpoint
@@ -39568,7 +39878,7 @@ class RecordingApi {
39568
39878
 
39569
39879
  /**
39570
39880
  * Create a recording bulk job.
39571
- * 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.
39881
+ * 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.
39572
39882
  * @param {Object} body query
39573
39883
  */
39574
39884
  postRecordingJobs(body) {
@@ -39666,31 +39976,6 @@ class RecordingApi {
39666
39976
  );
39667
39977
  }
39668
39978
 
39669
- /**
39670
- * create settings for local key creation. Replaced by API recording/keyconfigurations
39671
- *
39672
- * @param {Object} body Local Encryption Configuration
39673
- */
39674
- postRecordingLocalkeysSettings(body) {
39675
- // verify the required parameter 'body' is set
39676
- if (body === undefined || body === null) {
39677
- throw 'Missing the required parameter "body" when calling postRecordingLocalkeysSettings';
39678
- }
39679
-
39680
- return this.apiClient.callApi(
39681
- '/api/v2/recording/localkeys/settings',
39682
- 'POST',
39683
- { },
39684
- { },
39685
- { },
39686
- { },
39687
- body,
39688
- ['PureCloud OAuth'],
39689
- ['application/json'],
39690
- ['application/json']
39691
- );
39692
- }
39693
-
39694
39979
  /**
39695
39980
  * Create media retention policy
39696
39981
  * Policy does not work retroactively
@@ -40034,36 +40319,6 @@ class RecordingApi {
40034
40319
  );
40035
40320
  }
40036
40321
 
40037
- /**
40038
- * Update the local encryption settings. Replaced by API recording/keyconfigurations/{keyConfigurationId}
40039
- *
40040
- * @param {String} settingsId Settings Id
40041
- * @param {Object} body Local Encryption metadata
40042
- */
40043
- putRecordingLocalkeysSetting(settingsId, body) {
40044
- // verify the required parameter 'settingsId' is set
40045
- if (settingsId === undefined || settingsId === null) {
40046
- throw 'Missing the required parameter "settingsId" when calling putRecordingLocalkeysSetting';
40047
- }
40048
- // verify the required parameter 'body' is set
40049
- if (body === undefined || body === null) {
40050
- throw 'Missing the required parameter "body" when calling putRecordingLocalkeysSetting';
40051
- }
40052
-
40053
- return this.apiClient.callApi(
40054
- '/api/v2/recording/localkeys/settings/{settingsId}',
40055
- 'PUT',
40056
- { 'settingsId': settingsId },
40057
- { },
40058
- { },
40059
- { },
40060
- body,
40061
- ['PureCloud OAuth'],
40062
- ['application/json'],
40063
- ['application/json']
40064
- );
40065
- }
40066
-
40067
40322
  /**
40068
40323
  * Update a media retention policy
40069
40324
  * Policy does not work retroactively
@@ -40175,7 +40430,7 @@ class ResponseManagementApi {
40175
40430
  /**
40176
40431
  * ResponseManagement service.
40177
40432
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
40178
- * @version 158.0.0
40433
+ * @version 160.0.0
40179
40434
  */
40180
40435
 
40181
40436
  /**
@@ -40659,7 +40914,7 @@ class RoutingApi {
40659
40914
  /**
40660
40915
  * Routing service.
40661
40916
  * @module purecloud-platform-client-v2/api/RoutingApi
40662
- * @version 158.0.0
40917
+ * @version 160.0.0
40663
40918
  */
40664
40919
 
40665
40920
  /**
@@ -42462,8 +42717,12 @@ class RoutingApi {
42462
42717
  * Get a phone number provisioned for SMS.
42463
42718
  *
42464
42719
  * @param {String} addressId Address ID
42720
+ * @param {Object} opts Optional parameters
42721
+ * @param {Object} opts.expand Expand response with additional information
42465
42722
  */
42466
- getRoutingSmsPhonenumber(addressId) {
42723
+ getRoutingSmsPhonenumber(addressId, opts) {
42724
+ opts = opts || {};
42725
+
42467
42726
  // verify the required parameter 'addressId' is set
42468
42727
  if (addressId === undefined || addressId === null) {
42469
42728
  throw 'Missing the required parameter "addressId" when calling getRoutingSmsPhonenumber';
@@ -42473,7 +42732,7 @@ class RoutingApi {
42473
42732
  '/api/v2/routing/sms/phonenumbers/{addressId}',
42474
42733
  'GET',
42475
42734
  { 'addressId': addressId },
42476
- { },
42735
+ { 'expand': opts['expand'] },
42477
42736
  { },
42478
42737
  { },
42479
42738
  null,
@@ -42707,6 +42966,37 @@ class RoutingApi {
42707
42966
  );
42708
42967
  }
42709
42968
 
42969
+ /**
42970
+ * Get skill groups for a user
42971
+ *
42972
+ * @param {String} userId User ID
42973
+ * @param {Object} opts Optional parameters
42974
+ * @param {Number} opts.pageSize Page size (default to 25)
42975
+ * @param {String} opts.after The cursor that points to the next page
42976
+ * @param {String} opts.before The cursor that points to the previous page
42977
+ */
42978
+ getUserSkillgroups(userId, opts) {
42979
+ opts = opts || {};
42980
+
42981
+ // verify the required parameter 'userId' is set
42982
+ if (userId === undefined || userId === null) {
42983
+ throw 'Missing the required parameter "userId" when calling getUserSkillgroups';
42984
+ }
42985
+
42986
+ return this.apiClient.callApi(
42987
+ '/api/v2/users/{userId}/skillgroups',
42988
+ 'GET',
42989
+ { 'userId': userId },
42990
+ { 'pageSize': opts['pageSize'],'after': opts['after'],'before': opts['before'] },
42991
+ { },
42992
+ { },
42993
+ null,
42994
+ ['PureCloud OAuth'],
42995
+ ['application/json'],
42996
+ ['application/json']
42997
+ );
42998
+ }
42999
+
42710
43000
  /**
42711
43001
  * Update attributes of an in-queue conversation
42712
43002
  * Returns an object indicating the updated values of all settable attributes. Supported attributes: skillIds, languageId, and priority.
@@ -44124,7 +44414,7 @@ class SCIMApi {
44124
44414
  /**
44125
44415
  * SCIM service.
44126
44416
  * @module purecloud-platform-client-v2/api/SCIMApi
44127
- * @version 158.0.0
44417
+ * @version 160.0.0
44128
44418
  */
44129
44419
 
44130
44420
  /**
@@ -45001,7 +45291,7 @@ class ScriptsApi {
45001
45291
  /**
45002
45292
  * Scripts service.
45003
45293
  * @module purecloud-platform-client-v2/api/ScriptsApi
45004
- * @version 158.0.0
45294
+ * @version 160.0.0
45005
45295
  */
45006
45296
 
45007
45297
  /**
@@ -45420,7 +45710,7 @@ class SearchApi {
45420
45710
  /**
45421
45711
  * Search service.
45422
45712
  * @module purecloud-platform-client-v2/api/SearchApi
45423
- * @version 158.0.0
45713
+ * @version 160.0.0
45424
45714
  */
45425
45715
 
45426
45716
  /**
@@ -45687,6 +45977,31 @@ class SearchApi {
45687
45977
  );
45688
45978
  }
45689
45979
 
45980
+ /**
45981
+ * Search conversations
45982
+ *
45983
+ * @param {Object} body Search request options
45984
+ */
45985
+ postConversationsParticipantsAttributesSearch(body) {
45986
+ // verify the required parameter 'body' is set
45987
+ if (body === undefined || body === null) {
45988
+ throw 'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';
45989
+ }
45990
+
45991
+ return this.apiClient.callApi(
45992
+ '/api/v2/conversations/participants/attributes/search',
45993
+ 'POST',
45994
+ { },
45995
+ { },
45996
+ { },
45997
+ { },
45998
+ body,
45999
+ ['PureCloud OAuth'],
46000
+ ['application/json'],
46001
+ ['application/json']
46002
+ );
46003
+ }
46004
+
45690
46005
  /**
45691
46006
  * Search gkn documentation
45692
46007
  *
@@ -46005,7 +46320,7 @@ class SpeechTextAnalyticsApi {
46005
46320
  /**
46006
46321
  * SpeechTextAnalytics service.
46007
46322
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
46008
- * @version 158.0.0
46323
+ * @version 160.0.0
46009
46324
  */
46010
46325
 
46011
46326
  /**
@@ -46224,6 +46539,31 @@ class SpeechTextAnalyticsApi {
46224
46539
  );
46225
46540
  }
46226
46541
 
46542
+ /**
46543
+ * Get transcription engine settings of a program
46544
+ *
46545
+ * @param {String} programId The id of the program
46546
+ */
46547
+ getSpeechandtextanalyticsProgramTranscriptionengines(programId) {
46548
+ // verify the required parameter 'programId' is set
46549
+ if (programId === undefined || programId === null) {
46550
+ throw 'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramTranscriptionengines';
46551
+ }
46552
+
46553
+ return this.apiClient.callApi(
46554
+ '/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines',
46555
+ 'GET',
46556
+ { 'programId': programId },
46557
+ { },
46558
+ { },
46559
+ { },
46560
+ null,
46561
+ ['PureCloud OAuth'],
46562
+ ['application/json'],
46563
+ ['application/json']
46564
+ );
46565
+ }
46566
+
46227
46567
  /**
46228
46568
  * Get the list of Speech and Text Analytics programs
46229
46569
  *
@@ -46325,6 +46665,26 @@ class SpeechTextAnalyticsApi {
46325
46665
  );
46326
46666
  }
46327
46667
 
46668
+ /**
46669
+ * Get supported dialects for each transcription engine
46670
+ *
46671
+ */
46672
+ getSpeechandtextanalyticsProgramsTranscriptionenginesDialects() {
46673
+
46674
+ return this.apiClient.callApi(
46675
+ '/api/v2/speechandtextanalytics/programs/transcriptionengines/dialects',
46676
+ 'GET',
46677
+ { },
46678
+ { },
46679
+ { },
46680
+ { },
46681
+ null,
46682
+ ['PureCloud OAuth'],
46683
+ ['application/json'],
46684
+ ['application/json']
46685
+ );
46686
+ }
46687
+
46328
46688
  /**
46329
46689
  * Get the list of Speech and Text Analytics unpublished programs
46330
46690
  *
@@ -46798,6 +47158,36 @@ class SpeechTextAnalyticsApi {
46798
47158
  );
46799
47159
  }
46800
47160
 
47161
+ /**
47162
+ * Update transcription engine settings of a program
47163
+ *
47164
+ * @param {String} programId The id of the program
47165
+ * @param {Object} body Program transcription engine setting
47166
+ */
47167
+ putSpeechandtextanalyticsProgramTranscriptionengines(programId, body) {
47168
+ // verify the required parameter 'programId' is set
47169
+ if (programId === undefined || programId === null) {
47170
+ throw 'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';
47171
+ }
47172
+ // verify the required parameter 'body' is set
47173
+ if (body === undefined || body === null) {
47174
+ throw 'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';
47175
+ }
47176
+
47177
+ return this.apiClient.callApi(
47178
+ '/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines',
47179
+ 'PUT',
47180
+ { 'programId': programId },
47181
+ { },
47182
+ { },
47183
+ { },
47184
+ body,
47185
+ ['PureCloud OAuth'],
47186
+ ['application/json'],
47187
+ ['application/json']
47188
+ );
47189
+ }
47190
+
46801
47191
  /**
46802
47192
  * Update Speech And Text Analytics Settings
46803
47193
  *
@@ -46859,7 +47249,7 @@ class StationsApi {
46859
47249
  /**
46860
47250
  * Stations service.
46861
47251
  * @module purecloud-platform-client-v2/api/StationsApi
46862
- * @version 158.0.0
47252
+ * @version 160.0.0
46863
47253
  */
46864
47254
 
46865
47255
  /**
@@ -47006,7 +47396,7 @@ class SuggestApi {
47006
47396
  /**
47007
47397
  * Suggest service.
47008
47398
  * @module purecloud-platform-client-v2/api/SuggestApi
47009
- * @version 158.0.0
47399
+ * @version 160.0.0
47010
47400
  */
47011
47401
 
47012
47402
  /**
@@ -47145,7 +47535,7 @@ class TeamsApi {
47145
47535
  /**
47146
47536
  * Teams service.
47147
47537
  * @module purecloud-platform-client-v2/api/TeamsApi
47148
- * @version 158.0.0
47538
+ * @version 160.0.0
47149
47539
  */
47150
47540
 
47151
47541
  /**
@@ -47416,7 +47806,7 @@ class TelephonyApi {
47416
47806
  /**
47417
47807
  * Telephony service.
47418
47808
  * @module purecloud-platform-client-v2/api/TelephonyApi
47419
- * @version 158.0.0
47809
+ * @version 160.0.0
47420
47810
  */
47421
47811
 
47422
47812
  /**
@@ -47544,7 +47934,7 @@ class TelephonyProvidersEdgeApi {
47544
47934
  /**
47545
47935
  * TelephonyProvidersEdge service.
47546
47936
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
47547
- * @version 158.0.0
47937
+ * @version 160.0.0
47548
47938
  */
47549
47939
 
47550
47940
  /**
@@ -48550,6 +48940,7 @@ class TelephonyProvidersEdgeApi {
48550
48940
  * @param {String} opts.edgeGroupId Filter by edgeGroup.id
48551
48941
  * @param {String} opts.sortBy Sort by (default to name)
48552
48942
  * @param {Boolean} opts.managed Filter by managed
48943
+ * @param {Boolean} opts.showCloudMedia True to show the cloud media devices in the result. (default to true)
48553
48944
  */
48554
48945
  getTelephonyProvidersEdges(opts) {
48555
48946
  opts = opts || {};
@@ -48559,7 +48950,7 @@ class TelephonyProvidersEdgeApi {
48559
48950
  '/api/v2/telephony/providers/edges',
48560
48951
  'GET',
48561
48952
  { },
48562
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'name': opts['name'],'site.id': opts['siteId'],'edgeGroup.id': opts['edgeGroupId'],'sortBy': opts['sortBy'],'managed': opts['managed'] },
48953
+ { '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'] },
48563
48954
  { },
48564
48955
  { },
48565
48956
  null,
@@ -51177,7 +51568,7 @@ class TextbotsApi {
51177
51568
  /**
51178
51569
  * Textbots service.
51179
51570
  * @module purecloud-platform-client-v2/api/TextbotsApi
51180
- * @version 158.0.0
51571
+ * @version 160.0.0
51181
51572
  */
51182
51573
 
51183
51574
  /**
@@ -51305,7 +51696,7 @@ class TokensApi {
51305
51696
  /**
51306
51697
  * Tokens service.
51307
51698
  * @module purecloud-platform-client-v2/api/TokensApi
51308
- * @version 158.0.0
51699
+ * @version 160.0.0
51309
51700
  */
51310
51701
 
51311
51702
  /**
@@ -51411,7 +51802,7 @@ class UploadsApi {
51411
51802
  /**
51412
51803
  * Uploads service.
51413
51804
  * @module purecloud-platform-client-v2/api/UploadsApi
51414
- * @version 158.0.0
51805
+ * @version 160.0.0
51415
51806
  */
51416
51807
 
51417
51808
  /**
@@ -51587,7 +51978,7 @@ class UsageApi {
51587
51978
  /**
51588
51979
  * Usage service.
51589
51980
  * @module purecloud-platform-client-v2/api/UsageApi
51590
- * @version 158.0.0
51981
+ * @version 160.0.0
51591
51982
  */
51592
51983
 
51593
51984
  /**
@@ -51658,7 +52049,7 @@ class UserRecordingsApi {
51658
52049
  /**
51659
52050
  * UserRecordings service.
51660
52051
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
51661
- * @version 158.0.0
52052
+ * @version 160.0.0
51662
52053
  */
51663
52054
 
51664
52055
  /**
@@ -51843,7 +52234,7 @@ class UsersApi {
51843
52234
  /**
51844
52235
  * Users service.
51845
52236
  * @module purecloud-platform-client-v2/api/UsersApi
51846
- * @version 158.0.0
52237
+ * @version 160.0.0
51847
52238
  */
51848
52239
 
51849
52240
  /**
@@ -52772,6 +53163,37 @@ class UsersApi {
52772
53163
  );
52773
53164
  }
52774
53165
 
53166
+ /**
53167
+ * Get skill groups for a user
53168
+ *
53169
+ * @param {String} userId User ID
53170
+ * @param {Object} opts Optional parameters
53171
+ * @param {Number} opts.pageSize Page size (default to 25)
53172
+ * @param {String} opts.after The cursor that points to the next page
53173
+ * @param {String} opts.before The cursor that points to the previous page
53174
+ */
53175
+ getUserSkillgroups(userId, opts) {
53176
+ opts = opts || {};
53177
+
53178
+ // verify the required parameter 'userId' is set
53179
+ if (userId === undefined || userId === null) {
53180
+ throw 'Missing the required parameter "userId" when calling getUserSkillgroups';
53181
+ }
53182
+
53183
+ return this.apiClient.callApi(
53184
+ '/api/v2/users/{userId}/skillgroups',
53185
+ 'GET',
53186
+ { 'userId': userId },
53187
+ { 'pageSize': opts['pageSize'],'after': opts['after'],'before': opts['before'] },
53188
+ { },
53189
+ { },
53190
+ null,
53191
+ ['PureCloud OAuth'],
53192
+ ['application/json'],
53193
+ ['application/json']
53194
+ );
53195
+ }
53196
+
52775
53197
  /**
52776
53198
  * Get user state information.
52777
53199
  *
@@ -54200,7 +54622,7 @@ class UtilitiesApi {
54200
54622
  /**
54201
54623
  * Utilities service.
54202
54624
  * @module purecloud-platform-client-v2/api/UtilitiesApi
54203
- * @version 158.0.0
54625
+ * @version 160.0.0
54204
54626
  */
54205
54627
 
54206
54628
  /**
@@ -54311,7 +54733,7 @@ class VoicemailApi {
54311
54733
  /**
54312
54734
  * Voicemail service.
54313
54735
  * @module purecloud-platform-client-v2/api/VoicemailApi
54314
- * @version 158.0.0
54736
+ * @version 160.0.0
54315
54737
  */
54316
54738
 
54317
54739
  /**
@@ -54978,7 +55400,7 @@ class WebChatApi {
54978
55400
  /**
54979
55401
  * WebChat service.
54980
55402
  * @module purecloud-platform-client-v2/api/WebChatApi
54981
- * @version 158.0.0
55403
+ * @version 160.0.0
54982
55404
  */
54983
55405
 
54984
55406
  /**
@@ -55522,7 +55944,7 @@ class WebDeploymentsApi {
55522
55944
  /**
55523
55945
  * WebDeployments service.
55524
55946
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
55525
- * @version 158.0.0
55947
+ * @version 160.0.0
55526
55948
  */
55527
55949
 
55528
55950
  /**
@@ -56044,7 +56466,7 @@ class WebMessagingApi {
56044
56466
  /**
56045
56467
  * WebMessaging service.
56046
56468
  * @module purecloud-platform-client-v2/api/WebMessagingApi
56047
- * @version 158.0.0
56469
+ * @version 160.0.0
56048
56470
  */
56049
56471
 
56050
56472
  /**
@@ -56090,7 +56512,7 @@ class WidgetsApi {
56090
56512
  /**
56091
56513
  * Widgets service.
56092
56514
  * @module purecloud-platform-client-v2/api/WidgetsApi
56093
- * @version 158.0.0
56515
+ * @version 160.0.0
56094
56516
  */
56095
56517
 
56096
56518
  /**
@@ -56236,7 +56658,7 @@ class WorkforceManagementApi {
56236
56658
  /**
56237
56659
  * WorkforceManagement service.
56238
56660
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
56239
- * @version 158.0.0
56661
+ * @version 160.0.0
56240
56662
  */
56241
56663
 
56242
56664
  /**
@@ -59271,6 +59693,31 @@ class WorkforceManagementApi {
59271
59693
  );
59272
59694
  }
59273
59695
 
59696
+ /**
59697
+ * Get agent possible work shifts for requested time frame
59698
+ *
59699
+ * @param {Object} body body
59700
+ */
59701
+ postWorkforcemanagementAgentsMePossibleworkshifts(body) {
59702
+ // verify the required parameter 'body' is set
59703
+ if (body === undefined || body === null) {
59704
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';
59705
+ }
59706
+
59707
+ return this.apiClient.callApi(
59708
+ '/api/v2/workforcemanagement/agents/me/possibleworkshifts',
59709
+ 'POST',
59710
+ { },
59711
+ { },
59712
+ { },
59713
+ { },
59714
+ body,
59715
+ ['PureCloud OAuth'],
59716
+ ['application/json'],
59717
+ ['application/json']
59718
+ );
59719
+ }
59720
+
59274
59721
  /**
59275
59722
  * Get published schedule for the current user
59276
59723
  *
@@ -60955,7 +61402,7 @@ class WorkforceManagementApi {
60955
61402
  * </pre>
60956
61403
  * </p>
60957
61404
  * @module purecloud-platform-client-v2/index
60958
- * @version 158.0.0
61405
+ * @version 160.0.0
60959
61406
  */
60960
61407
  class platformClient {
60961
61408
  constructor() {
@@ -61079,6 +61526,11 @@ class platformClient {
61079
61526
  * @property {module:purecloud-platform-client-v2/api/IdentityProviderApi}
61080
61527
  */
61081
61528
  this.IdentityProviderApi = IdentityProviderApi;
61529
+ /**
61530
+ * The InfrastructureAsCodeApi service constructor.
61531
+ * @property {module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi}
61532
+ */
61533
+ this.InfrastructureAsCodeApi = InfrastructureAsCodeApi;
61082
61534
  /**
61083
61535
  * The IntegrationsApi service constructor.
61084
61536
  * @property {module:purecloud-platform-client-v2/api/IntegrationsApi}