purecloud-platform-client-v2 124.0.0 → 127.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 (73) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +936 -138
  3. package/dist/web-amd/purecloud-platform-client-v2.js +936 -138
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +896 -142
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +909 -1305
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +403 -36
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -26
  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 -1
  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 +1 -1
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
  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/MobileDevicesApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +216 -1
  45. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/QualityApi.js +2 -2
  48. package/src/purecloud-platform-client-v2/api/RecordingApi.js +7 -3
  49. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/RoutingApi.js +21 -10
  51. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +116 -2
  55. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +473 -1
  72. package/src/purecloud-platform-client-v2/configuration.js +42 -35
  73. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class OrganizationAuthorizationApi {
5
5
  /**
6
6
  * OrganizationAuthorization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -45,6 +45,36 @@ class OrganizationAuthorizationApi {
45
45
  );
46
46
  }
47
47
 
48
+ /**
49
+ * Deletes cloned user
50
+ *
51
+ * @param {String} trusteeOrgId Trustee Organization Id
52
+ * @param {String} trusteeUserId Id of the cloned user to delete
53
+ */
54
+ deleteOrgauthorizationTrusteeCloneduser(trusteeOrgId, trusteeUserId) {
55
+ // verify the required parameter 'trusteeOrgId' is set
56
+ if (trusteeOrgId === undefined || trusteeOrgId === null) {
57
+ throw 'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';
58
+ }
59
+ // verify the required parameter 'trusteeUserId' is set
60
+ if (trusteeUserId === undefined || trusteeUserId === null) {
61
+ throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';
62
+ }
63
+
64
+ return this.apiClient.callApi(
65
+ '/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}',
66
+ 'DELETE',
67
+ { 'trusteeOrgId': trusteeOrgId,'trusteeUserId': trusteeUserId },
68
+ { },
69
+ { },
70
+ { },
71
+ null,
72
+ ['PureCloud OAuth'],
73
+ ['application/json'],
74
+ ['application/json']
75
+ );
76
+ }
77
+
48
78
  /**
49
79
  * Delete Trustee User
50
80
  *
@@ -130,6 +160,36 @@ class OrganizationAuthorizationApi {
130
160
  );
131
161
  }
132
162
 
163
+ /**
164
+ * Delete Cloned User
165
+ *
166
+ * @param {String} trustorOrgId Trustor Organization Id
167
+ * @param {String} trusteeUserId Trustee User Id
168
+ */
169
+ deleteOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
170
+ // verify the required parameter 'trustorOrgId' is set
171
+ if (trustorOrgId === undefined || trustorOrgId === null) {
172
+ throw 'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';
173
+ }
174
+ // verify the required parameter 'trusteeUserId' is set
175
+ if (trusteeUserId === undefined || trusteeUserId === null) {
176
+ throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';
177
+ }
178
+
179
+ return this.apiClient.callApi(
180
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
181
+ 'DELETE',
182
+ { 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
183
+ { },
184
+ { },
185
+ { },
186
+ null,
187
+ ['PureCloud OAuth'],
188
+ ['application/json'],
189
+ ['application/json']
190
+ );
191
+ }
192
+
133
193
  /**
134
194
  * Delete Trustee User
135
195
  *
@@ -210,6 +270,31 @@ class OrganizationAuthorizationApi {
210
270
  );
211
271
  }
212
272
 
273
+ /**
274
+ * The list of cloned users from the trustee organization (i.e. users with a native user record).
275
+ * There can be no more than 5 cloned users per organization, so results are represented as simple list and not paged
276
+ * @param {String} trusteeOrgId Trustee Organization Id
277
+ */
278
+ getOrgauthorizationTrusteeClonedusers(trusteeOrgId) {
279
+ // verify the required parameter 'trusteeOrgId' is set
280
+ if (trusteeOrgId === undefined || trusteeOrgId === null) {
281
+ throw 'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeClonedusers';
282
+ }
283
+
284
+ return this.apiClient.callApi(
285
+ '/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers',
286
+ 'GET',
287
+ { 'trusteeOrgId': trusteeOrgId },
288
+ { },
289
+ { },
290
+ { },
291
+ null,
292
+ ['PureCloud OAuth'],
293
+ ['application/json'],
294
+ ['application/json']
295
+ );
296
+ }
297
+
213
298
  /**
214
299
  * Get Trustee User
215
300
  *
@@ -325,6 +410,26 @@ class OrganizationAuthorizationApi {
325
410
  );
326
411
  }
327
412
 
413
+ /**
414
+ * Get organization authorization trust with Customer Care, if one exists.
415
+ *
416
+ */
417
+ getOrgauthorizationTrusteesDefault() {
418
+
419
+ return this.apiClient.callApi(
420
+ '/api/v2/orgauthorization/trustees/default',
421
+ 'GET',
422
+ { },
423
+ { },
424
+ { },
425
+ { },
426
+ null,
427
+ ['PureCloud OAuth'],
428
+ ['application/json'],
429
+ ['application/json']
430
+ );
431
+ }
432
+
328
433
  /**
329
434
  * Get Org Trust
330
435
  *
@@ -350,6 +455,61 @@ class OrganizationAuthorizationApi {
350
455
  );
351
456
  }
352
457
 
458
+ /**
459
+ * Get Cloned User
460
+ *
461
+ * @param {String} trustorOrgId Trustor Organization Id
462
+ * @param {String} trusteeUserId Trustee User Id
463
+ */
464
+ getOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
465
+ // verify the required parameter 'trustorOrgId' is set
466
+ if (trustorOrgId === undefined || trustorOrgId === null) {
467
+ throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';
468
+ }
469
+ // verify the required parameter 'trusteeUserId' is set
470
+ if (trusteeUserId === undefined || trusteeUserId === null) {
471
+ throw 'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';
472
+ }
473
+
474
+ return this.apiClient.callApi(
475
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
476
+ 'GET',
477
+ { 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
478
+ { },
479
+ { },
480
+ { },
481
+ null,
482
+ ['PureCloud OAuth'],
483
+ ['application/json'],
484
+ ['application/json']
485
+ );
486
+ }
487
+
488
+ /**
489
+ * The list of cloned users in the trustor organization (i.e. users with a native user record).
490
+ *
491
+ * @param {String} trustorOrgId Trustor Organization Id
492
+ */
493
+ getOrgauthorizationTrustorClonedusers(trustorOrgId) {
494
+ // verify the required parameter 'trustorOrgId' is set
495
+ if (trustorOrgId === undefined || trustorOrgId === null) {
496
+ throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorClonedusers';
497
+ }
498
+
499
+ return this.apiClient.callApi(
500
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers',
501
+ 'GET',
502
+ { 'trustorOrgId': trustorOrgId },
503
+ { },
504
+ { },
505
+ { },
506
+ null,
507
+ ['PureCloud OAuth'],
508
+ ['application/json'],
509
+ ['application/json']
510
+ );
511
+ }
512
+
353
513
  /**
354
514
  * Get Trustee User
355
515
  *
@@ -547,6 +707,31 @@ class OrganizationAuthorizationApi {
547
707
  );
548
708
  }
549
709
 
710
+ /**
711
+ * Create a new organization authorization trust with Customer Care. This is required to grant your regional Customer Care organization access to your organization.
712
+ *
713
+ * @param {Object} opts Optional parameters
714
+ * @param {Boolean} opts.assignDefaultRole Assign Admin role to default pairing with Customer Care
715
+ * @param {Boolean} opts.autoExpire Automatically expire pairing after 30 days
716
+ */
717
+ postOrgauthorizationTrusteesDefault(opts) {
718
+ opts = opts || {};
719
+
720
+
721
+ return this.apiClient.callApi(
722
+ '/api/v2/orgauthorization/trustees/default',
723
+ 'POST',
724
+ { },
725
+ { 'assignDefaultRole': opts['assignDefaultRole'],'autoExpire': opts['autoExpire'] },
726
+ { },
727
+ { },
728
+ null,
729
+ ['PureCloud OAuth'],
730
+ ['application/json'],
731
+ ['application/json']
732
+ );
733
+ }
734
+
550
735
  /**
551
736
  * Get Org Trustor Audits
552
737
  *
@@ -679,6 +864,36 @@ class OrganizationAuthorizationApi {
679
864
  );
680
865
  }
681
866
 
867
+ /**
868
+ * Creates a clone of the trustee user in the trustor org.
869
+ *
870
+ * @param {String} trustorOrgId Trustor Organization Id
871
+ * @param {String} trusteeUserId Trustee User Id
872
+ */
873
+ putOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
874
+ // verify the required parameter 'trustorOrgId' is set
875
+ if (trustorOrgId === undefined || trustorOrgId === null) {
876
+ throw 'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';
877
+ }
878
+ // verify the required parameter 'trusteeUserId' is set
879
+ if (trusteeUserId === undefined || trusteeUserId === null) {
880
+ throw 'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';
881
+ }
882
+
883
+ return this.apiClient.callApi(
884
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
885
+ 'PUT',
886
+ { 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
887
+ { },
888
+ { },
889
+ { },
890
+ null,
891
+ ['PureCloud OAuth'],
892
+ ['application/json'],
893
+ ['application/json']
894
+ );
895
+ }
896
+
682
897
  /**
683
898
  * Add a Trustee user to the trust.
684
899
  *
@@ -5,7 +5,7 @@ class OutboundApi {
5
5
  /**
6
6
  * Outbound service.
7
7
  * @module purecloud-platform-client-v2/api/OutboundApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class PresenceApi {
5
5
  /**
6
6
  * Presence service.
7
7
  * @module purecloud-platform-client-v2/api/PresenceApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class QualityApi {
5
5
  /**
6
6
  * Quality service.
7
7
  * @module purecloud-platform-client-v2/api/QualityApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -378,7 +378,7 @@ class QualityApi {
378
378
 
379
379
  /**
380
380
  * Queries Evaluations and returns a paged list
381
- * Query params must include one of conversationId, evaluatorUserId, or agentUserId
381
+ * 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.
382
382
  * @param {Object} opts Optional parameters
383
383
  * @param {Number} opts.pageSize The total page size requested (default to 25)
384
384
  * @param {Number} opts.pageNumber The page number requested (default to 1)
@@ -5,7 +5,7 @@ class RecordingApi {
5
5
  /**
6
6
  * Recording service.
7
7
  * @module purecloud-platform-client-v2/api/RecordingApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -601,6 +601,8 @@ class RecordingApi {
601
601
  * @param {Object} opts Optional parameters
602
602
  * @param {Number} opts.pageSize Page size. Maximum is 100. (default to 25)
603
603
  * @param {Number} opts.pageNumber Page number (default to 1)
604
+ * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
605
+ * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
604
606
  */
605
607
  getRecordingJobFailedrecordings(jobId, opts) {
606
608
  opts = opts || {};
@@ -614,7 +616,7 @@ class RecordingApi {
614
616
  '/api/v2/recording/jobs/{jobId}/failedrecordings',
615
617
  'GET',
616
618
  { 'jobId': jobId },
617
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
619
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'includeTotal': opts['includeTotal'],'cursor': opts['cursor'] },
618
620
  { },
619
621
  { },
620
622
  null,
@@ -634,6 +636,8 @@ class RecordingApi {
634
636
  * @param {Object} opts.state Filter by state
635
637
  * @param {Boolean} opts.showOnlyMyJobs Show only my jobs
636
638
  * @param {Object} opts.jobType Job Type (Can be left empty for both)
639
+ * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
640
+ * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
637
641
  */
638
642
  getRecordingJobs(opts) {
639
643
  opts = opts || {};
@@ -643,7 +647,7 @@ class RecordingApi {
643
647
  '/api/v2/recording/jobs',
644
648
  'GET',
645
649
  { },
646
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'state': opts['state'],'showOnlyMyJobs': opts['showOnlyMyJobs'],'jobType': opts['jobType'] },
650
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'state': opts['state'],'showOnlyMyJobs': opts['showOnlyMyJobs'],'jobType': opts['jobType'],'includeTotal': opts['includeTotal'],'cursor': opts['cursor'] },
647
651
  { },
648
652
  { },
649
653
  null,
@@ -5,7 +5,7 @@ class ResponseManagementApi {
5
5
  /**
6
6
  * ResponseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class RoutingApi {
5
5
  /**
6
6
  * Routing service.
7
7
  * @module purecloud-platform-client-v2/api/RoutingApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -318,8 +318,12 @@ class RoutingApi {
318
318
  * Delete a phone number provisioned for SMS.
319
319
  *
320
320
  * @param {String} addressId Address ID
321
+ * @param {Object} opts Optional parameters
322
+ * @param {Boolean} opts.async Delete a phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the deletion of a provisioned phone number. (default to false)
321
323
  */
322
- deleteRoutingSmsPhonenumber(addressId) {
324
+ deleteRoutingSmsPhonenumber(addressId, opts) {
325
+ opts = opts || {};
326
+
323
327
  // verify the required parameter 'addressId' is set
324
328
  if (addressId === undefined || addressId === null) {
325
329
  throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
@@ -329,7 +333,7 @@ class RoutingApi {
329
333
  '/api/v2/routing/sms/phonenumbers/{addressId}',
330
334
  'DELETE',
331
335
  { 'addressId': addressId },
332
- { },
336
+ { 'async': opts['async'] },
333
337
  { },
334
338
  { },
335
339
  null,
@@ -1157,12 +1161,11 @@ class RoutingApi {
1157
1161
  }
1158
1162
 
1159
1163
  /**
1160
- * Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization.
1164
+ * Get a paged listing of simplified queue objects, sorted by name. Can be used to get a digest of all queues in an organization.
1161
1165
  *
1162
1166
  * @param {Object} opts Optional parameters
1163
1167
  * @param {Number} opts.pageSize Page size [max value is 500] (default to 25)
1164
1168
  * @param {Number} opts.pageNumber Page number (default to 1)
1165
- * @param {Object} opts.sortBy Sort by (default to name)
1166
1169
  * @param {Object} opts.sortOrder Sort order (default to asc)
1167
1170
  */
1168
1171
  getRoutingQueuesDivisionviewsAll(opts) {
@@ -1173,7 +1176,7 @@ class RoutingApi {
1173
1176
  '/api/v2/routing/queues/divisionviews/all',
1174
1177
  'GET',
1175
1178
  { },
1176
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
1179
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
1177
1180
  { },
1178
1181
  { },
1179
1182
  null,
@@ -2476,8 +2479,12 @@ class RoutingApi {
2476
2479
  * Provision a phone number for SMS
2477
2480
  *
2478
2481
  * @param {Object} body SmsPhoneNumber
2482
+ * @param {Object} opts Optional parameters
2483
+ * @param {Boolean} opts.async Provision a new phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the provisioning of a new phone number. Check the phoneNumber's provisioningStatus for completion of this request. (default to false)
2479
2484
  */
2480
- postRoutingSmsPhonenumbers(body) {
2485
+ postRoutingSmsPhonenumbers(body, opts) {
2486
+ opts = opts || {};
2487
+
2481
2488
  // verify the required parameter 'body' is set
2482
2489
  if (body === undefined || body === null) {
2483
2490
  throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
@@ -2487,7 +2494,7 @@ class RoutingApi {
2487
2494
  '/api/v2/routing/sms/phonenumbers',
2488
2495
  'POST',
2489
2496
  { },
2490
- { },
2497
+ { 'async': opts['async'] },
2491
2498
  { },
2492
2499
  { },
2493
2500
  body,
@@ -2732,8 +2739,12 @@ class RoutingApi {
2732
2739
  *
2733
2740
  * @param {String} addressId Address ID
2734
2741
  * @param {Object} body SmsPhoneNumber
2742
+ * @param {Object} opts Optional parameters
2743
+ * @param {Boolean} opts.async Update an existing phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the update of a provisioned phone number. Check the phoneNumber's provisioningStatus for the progress of this request. (default to false)
2735
2744
  */
2736
- putRoutingSmsPhonenumber(addressId, body) {
2745
+ putRoutingSmsPhonenumber(addressId, body, opts) {
2746
+ opts = opts || {};
2747
+
2737
2748
  // verify the required parameter 'addressId' is set
2738
2749
  if (addressId === undefined || addressId === null) {
2739
2750
  throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
@@ -2747,7 +2758,7 @@ class RoutingApi {
2747
2758
  '/api/v2/routing/sms/phonenumbers/{addressId}',
2748
2759
  'PUT',
2749
2760
  { 'addressId': addressId },
2750
- { },
2761
+ { 'async': opts['async'] },
2751
2762
  { },
2752
2763
  { },
2753
2764
  body,
@@ -5,7 +5,7 @@ class SCIMApi {
5
5
  /**
6
6
  * SCIM service.
7
7
  * @module purecloud-platform-client-v2/api/SCIMApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScriptsApi {
5
5
  /**
6
6
  * Scripts service.
7
7
  * @module purecloud-platform-client-v2/api/ScriptsApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SearchApi {
5
5
  /**
6
6
  * Search service.
7
7
  * @module purecloud-platform-client-v2/api/SearchApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
5
5
  /**
6
6
  * SpeechTextAnalytics service.
7
7
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -49,6 +49,51 @@ class SpeechTextAnalyticsApi {
49
49
  );
50
50
  }
51
51
 
52
+ /**
53
+ * Delete All Speech & Text Analytics SentimentFeedback
54
+ *
55
+ */
56
+ deleteSpeechandtextanalyticsSentimentfeedback() {
57
+
58
+ return this.apiClient.callApi(
59
+ '/api/v2/speechandtextanalytics/sentimentfeedback',
60
+ 'DELETE',
61
+ { },
62
+ { },
63
+ { },
64
+ { },
65
+ null,
66
+ ['PureCloud OAuth'],
67
+ ['application/json'],
68
+ ['application/json']
69
+ );
70
+ }
71
+
72
+ /**
73
+ * Delete a Speech & Text Analytics SentimentFeedback by Id
74
+ *
75
+ * @param {String} sentimentFeedbackId The Id of the SentimentFeedback
76
+ */
77
+ deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(sentimentFeedbackId) {
78
+ // verify the required parameter 'sentimentFeedbackId' is set
79
+ if (sentimentFeedbackId === undefined || sentimentFeedbackId === null) {
80
+ throw 'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';
81
+ }
82
+
83
+ return this.apiClient.callApi(
84
+ '/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}',
85
+ 'DELETE',
86
+ { 'sentimentFeedbackId': sentimentFeedbackId },
87
+ { },
88
+ { },
89
+ { },
90
+ null,
91
+ ['PureCloud OAuth'],
92
+ ['application/json'],
93
+ ['application/json']
94
+ );
95
+ }
96
+
52
97
  /**
53
98
  * Delete a Speech & Text Analytics topic by id
54
99
  *
@@ -131,7 +176,7 @@ class SpeechTextAnalyticsApi {
131
176
 
132
177
  /**
133
178
  * Get list of supported Speech & Text Analytics dialects
134
- *
179
+ * This api has been deprecated. Use api/v2/topics/dialects instead
135
180
  */
136
181
  getSpeechandtextanalyticsDialects() {
137
182
 
@@ -324,6 +369,50 @@ class SpeechTextAnalyticsApi {
324
369
  );
325
370
  }
326
371
 
372
+ /**
373
+ * Get the list of Speech & Text Analytics sentiment supported dialects
374
+ *
375
+ */
376
+ getSpeechandtextanalyticsSentimentDialects() {
377
+
378
+ return this.apiClient.callApi(
379
+ '/api/v2/speechandtextanalytics/sentiment/dialects',
380
+ 'GET',
381
+ { },
382
+ { },
383
+ { },
384
+ { },
385
+ null,
386
+ ['PureCloud OAuth'],
387
+ ['application/json'],
388
+ ['application/json']
389
+ );
390
+ }
391
+
392
+ /**
393
+ * Get the list of Speech & Text Analytics SentimentFeedback
394
+ *
395
+ * @param {Object} opts Optional parameters
396
+ * @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
397
+ */
398
+ getSpeechandtextanalyticsSentimentfeedback(opts) {
399
+ opts = opts || {};
400
+
401
+
402
+ return this.apiClient.callApi(
403
+ '/api/v2/speechandtextanalytics/sentimentfeedback',
404
+ 'GET',
405
+ { },
406
+ { 'dialect': opts['dialect'] },
407
+ { },
408
+ { },
409
+ null,
410
+ ['PureCloud OAuth'],
411
+ ['application/json'],
412
+ ['application/json']
413
+ );
414
+ }
415
+
327
416
  /**
328
417
  * Get Speech And Text Analytics Settings
329
418
  *
@@ -568,6 +657,31 @@ class SpeechTextAnalyticsApi {
568
657
  );
569
658
  }
570
659
 
660
+ /**
661
+ * Create a Speech & Text Analytics SentimentFeedback
662
+ *
663
+ * @param {Object} body The SentimentFeedback to create
664
+ */
665
+ postSpeechandtextanalyticsSentimentfeedback(body) {
666
+ // verify the required parameter 'body' is set
667
+ if (body === undefined || body === null) {
668
+ throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';
669
+ }
670
+
671
+ return this.apiClient.callApi(
672
+ '/api/v2/speechandtextanalytics/sentimentfeedback',
673
+ 'POST',
674
+ { },
675
+ { },
676
+ { },
677
+ { },
678
+ body,
679
+ ['PureCloud OAuth'],
680
+ ['application/json'],
681
+ ['application/json']
682
+ );
683
+ }
684
+
571
685
  /**
572
686
  * Create new Speech & Text Analytics topic
573
687
  *
@@ -5,7 +5,7 @@ class StationsApi {
5
5
  /**
6
6
  * Stations service.
7
7
  * @module purecloud-platform-client-v2/api/StationsApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SuggestApi {
5
5
  /**
6
6
  * Suggest service.
7
7
  * @module purecloud-platform-client-v2/api/SuggestApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyApi {
5
5
  /**
6
6
  * Telephony service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyProvidersEdgeApi {
5
5
  /**
6
6
  * TelephonyProvidersEdge service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
8
- * @version 124.0.0
8
+ * @version 127.0.0
9
9
  */
10
10
 
11
11
  /**