purecloud-platform-client-v2 146.0.0 → 148.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 (75) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +660 -198
  3. package/dist/web-amd/purecloud-platform-client-v2.js +660 -198
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +660 -198
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +661 -199
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +490 -145
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +46 -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 +1 -1
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -51
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +3 -2
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -78
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +76 -1
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +3 -2
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/OutboundApi.js +135 -1
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +243 -0
  49. package/src/purecloud-platform-client-v2/api/QualityApi.js +4 -4
  50. package/src/purecloud-platform-client-v2/api/RecordingApi.js +31 -1
  51. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +3 -2
  67. package/src/purecloud-platform-client-v2/api/UsersApi.js +31 -1
  68. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +30 -1
  72. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -5358,7 +5358,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
5358
5358
  throw new $TypeError('"allowMissing" argument must be a boolean');
5359
5359
  }
5360
5360
 
5361
- if ($exec(/^%?[^%]*%?$/g, name) === null) {
5361
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
5362
5362
  throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
5363
5363
  }
5364
5364
  var parts = stringToPath(name);
@@ -9307,7 +9307,7 @@ class Configuration {
9307
9307
 
9308
9308
  /**
9309
9309
  * @module purecloud-platform-client-v2/ApiClient
9310
- * @version 146.0.0
9310
+ * @version 148.0.0
9311
9311
  */
9312
9312
  class ApiClient {
9313
9313
  /**
@@ -10379,7 +10379,7 @@ class AlertingApi {
10379
10379
  /**
10380
10380
  * Alerting service.
10381
10381
  * @module purecloud-platform-client-v2/api/AlertingApi
10382
- * @version 146.0.0
10382
+ * @version 148.0.0
10383
10383
  */
10384
10384
 
10385
10385
  /**
@@ -10693,7 +10693,7 @@ class AnalyticsApi {
10693
10693
  /**
10694
10694
  * Analytics service.
10695
10695
  * @module purecloud-platform-client-v2/api/AnalyticsApi
10696
- * @version 146.0.0
10696
+ * @version 148.0.0
10697
10697
  */
10698
10698
 
10699
10699
  /**
@@ -10939,6 +10939,26 @@ class AnalyticsApi {
10939
10939
  );
10940
10940
  }
10941
10941
 
10942
+ /**
10943
+ * Get analytics data retention setting
10944
+ *
10945
+ */
10946
+ getAnalyticsDataretentionSettings() {
10947
+
10948
+ return this.apiClient.callApi(
10949
+ '/api/v2/analytics/dataretention/settings',
10950
+ 'GET',
10951
+ { },
10952
+ { },
10953
+ { },
10954
+ { },
10955
+ null,
10956
+ ['PureCloud OAuth'],
10957
+ ['application/json'],
10958
+ ['application/json']
10959
+ );
10960
+ }
10961
+
10942
10962
  /**
10943
10963
  * Get all view export requests for a user
10944
10964
  *
@@ -11839,6 +11859,31 @@ class AnalyticsApi {
11839
11859
  );
11840
11860
  }
11841
11861
 
11862
+ /**
11863
+ * Update analytics data retention setting
11864
+ *
11865
+ * @param {Object} body retentionDays
11866
+ */
11867
+ putAnalyticsDataretentionSettings(body) {
11868
+ // verify the required parameter 'body' is set
11869
+ if (body === undefined || body === null) {
11870
+ throw 'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';
11871
+ }
11872
+
11873
+ return this.apiClient.callApi(
11874
+ '/api/v2/analytics/dataretention/settings',
11875
+ 'PUT',
11876
+ { },
11877
+ { },
11878
+ { },
11879
+ { },
11880
+ body,
11881
+ ['PureCloud OAuth'],
11882
+ ['application/json'],
11883
+ ['application/json']
11884
+ );
11885
+ }
11886
+
11842
11887
  /**
11843
11888
  * Update a scheduled report job.
11844
11889
  *
@@ -11875,7 +11920,7 @@ class ArchitectApi {
11875
11920
  /**
11876
11921
  * Architect service.
11877
11922
  * @module purecloud-platform-client-v2/api/ArchitectApi
11878
- * @version 146.0.0
11923
+ * @version 148.0.0
11879
11924
  */
11880
11925
 
11881
11926
  /**
@@ -14921,7 +14966,7 @@ class AuditApi {
14921
14966
  /**
14922
14967
  * Audit service.
14923
14968
  * @module purecloud-platform-client-v2/api/AuditApi
14924
- * @version 146.0.0
14969
+ * @version 148.0.0
14925
14970
  */
14926
14971
 
14927
14972
  /**
@@ -15092,7 +15137,7 @@ class AuthorizationApi {
15092
15137
  /**
15093
15138
  * Authorization service.
15094
15139
  * @module purecloud-platform-client-v2/api/AuthorizationApi
15095
- * @version 146.0.0
15140
+ * @version 148.0.0
15096
15141
  */
15097
15142
 
15098
15143
  /**
@@ -16275,7 +16320,7 @@ class BillingApi {
16275
16320
  /**
16276
16321
  * Billing service.
16277
16322
  * @module purecloud-platform-client-v2/api/BillingApi
16278
- * @version 146.0.0
16323
+ * @version 148.0.0
16279
16324
  */
16280
16325
 
16281
16326
  /**
@@ -16355,7 +16400,7 @@ class ChatApi {
16355
16400
  /**
16356
16401
  * Chat service.
16357
16402
  * @module purecloud-platform-client-v2/api/ChatApi
16358
- * @version 146.0.0
16403
+ * @version 148.0.0
16359
16404
  */
16360
16405
 
16361
16406
  /**
@@ -16446,7 +16491,7 @@ class CoachingApi {
16446
16491
  /**
16447
16492
  * Coaching service.
16448
16493
  * @module purecloud-platform-client-v2/api/CoachingApi
16449
- * @version 146.0.0
16494
+ * @version 148.0.0
16450
16495
  */
16451
16496
 
16452
16497
  /**
@@ -17023,7 +17068,7 @@ class ContentManagementApi {
17023
17068
  /**
17024
17069
  * ContentManagement service.
17025
17070
  * @module purecloud-platform-client-v2/api/ContentManagementApi
17026
- * @version 146.0.0
17071
+ * @version 148.0.0
17027
17072
  */
17028
17073
 
17029
17074
  /**
@@ -18163,7 +18208,7 @@ class ConversationsApi {
18163
18208
  /**
18164
18209
  * Conversations service.
18165
18210
  * @module purecloud-platform-client-v2/api/ConversationsApi
18166
- * @version 146.0.0
18211
+ * @version 148.0.0
18167
18212
  */
18168
18213
 
18169
18214
  /**
@@ -23307,7 +23352,7 @@ class DataExtensionsApi {
23307
23352
  /**
23308
23353
  * DataExtensions service.
23309
23354
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
23310
- * @version 146.0.0
23355
+ * @version 148.0.0
23311
23356
  */
23312
23357
 
23313
23358
  /**
@@ -23393,7 +23438,7 @@ class ExternalContactsApi {
23393
23438
  /**
23394
23439
  * ExternalContacts service.
23395
23440
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
23396
- * @version 146.0.0
23441
+ * @version 148.0.0
23397
23442
  */
23398
23443
 
23399
23444
  /**
@@ -25136,7 +25181,7 @@ class FaxApi {
25136
25181
  /**
25137
25182
  * Fax service.
25138
25183
  * @module purecloud-platform-client-v2/api/FaxApi
25139
- * @version 146.0.0
25184
+ * @version 148.0.0
25140
25185
  */
25141
25186
 
25142
25187
  /**
@@ -25307,7 +25352,7 @@ class FlowsApi {
25307
25352
  /**
25308
25353
  * Flows service.
25309
25354
  * @module purecloud-platform-client-v2/api/FlowsApi
25310
- * @version 146.0.0
25355
+ * @version 148.0.0
25311
25356
  */
25312
25357
 
25313
25358
  /**
@@ -25378,7 +25423,7 @@ class GamificationApi {
25378
25423
  /**
25379
25424
  * Gamification service.
25380
25425
  * @module purecloud-platform-client-v2/api/GamificationApi
25381
- * @version 146.0.0
25426
+ * @version 148.0.0
25382
25427
  */
25383
25428
 
25384
25429
  /**
@@ -25671,31 +25716,6 @@ class GamificationApi {
25671
25716
  );
25672
25717
  }
25673
25718
 
25674
- /**
25675
- * All gamified metrics for a given profile
25676
- * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
25677
- * @param {Object} opts Optional parameters
25678
- * @param {String} opts.performanceProfileId The profile id of the metrics you are trying to retrieve. The DEFAULT profile is used if nothing is given.
25679
- * @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
25680
- */
25681
- getGamificationMetrics(opts) {
25682
- opts = opts || {};
25683
-
25684
-
25685
- return this.apiClient.callApi(
25686
- '/api/v2/gamification/metrics',
25687
- 'GET',
25688
- { },
25689
- { 'performanceProfileId': opts['performanceProfileId'],'workday': opts['workday'] },
25690
- { },
25691
- { },
25692
- null,
25693
- ['PureCloud OAuth'],
25694
- ['application/json'],
25695
- ['application/json']
25696
- );
25697
- }
25698
-
25699
25719
  /**
25700
25720
  * Performance profile by id
25701
25721
  *
@@ -26751,31 +26771,6 @@ class GamificationApi {
26751
26771
  );
26752
26772
  }
26753
26773
 
26754
- /**
26755
- * Creates a gamified metric with a given metric definition and metric objective
26756
- * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
26757
- * @param {Object} body Metric
26758
- */
26759
- postGamificationMetrics(body) {
26760
- // verify the required parameter 'body' is set
26761
- if (body === undefined || body === null) {
26762
- throw 'Missing the required parameter "body" when calling postGamificationMetrics';
26763
- }
26764
-
26765
- return this.apiClient.callApi(
26766
- '/api/v2/gamification/metrics',
26767
- 'POST',
26768
- { },
26769
- { },
26770
- { },
26771
- { },
26772
- body,
26773
- ['PureCloud OAuth'],
26774
- ['application/json'],
26775
- ['application/json']
26776
- );
26777
- }
26778
-
26779
26774
  /**
26780
26775
  * Activate a performance profile
26781
26776
  *
@@ -27109,7 +27104,7 @@ class GeneralDataProtectionRegulationApi {
27109
27104
  /**
27110
27105
  * GeneralDataProtectionRegulation service.
27111
27106
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
27112
- * @version 146.0.0
27107
+ * @version 148.0.0
27113
27108
  */
27114
27109
 
27115
27110
  /**
@@ -27239,7 +27234,7 @@ class GeolocationApi {
27239
27234
  /**
27240
27235
  * Geolocation service.
27241
27236
  * @module purecloud-platform-client-v2/api/GeolocationApi
27242
- * @version 146.0.0
27237
+ * @version 148.0.0
27243
27238
  */
27244
27239
 
27245
27240
  /**
@@ -27370,7 +27365,7 @@ class GreetingsApi {
27370
27365
  /**
27371
27366
  * Greetings service.
27372
27367
  * @module purecloud-platform-client-v2/api/GreetingsApi
27373
- * @version 146.0.0
27368
+ * @version 148.0.0
27374
27369
  */
27375
27370
 
27376
27371
  /**
@@ -27825,7 +27820,7 @@ class GroupsApi {
27825
27820
  /**
27826
27821
  * Groups service.
27827
27822
  * @module purecloud-platform-client-v2/api/GroupsApi
27828
- * @version 146.0.0
27823
+ * @version 148.0.0
27829
27824
  */
27830
27825
 
27831
27826
  /**
@@ -28095,6 +28090,7 @@ class GroupsApi {
28095
28090
  * @param {Number} opts.pageSize Page size (default to 25)
28096
28091
  * @param {Number} opts.pageNumber Page number (default to 1)
28097
28092
  * @param {Array.<String>} opts.id id
28093
+ * @param {Array.<String>} opts.jabberId A list of jabberIds to fetch by bulk (cannot be used with the id parameter)
28098
28094
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
28099
28095
  */
28100
28096
  getProfilesGroups(opts) {
@@ -28105,7 +28101,7 @@ class GroupsApi {
28105
28101
  '/api/v2/profiles/groups',
28106
28102
  'GET',
28107
28103
  { },
28108
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'sortOrder': opts['sortOrder'] },
28104
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'jabberId': this.apiClient.buildCollectionParam(opts['jabberId'], 'multi'),'sortOrder': opts['sortOrder'] },
28109
28105
  { },
28110
28106
  { },
28111
28107
  null,
@@ -28230,7 +28226,7 @@ class IdentityProviderApi {
28230
28226
  /**
28231
28227
  * IdentityProvider service.
28232
28228
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
28233
- * @version 146.0.0
28229
+ * @version 148.0.0
28234
28230
  */
28235
28231
 
28236
28232
  /**
@@ -28986,7 +28982,7 @@ class IntegrationsApi {
28986
28982
  /**
28987
28983
  * Integrations service.
28988
28984
  * @module purecloud-platform-client-v2/api/IntegrationsApi
28989
- * @version 146.0.0
28985
+ * @version 148.0.0
28990
28986
  */
28991
28987
 
28992
28988
  /**
@@ -29744,59 +29740,6 @@ class IntegrationsApi {
29744
29740
  );
29745
29741
  }
29746
29742
 
29747
- /**
29748
- * List all events
29749
- *
29750
- * @param {Object} opts Optional parameters
29751
- * @param {Number} opts.pageSize Page size (default to 25)
29752
- * @param {Number} opts.pageNumber Page number (default to 1)
29753
- * @param {String} opts.sortBy Sort by (default to timestamp)
29754
- * @param {String} opts.sortOrder Order by (default to descending)
29755
- * @param {String} opts.entityId Include only events with this entity ID
29756
- */
29757
- getIntegrationsEventlog(opts) {
29758
- opts = opts || {};
29759
-
29760
-
29761
- return this.apiClient.callApi(
29762
- '/api/v2/integrations/eventlog',
29763
- 'GET',
29764
- { },
29765
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'entityId': opts['entityId'] },
29766
- { },
29767
- { },
29768
- null,
29769
- ['PureCloud OAuth'],
29770
- ['application/json'],
29771
- ['application/json']
29772
- );
29773
- }
29774
-
29775
- /**
29776
- * Get a single event
29777
- *
29778
- * @param {String} eventId Event Id
29779
- */
29780
- getIntegrationsEventlogEventId(eventId) {
29781
- // verify the required parameter 'eventId' is set
29782
- if (eventId === undefined || eventId === null) {
29783
- throw 'Missing the required parameter "eventId" when calling getIntegrationsEventlogEventId';
29784
- }
29785
-
29786
- return this.apiClient.callApi(
29787
- '/api/v2/integrations/eventlog/{eventId}',
29788
- 'GET',
29789
- { 'eventId': eventId },
29790
- { },
29791
- { },
29792
- { },
29793
- null,
29794
- ['PureCloud OAuth'],
29795
- ['application/json'],
29796
- ['application/json']
29797
- );
29798
- }
29799
-
29800
29743
  /**
29801
29744
  * Get details about a Dialogflow agent
29802
29745
  *
@@ -30520,30 +30463,6 @@ class IntegrationsApi {
30520
30463
  );
30521
30464
  }
30522
30465
 
30523
- /**
30524
- * Add a vendor connection
30525
- *
30526
- * @param {Object} opts Optional parameters
30527
- * @param {Object} opts.body
30528
- */
30529
- postIntegrationsWorkforcemanagementVendorconnection(opts) {
30530
- opts = opts || {};
30531
-
30532
-
30533
- return this.apiClient.callApi(
30534
- '/api/v2/integrations/workforcemanagement/vendorconnection',
30535
- 'POST',
30536
- { },
30537
- { },
30538
- { },
30539
- { },
30540
- opts['body'],
30541
- ['PureCloud OAuth'],
30542
- ['application/json'],
30543
- ['application/json']
30544
- );
30545
- }
30546
-
30547
30466
  /**
30548
30467
  * Update integration configuration.
30549
30468
  *
@@ -30663,7 +30582,7 @@ class JourneyApi {
30663
30582
  /**
30664
30583
  * Journey service.
30665
30584
  * @module purecloud-platform-client-v2/api/JourneyApi
30666
- * @version 146.0.0
30585
+ * @version 148.0.0
30667
30586
  */
30668
30587
 
30669
30588
  /**
@@ -30838,6 +30757,56 @@ class JourneyApi {
30838
30757
  );
30839
30758
  }
30840
30759
 
30760
+ /**
30761
+ * Get status of job.
30762
+ *
30763
+ * @param {String} jobId ID of the job.
30764
+ */
30765
+ getJourneyActionmapsEstimatesJob(jobId) {
30766
+ // verify the required parameter 'jobId' is set
30767
+ if (jobId === undefined || jobId === null) {
30768
+ throw 'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJob';
30769
+ }
30770
+
30771
+ return this.apiClient.callApi(
30772
+ '/api/v2/journey/actionmaps/estimates/jobs/{jobId}',
30773
+ 'GET',
30774
+ { 'jobId': jobId },
30775
+ { },
30776
+ { },
30777
+ { },
30778
+ null,
30779
+ ['PureCloud OAuth'],
30780
+ ['application/json'],
30781
+ ['application/json']
30782
+ );
30783
+ }
30784
+
30785
+ /**
30786
+ * Get estimates from completed job.
30787
+ *
30788
+ * @param {String} jobId ID of the job.
30789
+ */
30790
+ getJourneyActionmapsEstimatesJobResults(jobId) {
30791
+ // verify the required parameter 'jobId' is set
30792
+ if (jobId === undefined || jobId === null) {
30793
+ throw 'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJobResults';
30794
+ }
30795
+
30796
+ return this.apiClient.callApi(
30797
+ '/api/v2/journey/actionmaps/estimates/jobs/{jobId}/results',
30798
+ 'GET',
30799
+ { 'jobId': jobId },
30800
+ { },
30801
+ { },
30802
+ { },
30803
+ null,
30804
+ ['PureCloud OAuth'],
30805
+ ['application/json'],
30806
+ ['application/json']
30807
+ );
30808
+ }
30809
+
30841
30810
  /**
30842
30811
  * Retrieve a single action target.
30843
30812
  *
@@ -31296,6 +31265,31 @@ class JourneyApi {
31296
31265
  );
31297
31266
  }
31298
31267
 
31268
+ /**
31269
+ * Query for estimates
31270
+ *
31271
+ * @param {Object} body audience estimator request
31272
+ */
31273
+ postJourneyActionmapsEstimatesJobs(body) {
31274
+ // verify the required parameter 'body' is set
31275
+ if (body === undefined || body === null) {
31276
+ throw 'Missing the required parameter "body" when calling postJourneyActionmapsEstimatesJobs';
31277
+ }
31278
+
31279
+ return this.apiClient.callApi(
31280
+ '/api/v2/journey/actionmaps/estimates/jobs',
31281
+ 'POST',
31282
+ { },
31283
+ { },
31284
+ { },
31285
+ { },
31286
+ body,
31287
+ ['PureCloud OAuth'],
31288
+ ['application/json'],
31289
+ ['application/json']
31290
+ );
31291
+ }
31292
+
31299
31293
  /**
31300
31294
  * Create a single action template.
31301
31295
  *
@@ -31374,7 +31368,7 @@ class KnowledgeApi {
31374
31368
  /**
31375
31369
  * Knowledge service.
31376
31370
  * @module purecloud-platform-client-v2/api/KnowledgeApi
31377
- * @version 146.0.0
31371
+ * @version 148.0.0
31378
31372
  */
31379
31373
 
31380
31374
  /**
@@ -32171,6 +32165,7 @@ class KnowledgeApi {
32171
32165
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
32172
32166
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
32173
32167
  * @param {String} opts.interval Retrieves the documents modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
32168
+ * @param {Array.<String>} opts.documentId Retrieves the specified documents, comma separated values expected.
32174
32169
  * @param {Array.<String>} opts.categoryId If specified, retrieves documents associated with category ids, comma separated values expected.
32175
32170
  * @param {Boolean} opts.includeSubcategories Works along with 'categoryId' query parameter. If specified, retrieves documents associated with category ids and its children categories.
32176
32171
  * @param {Boolean} opts.includeDrafts If includeDrafts is true, Documents in the draft state are also returned in the response.
@@ -32189,7 +32184,7 @@ class KnowledgeApi {
32189
32184
  '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents',
32190
32185
  'GET',
32191
32186
  { 'knowledgeBaseId': knowledgeBaseId },
32192
- { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'interval': opts['interval'],'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'includeSubcategories': opts['includeSubcategories'],'includeDrafts': opts['includeDrafts'],'labelIds': this.apiClient.buildCollectionParam(opts['labelIds'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
32187
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'interval': opts['interval'],'documentId': this.apiClient.buildCollectionParam(opts['documentId'], 'multi'),'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'includeSubcategories': opts['includeSubcategories'],'includeDrafts': opts['includeDrafts'],'labelIds': this.apiClient.buildCollectionParam(opts['labelIds'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
32193
32188
  { },
32194
32189
  { },
32195
32190
  null,
@@ -33806,7 +33801,7 @@ class LanguageUnderstandingApi {
33806
33801
  /**
33807
33802
  * LanguageUnderstanding service.
33808
33803
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
33809
- * @version 146.0.0
33804
+ * @version 148.0.0
33810
33805
  */
33811
33806
 
33812
33807
  /**
@@ -34710,7 +34705,7 @@ class LanguagesApi {
34710
34705
  /**
34711
34706
  * Languages service.
34712
34707
  * @module purecloud-platform-client-v2/api/LanguagesApi
34713
- * @version 146.0.0
34708
+ * @version 148.0.0
34714
34709
  */
34715
34710
 
34716
34711
  /**
@@ -34978,7 +34973,7 @@ class LearningApi {
34978
34973
  /**
34979
34974
  * Learning service.
34980
34975
  * @module purecloud-platform-client-v2/api/LearningApi
34981
- * @version 146.0.0
34976
+ * @version 148.0.0
34982
34977
  */
34983
34978
 
34984
34979
  /**
@@ -35738,7 +35733,7 @@ class LicenseApi {
35738
35733
  /**
35739
35734
  * License service.
35740
35735
  * @module purecloud-platform-client-v2/api/LicenseApi
35741
- * @version 146.0.0
35736
+ * @version 148.0.0
35742
35737
  */
35743
35738
 
35744
35739
  /**
@@ -35976,7 +35971,7 @@ class LocationsApi {
35976
35971
  /**
35977
35972
  * Locations service.
35978
35973
  * @module purecloud-platform-client-v2/api/LocationsApi
35979
- * @version 146.0.0
35974
+ * @version 148.0.0
35980
35975
  */
35981
35976
 
35982
35977
  /**
@@ -36212,7 +36207,7 @@ class MessagingApi {
36212
36207
  /**
36213
36208
  * Messaging service.
36214
36209
  * @module purecloud-platform-client-v2/api/MessagingApi
36215
- * @version 146.0.0
36210
+ * @version 148.0.0
36216
36211
  */
36217
36212
 
36218
36213
  /**
@@ -36363,7 +36358,7 @@ class MobileDevicesApi {
36363
36358
  /**
36364
36359
  * MobileDevices service.
36365
36360
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
36366
- * @version 146.0.0
36361
+ * @version 148.0.0
36367
36362
  */
36368
36363
 
36369
36364
  /**
@@ -36514,7 +36509,7 @@ class NotificationsApi {
36514
36509
  /**
36515
36510
  * Notifications service.
36516
36511
  * @module purecloud-platform-client-v2/api/NotificationsApi
36517
- * @version 146.0.0
36512
+ * @version 148.0.0
36518
36513
  */
36519
36514
 
36520
36515
  /**
@@ -36739,7 +36734,7 @@ class OAuthApi {
36739
36734
  /**
36740
36735
  * OAuth service.
36741
36736
  * @module purecloud-platform-client-v2/api/OAuthApi
36742
- * @version 146.0.0
36737
+ * @version 148.0.0
36743
36738
  */
36744
36739
 
36745
36740
  /**
@@ -37105,7 +37100,7 @@ class ObjectsApi {
37105
37100
  /**
37106
37101
  * Objects service.
37107
37102
  * @module purecloud-platform-client-v2/api/ObjectsApi
37108
- * @version 146.0.0
37103
+ * @version 148.0.0
37109
37104
  */
37110
37105
 
37111
37106
  /**
@@ -37376,7 +37371,7 @@ class OrganizationApi {
37376
37371
  /**
37377
37372
  * Organization service.
37378
37373
  * @module purecloud-platform-client-v2/api/OrganizationApi
37379
- * @version 146.0.0
37374
+ * @version 148.0.0
37380
37375
  */
37381
37376
 
37382
37377
  /**
@@ -37779,7 +37774,7 @@ class OrganizationAuthorizationApi {
37779
37774
  /**
37780
37775
  * OrganizationAuthorization service.
37781
37776
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
37782
- * @version 146.0.0
37777
+ * @version 148.0.0
37783
37778
  */
37784
37779
 
37785
37780
  /**
@@ -38704,7 +38699,7 @@ class OutboundApi {
38704
38699
  /**
38705
38700
  * Outbound service.
38706
38701
  * @module purecloud-platform-client-v2/api/OutboundApi
38707
- * @version 146.0.0
38702
+ * @version 148.0.0
38708
38703
  */
38709
38704
 
38710
38705
  /**
@@ -39004,6 +38999,31 @@ class OutboundApi {
39004
38999
  );
39005
39000
  }
39006
39001
 
39002
+ /**
39003
+ * Delete an Outbound Digital Rule Set
39004
+ *
39005
+ * @param {String} digitalRuleSetId The Digital Rule Set ID
39006
+ */
39007
+ deleteOutboundDigitalruleset(digitalRuleSetId) {
39008
+ // verify the required parameter 'digitalRuleSetId' is set
39009
+ if (digitalRuleSetId === undefined || digitalRuleSetId === null) {
39010
+ throw 'Missing the required parameter "digitalRuleSetId" when calling deleteOutboundDigitalruleset';
39011
+ }
39012
+
39013
+ return this.apiClient.callApi(
39014
+ '/api/v2/outbound/digitalrulesets/{digitalRuleSetId}',
39015
+ 'DELETE',
39016
+ { 'digitalRuleSetId': digitalRuleSetId },
39017
+ { },
39018
+ { },
39019
+ { },
39020
+ null,
39021
+ ['PureCloud OAuth'],
39022
+ ['application/json'],
39023
+ ['application/json']
39024
+ );
39025
+ }
39026
+
39007
39027
  /**
39008
39028
  * Delete dialer DNC list
39009
39029
  *
@@ -40041,6 +40061,60 @@ class OutboundApi {
40041
40061
  );
40042
40062
  }
40043
40063
 
40064
+ /**
40065
+ * Get an Outbound Digital Rule Set
40066
+ *
40067
+ * @param {String} digitalRuleSetId The Digital Rule Set ID
40068
+ */
40069
+ getOutboundDigitalruleset(digitalRuleSetId) {
40070
+ // verify the required parameter 'digitalRuleSetId' is set
40071
+ if (digitalRuleSetId === undefined || digitalRuleSetId === null) {
40072
+ throw 'Missing the required parameter "digitalRuleSetId" when calling getOutboundDigitalruleset';
40073
+ }
40074
+
40075
+ return this.apiClient.callApi(
40076
+ '/api/v2/outbound/digitalrulesets/{digitalRuleSetId}',
40077
+ 'GET',
40078
+ { 'digitalRuleSetId': digitalRuleSetId },
40079
+ { },
40080
+ { },
40081
+ { },
40082
+ null,
40083
+ ['PureCloud OAuth'],
40084
+ ['application/json'],
40085
+ ['application/json']
40086
+ );
40087
+ }
40088
+
40089
+ /**
40090
+ * Query a list of Outbound Digital Rule Sets
40091
+ *
40092
+ * @param {Object} opts Optional parameters
40093
+ * @param {Number} opts.pageSize Page size. The max that will be returned is 100. (default to 25)
40094
+ * @param {Number} opts.pageNumber Page number (default to 1)
40095
+ * @param {Object} opts.sortBy The field to sort by (default to name)
40096
+ * @param {Object} opts.sortOrder The direction to sort (default to ascending)
40097
+ * @param {String} opts.name Name
40098
+ * @param {Array.<String>} opts.id A list of digital rule set ids to bulk fetch
40099
+ */
40100
+ getOutboundDigitalrulesets(opts) {
40101
+ opts = opts || {};
40102
+
40103
+
40104
+ return this.apiClient.callApi(
40105
+ '/api/v2/outbound/digitalrulesets',
40106
+ 'GET',
40107
+ { },
40108
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi') },
40109
+ { },
40110
+ { },
40111
+ null,
40112
+ ['PureCloud OAuth'],
40113
+ ['application/json'],
40114
+ ['application/json']
40115
+ );
40116
+ }
40117
+
40044
40118
  /**
40045
40119
  * Get dialer DNC list
40046
40120
  *
@@ -41224,6 +41298,31 @@ class OutboundApi {
41224
41298
  );
41225
41299
  }
41226
41300
 
41301
+ /**
41302
+ * Create an Outbound Digital Rule Set
41303
+ *
41304
+ * @param {Object} body Digital Rule Set
41305
+ */
41306
+ postOutboundDigitalrulesets(body) {
41307
+ // verify the required parameter 'body' is set
41308
+ if (body === undefined || body === null) {
41309
+ throw 'Missing the required parameter "body" when calling postOutboundDigitalrulesets';
41310
+ }
41311
+
41312
+ return this.apiClient.callApi(
41313
+ '/api/v2/outbound/digitalrulesets',
41314
+ 'POST',
41315
+ { },
41316
+ { },
41317
+ { },
41318
+ { },
41319
+ body,
41320
+ ['PureCloud OAuth'],
41321
+ ['application/json'],
41322
+ ['application/json']
41323
+ );
41324
+ }
41325
+
41227
41326
  /**
41228
41327
  * Initiate the export of a dnc list.
41229
41328
  * Returns 200 if received OK.
@@ -41688,6 +41787,36 @@ class OutboundApi {
41688
41787
  );
41689
41788
  }
41690
41789
 
41790
+ /**
41791
+ * Update an Outbound Digital Rule Set
41792
+ *
41793
+ * @param {String} digitalRuleSetId The Digital Rule Set ID
41794
+ * @param {Object} body Digital Rule Set
41795
+ */
41796
+ putOutboundDigitalruleset(digitalRuleSetId, body) {
41797
+ // verify the required parameter 'digitalRuleSetId' is set
41798
+ if (digitalRuleSetId === undefined || digitalRuleSetId === null) {
41799
+ throw 'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';
41800
+ }
41801
+ // verify the required parameter 'body' is set
41802
+ if (body === undefined || body === null) {
41803
+ throw 'Missing the required parameter "body" when calling putOutboundDigitalruleset';
41804
+ }
41805
+
41806
+ return this.apiClient.callApi(
41807
+ '/api/v2/outbound/digitalrulesets/{digitalRuleSetId}',
41808
+ 'PUT',
41809
+ { 'digitalRuleSetId': digitalRuleSetId },
41810
+ { },
41811
+ { },
41812
+ { },
41813
+ body,
41814
+ ['PureCloud OAuth'],
41815
+ ['application/json'],
41816
+ ['application/json']
41817
+ );
41818
+ }
41819
+
41691
41820
  /**
41692
41821
  * Update dialer DNC list
41693
41822
  *
@@ -41959,7 +42088,7 @@ class PresenceApi {
41959
42088
  /**
41960
42089
  * Presence service.
41961
42090
  * @module purecloud-platform-client-v2/api/PresenceApi
41962
- * @version 146.0.0
42091
+ * @version 148.0.0
41963
42092
  */
41964
42093
 
41965
42094
  /**
@@ -42277,11 +42406,249 @@ class PresenceApi {
42277
42406
 
42278
42407
  }
42279
42408
 
42409
+ class ProcessAutomationApi {
42410
+ /**
42411
+ * ProcessAutomation service.
42412
+ * @module purecloud-platform-client-v2/api/ProcessAutomationApi
42413
+ * @version 148.0.0
42414
+ */
42415
+
42416
+ /**
42417
+ * Constructs a new ProcessAutomationApi.
42418
+ * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
42419
+ * @class
42420
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
42421
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
42422
+ */
42423
+ constructor(apiClient) {
42424
+ this.apiClient = apiClient || ApiClient.instance;
42425
+ }
42426
+
42427
+
42428
+ /**
42429
+ * Delete a Trigger
42430
+ *
42431
+ * @param {String} triggerId triggerId
42432
+ */
42433
+ deleteProcessautomationTrigger(triggerId) {
42434
+ // verify the required parameter 'triggerId' is set
42435
+ if (triggerId === undefined || triggerId === null) {
42436
+ throw 'Missing the required parameter "triggerId" when calling deleteProcessautomationTrigger';
42437
+ }
42438
+
42439
+ return this.apiClient.callApi(
42440
+ '/api/v2/processautomation/triggers/{triggerId}',
42441
+ 'DELETE',
42442
+ { 'triggerId': triggerId },
42443
+ { },
42444
+ { },
42445
+ { },
42446
+ null,
42447
+ ['PureCloud OAuth'],
42448
+ ['application/json'],
42449
+ ['application/json']
42450
+ );
42451
+ }
42452
+
42453
+ /**
42454
+ * Retrieve a single Trigger matching id.
42455
+ *
42456
+ * @param {String} triggerId triggerId
42457
+ */
42458
+ getProcessautomationTrigger(triggerId) {
42459
+ // verify the required parameter 'triggerId' is set
42460
+ if (triggerId === undefined || triggerId === null) {
42461
+ throw 'Missing the required parameter "triggerId" when calling getProcessautomationTrigger';
42462
+ }
42463
+
42464
+ return this.apiClient.callApi(
42465
+ '/api/v2/processautomation/triggers/{triggerId}',
42466
+ 'GET',
42467
+ { 'triggerId': triggerId },
42468
+ { },
42469
+ { },
42470
+ { },
42471
+ null,
42472
+ ['PureCloud OAuth'],
42473
+ ['application/json'],
42474
+ ['application/json']
42475
+ );
42476
+ }
42477
+
42478
+ /**
42479
+ * Retrieves all triggers
42480
+ *
42481
+ * @param {Object} opts Optional parameters
42482
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
42483
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
42484
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
42485
+ * @param {String} opts.topicName Topic name
42486
+ * @param {Boolean} opts.enabled Boolean indicating desired enabled state of triggers
42487
+ */
42488
+ getProcessautomationTriggers(opts) {
42489
+ opts = opts || {};
42490
+
42491
+
42492
+ return this.apiClient.callApi(
42493
+ '/api/v2/processautomation/triggers',
42494
+ 'GET',
42495
+ { },
42496
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'topicName': opts['topicName'],'enabled': opts['enabled'] },
42497
+ { },
42498
+ { },
42499
+ null,
42500
+ ['PureCloud OAuth'],
42501
+ ['application/json'],
42502
+ ['application/json']
42503
+ );
42504
+ }
42505
+
42506
+ /**
42507
+ * Get topics available for organization
42508
+ *
42509
+ * @param {Object} opts Optional parameters
42510
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
42511
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
42512
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
42513
+ */
42514
+ getProcessautomationTriggersTopics(opts) {
42515
+ opts = opts || {};
42516
+
42517
+
42518
+ return this.apiClient.callApi(
42519
+ '/api/v2/processautomation/triggers/topics',
42520
+ 'GET',
42521
+ { },
42522
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'] },
42523
+ { },
42524
+ { },
42525
+ null,
42526
+ ['PureCloud OAuth'],
42527
+ ['application/json'],
42528
+ ['application/json']
42529
+ );
42530
+ }
42531
+
42532
+ /**
42533
+ * Test the matching of a Trigger based on provided event body
42534
+ *
42535
+ * @param {String} triggerId triggerId
42536
+ * @param {Object} opts Optional parameters
42537
+ * @param {String} opts.body eventBody
42538
+ */
42539
+ postProcessautomationTriggerTest(triggerId, opts) {
42540
+ opts = opts || {};
42541
+
42542
+ // verify the required parameter 'triggerId' is set
42543
+ if (triggerId === undefined || triggerId === null) {
42544
+ throw 'Missing the required parameter "triggerId" when calling postProcessautomationTriggerTest';
42545
+ }
42546
+
42547
+ return this.apiClient.callApi(
42548
+ '/api/v2/processautomation/triggers/{triggerId}/test',
42549
+ 'POST',
42550
+ { 'triggerId': triggerId },
42551
+ { },
42552
+ { },
42553
+ { },
42554
+ opts['body'],
42555
+ ['PureCloud OAuth'],
42556
+ ['application/json'],
42557
+ ['application/json']
42558
+ );
42559
+ }
42560
+
42561
+ /**
42562
+ * Create a Trigger
42563
+ *
42564
+ * @param {Object} body Input used to create a Trigger.
42565
+ */
42566
+ postProcessautomationTriggers(body) {
42567
+ // verify the required parameter 'body' is set
42568
+ if (body === undefined || body === null) {
42569
+ throw 'Missing the required parameter "body" when calling postProcessautomationTriggers';
42570
+ }
42571
+
42572
+ return this.apiClient.callApi(
42573
+ '/api/v2/processautomation/triggers',
42574
+ 'POST',
42575
+ { },
42576
+ { },
42577
+ { },
42578
+ { },
42579
+ body,
42580
+ ['PureCloud OAuth'],
42581
+ ['application/json'],
42582
+ ['application/json']
42583
+ );
42584
+ }
42585
+
42586
+ /**
42587
+ * Test the matching of all organization Triggers on given topic using provided event body
42588
+ *
42589
+ * @param {String} topicName topicName
42590
+ * @param {Object} opts Optional parameters
42591
+ * @param {String} opts.body eventBody
42592
+ */
42593
+ postProcessautomationTriggersTopicTest(topicName, opts) {
42594
+ opts = opts || {};
42595
+
42596
+ // verify the required parameter 'topicName' is set
42597
+ if (topicName === undefined || topicName === null) {
42598
+ throw 'Missing the required parameter "topicName" when calling postProcessautomationTriggersTopicTest';
42599
+ }
42600
+
42601
+ return this.apiClient.callApi(
42602
+ '/api/v2/processautomation/triggers/topics/{topicName}/test',
42603
+ 'POST',
42604
+ { 'topicName': topicName },
42605
+ { },
42606
+ { },
42607
+ { },
42608
+ opts['body'],
42609
+ ['PureCloud OAuth'],
42610
+ ['application/json'],
42611
+ ['application/json']
42612
+ );
42613
+ }
42614
+
42615
+ /**
42616
+ * Update a Trigger
42617
+ *
42618
+ * @param {String} triggerId triggerId
42619
+ * @param {Object} body Input to update Trigger. (topicName cannot be updated, a new trigger must be created to use a new topicName)
42620
+ */
42621
+ putProcessautomationTrigger(triggerId, body) {
42622
+ // verify the required parameter 'triggerId' is set
42623
+ if (triggerId === undefined || triggerId === null) {
42624
+ throw 'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';
42625
+ }
42626
+ // verify the required parameter 'body' is set
42627
+ if (body === undefined || body === null) {
42628
+ throw 'Missing the required parameter "body" when calling putProcessautomationTrigger';
42629
+ }
42630
+
42631
+ return this.apiClient.callApi(
42632
+ '/api/v2/processautomation/triggers/{triggerId}',
42633
+ 'PUT',
42634
+ { 'triggerId': triggerId },
42635
+ { },
42636
+ { },
42637
+ { },
42638
+ body,
42639
+ ['PureCloud OAuth'],
42640
+ ['application/json'],
42641
+ ['application/json']
42642
+ );
42643
+ }
42644
+
42645
+ }
42646
+
42280
42647
  class QualityApi {
42281
42648
  /**
42282
42649
  * Quality service.
42283
42650
  * @module purecloud-platform-client-v2/api/QualityApi
42284
- * @version 146.0.0
42651
+ * @version 148.0.0
42285
42652
  */
42286
42653
 
42287
42654
  /**
@@ -42791,7 +43158,7 @@ class QualityApi {
42791
43158
  * @param {String} opts.sortBy variable name requested to sort by
42792
43159
  * @param {String} opts.nextPage next page token
42793
43160
  * @param {String} opts.previousPage Previous page token
42794
- * @param {String} opts.expand Expand
43161
+ * @param {Object} opts.expand If 'expand=publishHistory', then each unpublished evaluation form includes a listing of its published versions
42795
43162
  * @param {String} opts.name Name
42796
43163
  * @param {String} opts.sortOrder Order to sort results, either asc or desc
42797
43164
  */
@@ -42878,7 +43245,7 @@ class QualityApi {
42878
43245
  * @param {String} opts.sortBy variable name requested to sort by
42879
43246
  * @param {String} opts.nextPage next page token
42880
43247
  * @param {String} opts.previousPage Previous page token
42881
- * @param {String} opts.expand Expand
43248
+ * @param {Object} opts.expand If 'expand=publishHistory', then each unpublished evaluation form includes a listing of its published versions
42882
43249
  * @param {String} opts.name Name
42883
43250
  * @param {String} opts.sortOrder Order to sort results, either asc or desc
42884
43251
  */
@@ -42989,7 +43356,7 @@ class QualityApi {
42989
43356
  * @param {String} opts.sortBy variable name requested to sort by
42990
43357
  * @param {String} opts.nextPage next page token
42991
43358
  * @param {String} opts.previousPage Previous page token
42992
- * @param {String} opts.expand Expand
43359
+ * @param {Object} opts.expand If 'expand=publishHistory', then each unpublished evaluation form includes a listing of its published versions
42993
43360
  * @param {String} opts.name Name
42994
43361
  * @param {String} opts.sortOrder Order to sort results, either asc or desc
42995
43362
  */
@@ -43859,7 +44226,7 @@ class RecordingApi {
43859
44226
  /**
43860
44227
  * Recording service.
43861
44228
  * @module purecloud-platform-client-v2/api/RecordingApi
43862
- * @version 146.0.0
44229
+ * @version 148.0.0
43863
44230
  */
43864
44231
 
43865
44232
  /**
@@ -44733,6 +45100,36 @@ class RecordingApi {
44733
45100
  );
44734
45101
  }
44735
45102
 
45103
+ /**
45104
+ * Query for recording retention data
45105
+ *
45106
+ * @param {Number} retentionThresholdDays Fetch retention data for recordings retained for more days than the provided value.
45107
+ * @param {Object} opts Optional parameters
45108
+ * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
45109
+ * @param {Number} opts.pageSize Page size. Maximum is 500. (default to 25)
45110
+ */
45111
+ getRecordingsRetentionQuery(retentionThresholdDays, opts) {
45112
+ opts = opts || {};
45113
+
45114
+ // verify the required parameter 'retentionThresholdDays' is set
45115
+ if (retentionThresholdDays === undefined || retentionThresholdDays === null) {
45116
+ throw 'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';
45117
+ }
45118
+
45119
+ return this.apiClient.callApi(
45120
+ '/api/v2/recordings/retention/query',
45121
+ 'GET',
45122
+ { },
45123
+ { 'retentionThresholdDays': retentionThresholdDays,'cursor': opts['cursor'],'pageSize': opts['pageSize'] },
45124
+ { },
45125
+ { },
45126
+ null,
45127
+ ['PureCloud OAuth'],
45128
+ ['application/json'],
45129
+ ['application/json']
45130
+ );
45131
+ }
45132
+
44736
45133
  /**
44737
45134
  * Retrieves a paged listing of screen recording sessions
44738
45135
  *
@@ -45512,7 +45909,7 @@ class ResponseManagementApi {
45512
45909
  /**
45513
45910
  * ResponseManagement service.
45514
45911
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
45515
- * @version 146.0.0
45912
+ * @version 148.0.0
45516
45913
  */
45517
45914
 
45518
45915
  /**
@@ -45996,7 +46393,7 @@ class RoutingApi {
45996
46393
  /**
45997
46394
  * Routing service.
45998
46395
  * @module purecloud-platform-client-v2/api/RoutingApi
45999
- * @version 146.0.0
46396
+ * @version 148.0.0
46000
46397
  */
46001
46398
 
46002
46399
  /**
@@ -48937,7 +49334,7 @@ class SCIMApi {
48937
49334
  /**
48938
49335
  * SCIM service.
48939
49336
  * @module purecloud-platform-client-v2/api/SCIMApi
48940
- * @version 146.0.0
49337
+ * @version 148.0.0
48941
49338
  */
48942
49339
 
48943
49340
  /**
@@ -49814,7 +50211,7 @@ class ScriptsApi {
49814
50211
  /**
49815
50212
  * Scripts service.
49816
50213
  * @module purecloud-platform-client-v2/api/ScriptsApi
49817
- * @version 146.0.0
50214
+ * @version 148.0.0
49818
50215
  */
49819
50216
 
49820
50217
  /**
@@ -50233,7 +50630,7 @@ class SearchApi {
50233
50630
  /**
50234
50631
  * Search service.
50235
50632
  * @module purecloud-platform-client-v2/api/SearchApi
50236
- * @version 146.0.0
50633
+ * @version 148.0.0
50237
50634
  */
50238
50635
 
50239
50636
  /**
@@ -50793,7 +51190,7 @@ class SpeechTextAnalyticsApi {
50793
51190
  /**
50794
51191
  * SpeechTextAnalytics service.
50795
51192
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
50796
- * @version 146.0.0
51193
+ * @version 148.0.0
50797
51194
  */
50798
51195
 
50799
51196
  /**
@@ -51647,7 +52044,7 @@ class StationsApi {
51647
52044
  /**
51648
52045
  * Stations service.
51649
52046
  * @module purecloud-platform-client-v2/api/StationsApi
51650
- * @version 146.0.0
52047
+ * @version 148.0.0
51651
52048
  */
51652
52049
 
51653
52050
  /**
@@ -51794,7 +52191,7 @@ class SuggestApi {
51794
52191
  /**
51795
52192
  * Suggest service.
51796
52193
  * @module purecloud-platform-client-v2/api/SuggestApi
51797
- * @version 146.0.0
52194
+ * @version 148.0.0
51798
52195
  */
51799
52196
 
51800
52197
  /**
@@ -51933,7 +52330,7 @@ class TeamsApi {
51933
52330
  /**
51934
52331
  * Teams service.
51935
52332
  * @module purecloud-platform-client-v2/api/TeamsApi
51936
- * @version 146.0.0
52333
+ * @version 148.0.0
51937
52334
  */
51938
52335
 
51939
52336
  /**
@@ -52112,7 +52509,7 @@ class TelephonyApi {
52112
52509
  /**
52113
52510
  * Telephony service.
52114
52511
  * @module purecloud-platform-client-v2/api/TelephonyApi
52115
- * @version 146.0.0
52512
+ * @version 148.0.0
52116
52513
  */
52117
52514
 
52118
52515
  /**
@@ -52220,7 +52617,7 @@ class TelephonyProvidersEdgeApi {
52220
52617
  /**
52221
52618
  * TelephonyProvidersEdge service.
52222
52619
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
52223
- * @version 146.0.0
52620
+ * @version 148.0.0
52224
52621
  */
52225
52622
 
52226
52623
  /**
@@ -55853,7 +56250,7 @@ class TextbotsApi {
55853
56250
  /**
55854
56251
  * Textbots service.
55855
56252
  * @module purecloud-platform-client-v2/api/TextbotsApi
55856
- * @version 146.0.0
56253
+ * @version 148.0.0
55857
56254
  */
55858
56255
 
55859
56256
  /**
@@ -55981,7 +56378,7 @@ class TokensApi {
55981
56378
  /**
55982
56379
  * Tokens service.
55983
56380
  * @module purecloud-platform-client-v2/api/TokensApi
55984
- * @version 146.0.0
56381
+ * @version 148.0.0
55985
56382
  */
55986
56383
 
55987
56384
  /**
@@ -56087,7 +56484,7 @@ class UploadsApi {
56087
56484
  /**
56088
56485
  * Uploads service.
56089
56486
  * @module purecloud-platform-client-v2/api/UploadsApi
56090
- * @version 146.0.0
56487
+ * @version 148.0.0
56091
56488
  */
56092
56489
 
56093
56490
  /**
@@ -56263,7 +56660,7 @@ class UsageApi {
56263
56660
  /**
56264
56661
  * Usage service.
56265
56662
  * @module purecloud-platform-client-v2/api/UsageApi
56266
- * @version 146.0.0
56663
+ * @version 148.0.0
56267
56664
  */
56268
56665
 
56269
56666
  /**
@@ -56334,7 +56731,7 @@ class UserRecordingsApi {
56334
56731
  /**
56335
56732
  * UserRecordings service.
56336
56733
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
56337
- * @version 146.0.0
56734
+ * @version 148.0.0
56338
56735
  */
56339
56736
 
56340
56737
  /**
@@ -56409,6 +56806,7 @@ class UserRecordingsApi {
56409
56806
  * @param {String} recordingId User Recording ID
56410
56807
  * @param {Object} opts Optional parameters
56411
56808
  * @param {Object} opts.formatId The desired media format. (default to WEBM)
56809
+ * @param {Boolean} opts.async When set to true, api will return 202 response until the recording is ready for download
56412
56810
  */
56413
56811
  getUserrecordingMedia(recordingId, opts) {
56414
56812
  opts = opts || {};
@@ -56422,7 +56820,7 @@ class UserRecordingsApi {
56422
56820
  '/api/v2/userrecordings/{recordingId}/media',
56423
56821
  'GET',
56424
56822
  { 'recordingId': recordingId },
56425
- { 'formatId': opts['formatId'] },
56823
+ { 'formatId': opts['formatId'],'async': opts['async'] },
56426
56824
  { },
56427
56825
  { },
56428
56826
  null,
@@ -56518,7 +56916,7 @@ class UsersApi {
56518
56916
  /**
56519
56917
  * Users service.
56520
56918
  * @module purecloud-platform-client-v2/api/UsersApi
56521
- * @version 146.0.0
56919
+ * @version 148.0.0
56522
56920
  */
56523
56921
 
56524
56922
  /**
@@ -58260,6 +58658,36 @@ class UsersApi {
58260
58658
  );
58261
58659
  }
58262
58660
 
58661
+ /**
58662
+ * Create mapping between external identifier and user. Limit 100 per entity.
58663
+ * Authority Name and External key are case sensitive.
58664
+ * @param {String} userId User ID
58665
+ * @param {Object} body
58666
+ */
58667
+ postUserExternalid(userId, body) {
58668
+ // verify the required parameter 'userId' is set
58669
+ if (userId === undefined || userId === null) {
58670
+ throw 'Missing the required parameter "userId" when calling postUserExternalid';
58671
+ }
58672
+ // verify the required parameter 'body' is set
58673
+ if (body === undefined || body === null) {
58674
+ throw 'Missing the required parameter "body" when calling postUserExternalid';
58675
+ }
58676
+
58677
+ return this.apiClient.callApi(
58678
+ '/api/v2/users/{userId}/externalid',
58679
+ 'POST',
58680
+ { 'userId': userId },
58681
+ { },
58682
+ { },
58683
+ { },
58684
+ body,
58685
+ ['PureCloud OAuth'],
58686
+ ['application/json'],
58687
+ ['application/json']
58688
+ );
58689
+ }
58690
+
58263
58691
  /**
58264
58692
  * Send an activation email to the user
58265
58693
  *
@@ -58820,7 +59248,7 @@ class UtilitiesApi {
58820
59248
  /**
58821
59249
  * Utilities service.
58822
59250
  * @module purecloud-platform-client-v2/api/UtilitiesApi
58823
- * @version 146.0.0
59251
+ * @version 148.0.0
58824
59252
  */
58825
59253
 
58826
59254
  /**
@@ -58931,7 +59359,7 @@ class VoicemailApi {
58931
59359
  /**
58932
59360
  * Voicemail service.
58933
59361
  * @module purecloud-platform-client-v2/api/VoicemailApi
58934
- * @version 146.0.0
59362
+ * @version 148.0.0
58935
59363
  */
58936
59364
 
58937
59365
  /**
@@ -59598,7 +60026,7 @@ class WebChatApi {
59598
60026
  /**
59599
60027
  * WebChat service.
59600
60028
  * @module purecloud-platform-client-v2/api/WebChatApi
59601
- * @version 146.0.0
60029
+ * @version 148.0.0
59602
60030
  */
59603
60031
 
59604
60032
  /**
@@ -60142,7 +60570,7 @@ class WebDeploymentsApi {
60142
60570
  /**
60143
60571
  * WebDeployments service.
60144
60572
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
60145
- * @version 146.0.0
60573
+ * @version 148.0.0
60146
60574
  */
60147
60575
 
60148
60576
  /**
@@ -60336,6 +60764,35 @@ class WebDeploymentsApi {
60336
60764
  );
60337
60765
  }
60338
60766
 
60767
+ /**
60768
+ * Get active configuration for a given deployment
60769
+ *
60770
+ * @param {String} deploymentId The deployment ID
60771
+ * @param {Object} opts Optional parameters
60772
+ * @param {String} opts.type Get active configuration on a deployment
60773
+ */
60774
+ getWebdeploymentsDeploymentConfigurations(deploymentId, opts) {
60775
+ opts = opts || {};
60776
+
60777
+ // verify the required parameter 'deploymentId' is set
60778
+ if (deploymentId === undefined || deploymentId === null) {
60779
+ throw 'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentConfigurations';
60780
+ }
60781
+
60782
+ return this.apiClient.callApi(
60783
+ '/api/v2/webdeployments/deployments/{deploymentId}/configurations',
60784
+ 'GET',
60785
+ { 'deploymentId': deploymentId },
60786
+ { 'type': opts['type'] },
60787
+ { },
60788
+ { },
60789
+ null,
60790
+ ['PureCloud OAuth'],
60791
+ ['application/json'],
60792
+ ['application/json']
60793
+ );
60794
+ }
60795
+
60339
60796
  /**
60340
60797
  * Get deployments
60341
60798
  *
@@ -60497,7 +60954,7 @@ class WebMessagingApi {
60497
60954
  /**
60498
60955
  * WebMessaging service.
60499
60956
  * @module purecloud-platform-client-v2/api/WebMessagingApi
60500
- * @version 146.0.0
60957
+ * @version 148.0.0
60501
60958
  */
60502
60959
 
60503
60960
  /**
@@ -60543,7 +61000,7 @@ class WidgetsApi {
60543
61000
  /**
60544
61001
  * Widgets service.
60545
61002
  * @module purecloud-platform-client-v2/api/WidgetsApi
60546
- * @version 146.0.0
61003
+ * @version 148.0.0
60547
61004
  */
60548
61005
 
60549
61006
  /**
@@ -60689,7 +61146,7 @@ class WorkforceManagementApi {
60689
61146
  /**
60690
61147
  * WorkforceManagement service.
60691
61148
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
60692
- * @version 146.0.0
61149
+ * @version 148.0.0
60693
61150
  */
60694
61151
 
60695
61152
  /**
@@ -64965,7 +65422,7 @@ class WorkforceManagementApi {
64965
65422
  * </pre>
64966
65423
  * </p>
64967
65424
  * @module purecloud-platform-client-v2/index
64968
- * @version 146.0.0
65425
+ * @version 148.0.0
64969
65426
  */
64970
65427
  class platformClient {
64971
65428
  constructor() {
@@ -65164,6 +65621,11 @@ class platformClient {
65164
65621
  * @property {module:purecloud-platform-client-v2/api/PresenceApi}
65165
65622
  */
65166
65623
  this.PresenceApi = PresenceApi;
65624
+ /**
65625
+ * The ProcessAutomationApi service constructor.
65626
+ * @property {module:purecloud-platform-client-v2/api/ProcessAutomationApi}
65627
+ */
65628
+ this.ProcessAutomationApi = ProcessAutomationApi;
65167
65629
  /**
65168
65630
  * The QualityApi service constructor.
65169
65631
  * @property {module:purecloud-platform-client-v2/api/QualityApi}