purecloud-platform-client-v2 162.0.0 → 164.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 +13 -14
  2. package/dist/node/purecloud-platform-client-v2.js +212 -88
  3. package/dist/web-amd/purecloud-platform-client-v2.js +212 -88
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +212 -88
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +481 -6603
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +277 -221
  9. package/package.json +2 -3
  10. package/src/purecloud-platform-client-v2/ApiClient.js +12 -17
  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 +2 -2
  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 +41 -1
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -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 +1 -1
  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 +1 -1
  50. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/RoutingApi.js +3 -2
  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 +1 -1
  59. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/UsageApi.js +90 -1
  69. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -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 +1 -1
  78. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -400,11 +400,9 @@ class Configuration {
400
400
  }
401
401
  }
402
402
 
403
- const { HttpsProxyAgent } = require('hpagent');
404
-
405
403
  /**
406
404
  * @module purecloud-platform-client-v2/ApiClient
407
- * @version 162.0.0
405
+ * @version 164.0.0
408
406
  */
409
407
  class ApiClient {
410
408
  /**
@@ -676,18 +674,12 @@ class ApiClient {
676
674
  const headers = {
677
675
  'Authorization': `Basic ${authHeader}`
678
676
  };
679
- let httpsAgent;
680
- if (this.proxy !== undefined){
681
- httpsAgent = new HttpsProxyAgent({
682
- proxy : `${this.proxy.protocol}://${this.proxy.host}:${this.proxy.port}`
683
- });
684
- }
685
677
  axios__default["default"]({
686
678
  method: `POST`,
687
679
  url: `https://login.${this.config.environment}/oauth/token`,
688
680
  headers: headers,
689
681
  data: 'grant_type=client_credentials',
690
- httpsAgent: httpsAgent
682
+ httpsAgent: this.proxyAgent
691
683
  })
692
684
  .then((response) => {
693
685
  // Logging
@@ -1364,6 +1356,14 @@ class ApiClient {
1364
1356
  });
1365
1357
  }
1366
1358
 
1359
+ /**
1360
+ * @description Sets the proxy agent axios will use for requests
1361
+ * @param {any} agent - The proxy agent
1362
+ */
1363
+ setProxyAgent(agent) {
1364
+ this.proxyAgent = agent;
1365
+ }
1366
+
1367
1367
  /**
1368
1368
  * Invokes the REST service using the supplied settings and parameters.
1369
1369
  * @param {String} path The base URL to invoke.
@@ -1384,16 +1384,10 @@ class ApiClient {
1384
1384
  sendRequest(this);
1385
1385
  function sendRequest(that) {
1386
1386
  var url = that.buildUrl(path, pathParams);
1387
- let httpsAgent;
1388
- if (that.proxy !== undefined){
1389
- httpsAgent = new HttpsProxyAgent({
1390
- proxy : `${that.proxy.protocol}://${that.proxy.host}:${that.proxy.port}`
1391
- });
1392
- }
1393
1387
  var request = {
1394
1388
  method: httpMethod,
1395
- url: url,
1396
- httpsAgent: httpsAgent,
1389
+ url: url,
1390
+ httpsAgent: that.proxyAgent,
1397
1391
  timeout: that.timeout,
1398
1392
  params: that.serialize(queryParams)
1399
1393
  };
@@ -1494,7 +1488,7 @@ class AlertingApi {
1494
1488
  /**
1495
1489
  * Alerting service.
1496
1490
  * @module purecloud-platform-client-v2/api/AlertingApi
1497
- * @version 162.0.0
1491
+ * @version 164.0.0
1498
1492
  */
1499
1493
 
1500
1494
  /**
@@ -1808,7 +1802,7 @@ class AnalyticsApi {
1808
1802
  /**
1809
1803
  * Analytics service.
1810
1804
  * @module purecloud-platform-client-v2/api/AnalyticsApi
1811
- * @version 162.0.0
1805
+ * @version 164.0.0
1812
1806
  */
1813
1807
 
1814
1808
  /**
@@ -3062,7 +3056,7 @@ class ArchitectApi {
3062
3056
  /**
3063
3057
  * Architect service.
3064
3058
  * @module purecloud-platform-client-v2/api/ArchitectApi
3065
- * @version 162.0.0
3059
+ * @version 164.0.0
3066
3060
  */
3067
3061
 
3068
3062
  /**
@@ -6110,7 +6104,7 @@ class AuditApi {
6110
6104
  /**
6111
6105
  * Audit service.
6112
6106
  * @module purecloud-platform-client-v2/api/AuditApi
6113
- * @version 162.0.0
6107
+ * @version 164.0.0
6114
6108
  */
6115
6109
 
6116
6110
  /**
@@ -6196,7 +6190,7 @@ class AuditApi {
6196
6190
  * @param {String} transactionId Transaction ID
6197
6191
  * @param {Object} opts Optional parameters
6198
6192
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
6199
- * @param {Number} opts.pageSize Page size (default to 25)
6193
+ * @param {Number} opts.pageSize Indicates maximum number of results in response. Default page size is 25 results. The maximum page size is 500. (default to 25)
6200
6194
  * @param {Array.<String>} opts.expand Which fields, if any, to expand
6201
6195
  */
6202
6196
  getAuditsQueryTransactionIdResults(transactionId, opts) {
@@ -6281,7 +6275,7 @@ class AuthorizationApi {
6281
6275
  /**
6282
6276
  * Authorization service.
6283
6277
  * @module purecloud-platform-client-v2/api/AuthorizationApi
6284
- * @version 162.0.0
6278
+ * @version 164.0.0
6285
6279
  */
6286
6280
 
6287
6281
  /**
@@ -7510,7 +7504,7 @@ class BillingApi {
7510
7504
  /**
7511
7505
  * Billing service.
7512
7506
  * @module purecloud-platform-client-v2/api/BillingApi
7513
- * @version 162.0.0
7507
+ * @version 164.0.0
7514
7508
  */
7515
7509
 
7516
7510
  /**
@@ -7590,7 +7584,7 @@ class ChatApi {
7590
7584
  /**
7591
7585
  * Chat service.
7592
7586
  * @module purecloud-platform-client-v2/api/ChatApi
7593
- * @version 162.0.0
7587
+ * @version 164.0.0
7594
7588
  */
7595
7589
 
7596
7590
  /**
@@ -7751,7 +7745,7 @@ class CoachingApi {
7751
7745
  /**
7752
7746
  * Coaching service.
7753
7747
  * @module purecloud-platform-client-v2/api/CoachingApi
7754
- * @version 162.0.0
7748
+ * @version 164.0.0
7755
7749
  */
7756
7750
 
7757
7751
  /**
@@ -8328,7 +8322,7 @@ class ContentManagementApi {
8328
8322
  /**
8329
8323
  * ContentManagement service.
8330
8324
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8331
- * @version 162.0.0
8325
+ * @version 164.0.0
8332
8326
  */
8333
8327
 
8334
8328
  /**
@@ -9468,7 +9462,7 @@ class ConversationsApi {
9468
9462
  /**
9469
9463
  * Conversations service.
9470
9464
  * @module purecloud-platform-client-v2/api/ConversationsApi
9471
- * @version 162.0.0
9465
+ * @version 164.0.0
9472
9466
  */
9473
9467
 
9474
9468
  /**
@@ -12045,6 +12039,46 @@ class ConversationsApi {
12045
12039
  );
12046
12040
  }
12047
12041
 
12042
+ /**
12043
+ * Update after-call work for this conversation communication.
12044
+ *
12045
+ * @param {String} conversationId conversationId
12046
+ * @param {String} participantId participantId
12047
+ * @param {String} communicationId communicationId
12048
+ * @param {Object} body AfterCallWorkUpdate
12049
+ */
12050
+ patchConversationsAftercallworkConversationIdParticipantCommunication(conversationId, participantId, communicationId, body) {
12051
+ // verify the required parameter 'conversationId' is set
12052
+ if (conversationId === undefined || conversationId === null) {
12053
+ throw 'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12054
+ }
12055
+ // verify the required parameter 'participantId' is set
12056
+ if (participantId === undefined || participantId === null) {
12057
+ throw 'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12058
+ }
12059
+ // verify the required parameter 'communicationId' is set
12060
+ if (communicationId === undefined || communicationId === null) {
12061
+ throw 'Missing the required parameter "communicationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12062
+ }
12063
+ // verify the required parameter 'body' is set
12064
+ if (body === undefined || body === null) {
12065
+ throw 'Missing the required parameter "body" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12066
+ }
12067
+
12068
+ return this.apiClient.callApi(
12069
+ '/api/v2/conversations/aftercallwork/{conversationId}/participants/{participantId}/communications/{communicationId}',
12070
+ 'PATCH',
12071
+ { 'conversationId': conversationId,'participantId': participantId,'communicationId': communicationId },
12072
+ { },
12073
+ { },
12074
+ { },
12075
+ body,
12076
+ ['PureCloud OAuth'],
12077
+ ['application/json'],
12078
+ ['application/json']
12079
+ );
12080
+ }
12081
+
12048
12082
  /**
12049
12083
  * Update a conversation by setting its recording state, merging in other conversations to create a conference, or disconnecting all of the participants
12050
12084
  *
@@ -15488,7 +15522,7 @@ class DataExtensionsApi {
15488
15522
  /**
15489
15523
  * DataExtensions service.
15490
15524
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
15491
- * @version 162.0.0
15525
+ * @version 164.0.0
15492
15526
  */
15493
15527
 
15494
15528
  /**
@@ -15574,7 +15608,7 @@ class DownloadsApi {
15574
15608
  /**
15575
15609
  * Downloads service.
15576
15610
  * @module purecloud-platform-client-v2/api/DownloadsApi
15577
- * @version 162.0.0
15611
+ * @version 164.0.0
15578
15612
  */
15579
15613
 
15580
15614
  /**
@@ -15626,7 +15660,7 @@ class EventsApi {
15626
15660
  /**
15627
15661
  * Events service.
15628
15662
  * @module purecloud-platform-client-v2/api/EventsApi
15629
- * @version 162.0.0
15663
+ * @version 164.0.0
15630
15664
  */
15631
15665
 
15632
15666
  /**
@@ -15722,7 +15756,7 @@ class ExternalContactsApi {
15722
15756
  /**
15723
15757
  * ExternalContacts service.
15724
15758
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
15725
- * @version 162.0.0
15759
+ * @version 164.0.0
15726
15760
  */
15727
15761
 
15728
15762
  /**
@@ -17680,7 +17714,7 @@ class FaxApi {
17680
17714
  /**
17681
17715
  * Fax service.
17682
17716
  * @module purecloud-platform-client-v2/api/FaxApi
17683
- * @version 162.0.0
17717
+ * @version 164.0.0
17684
17718
  */
17685
17719
 
17686
17720
  /**
@@ -17851,7 +17885,7 @@ class FlowsApi {
17851
17885
  /**
17852
17886
  * Flows service.
17853
17887
  * @module purecloud-platform-client-v2/api/FlowsApi
17854
- * @version 162.0.0
17888
+ * @version 164.0.0
17855
17889
  */
17856
17890
 
17857
17891
  /**
@@ -17922,7 +17956,7 @@ class GamificationApi {
17922
17956
  /**
17923
17957
  * Gamification service.
17924
17958
  * @module purecloud-platform-client-v2/api/GamificationApi
17925
- * @version 162.0.0
17959
+ * @version 164.0.0
17926
17960
  */
17927
17961
 
17928
17962
  /**
@@ -19539,7 +19573,7 @@ class GeneralDataProtectionRegulationApi {
19539
19573
  /**
19540
19574
  * GeneralDataProtectionRegulation service.
19541
19575
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
19542
- * @version 162.0.0
19576
+ * @version 164.0.0
19543
19577
  */
19544
19578
 
19545
19579
  /**
@@ -19669,7 +19703,7 @@ class GeolocationApi {
19669
19703
  /**
19670
19704
  * Geolocation service.
19671
19705
  * @module purecloud-platform-client-v2/api/GeolocationApi
19672
- * @version 162.0.0
19706
+ * @version 164.0.0
19673
19707
  */
19674
19708
 
19675
19709
  /**
@@ -19800,7 +19834,7 @@ class GreetingsApi {
19800
19834
  /**
19801
19835
  * Greetings service.
19802
19836
  * @module purecloud-platform-client-v2/api/GreetingsApi
19803
- * @version 162.0.0
19837
+ * @version 164.0.0
19804
19838
  */
19805
19839
 
19806
19840
  /**
@@ -20255,7 +20289,7 @@ class GroupsApi {
20255
20289
  /**
20256
20290
  * Groups service.
20257
20291
  * @module purecloud-platform-client-v2/api/GroupsApi
20258
- * @version 162.0.0
20292
+ * @version 164.0.0
20259
20293
  */
20260
20294
 
20261
20295
  /**
@@ -20661,7 +20695,7 @@ class IdentityProviderApi {
20661
20695
  /**
20662
20696
  * IdentityProvider service.
20663
20697
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
20664
- * @version 162.0.0
20698
+ * @version 164.0.0
20665
20699
  */
20666
20700
 
20667
20701
  /**
@@ -21417,7 +21451,7 @@ class InfrastructureAsCodeApi {
21417
21451
  /**
21418
21452
  * InfrastructureAsCode service.
21419
21453
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
21420
- * @version 162.0.0
21454
+ * @version 164.0.0
21421
21455
  */
21422
21456
 
21423
21457
  /**
@@ -21519,7 +21553,7 @@ class IntegrationsApi {
21519
21553
  /**
21520
21554
  * Integrations service.
21521
21555
  * @module purecloud-platform-client-v2/api/IntegrationsApi
21522
- * @version 162.0.0
21556
+ * @version 164.0.0
21523
21557
  */
21524
21558
 
21525
21559
  /**
@@ -23119,7 +23153,7 @@ class JourneyApi {
23119
23153
  /**
23120
23154
  * Journey service.
23121
23155
  * @module purecloud-platform-client-v2/api/JourneyApi
23122
- * @version 162.0.0
23156
+ * @version 164.0.0
23123
23157
  */
23124
23158
 
23125
23159
  /**
@@ -23999,7 +24033,7 @@ class KnowledgeApi {
23999
24033
  /**
24000
24034
  * Knowledge service.
24001
24035
  * @module purecloud-platform-client-v2/api/KnowledgeApi
24002
- * @version 162.0.0
24036
+ * @version 164.0.0
24003
24037
  */
24004
24038
 
24005
24039
  /**
@@ -26431,7 +26465,7 @@ class LanguageUnderstandingApi {
26431
26465
  /**
26432
26466
  * LanguageUnderstanding service.
26433
26467
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
26434
- * @version 162.0.0
26468
+ * @version 164.0.0
26435
26469
  */
26436
26470
 
26437
26471
  /**
@@ -27444,7 +27478,7 @@ class LanguagesApi {
27444
27478
  /**
27445
27479
  * Languages service.
27446
27480
  * @module purecloud-platform-client-v2/api/LanguagesApi
27447
- * @version 162.0.0
27481
+ * @version 164.0.0
27448
27482
  */
27449
27483
 
27450
27484
  /**
@@ -27662,7 +27696,7 @@ class LearningApi {
27662
27696
  /**
27663
27697
  * Learning service.
27664
27698
  * @module purecloud-platform-client-v2/api/LearningApi
27665
- * @version 162.0.0
27699
+ * @version 164.0.0
27666
27700
  */
27667
27701
 
27668
27702
  /**
@@ -28477,7 +28511,7 @@ class LicenseApi {
28477
28511
  /**
28478
28512
  * License service.
28479
28513
  * @module purecloud-platform-client-v2/api/LicenseApi
28480
- * @version 162.0.0
28514
+ * @version 164.0.0
28481
28515
  */
28482
28516
 
28483
28517
  /**
@@ -28715,7 +28749,7 @@ class LocationsApi {
28715
28749
  /**
28716
28750
  * Locations service.
28717
28751
  * @module purecloud-platform-client-v2/api/LocationsApi
28718
- * @version 162.0.0
28752
+ * @version 164.0.0
28719
28753
  */
28720
28754
 
28721
28755
  /**
@@ -28951,7 +28985,7 @@ class MessagingApi {
28951
28985
  /**
28952
28986
  * Messaging service.
28953
28987
  * @module purecloud-platform-client-v2/api/MessagingApi
28954
- * @version 162.0.0
28988
+ * @version 164.0.0
28955
28989
  */
28956
28990
 
28957
28991
  /**
@@ -29102,7 +29136,7 @@ class MobileDevicesApi {
29102
29136
  /**
29103
29137
  * MobileDevices service.
29104
29138
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
29105
- * @version 162.0.0
29139
+ * @version 164.0.0
29106
29140
  */
29107
29141
 
29108
29142
  /**
@@ -29253,7 +29287,7 @@ class NotificationsApi {
29253
29287
  /**
29254
29288
  * Notifications service.
29255
29289
  * @module purecloud-platform-client-v2/api/NotificationsApi
29256
- * @version 162.0.0
29290
+ * @version 164.0.0
29257
29291
  */
29258
29292
 
29259
29293
  /**
@@ -29486,7 +29520,7 @@ class OAuthApi {
29486
29520
  /**
29487
29521
  * OAuth service.
29488
29522
  * @module purecloud-platform-client-v2/api/OAuthApi
29489
- * @version 162.0.0
29523
+ * @version 164.0.0
29490
29524
  */
29491
29525
 
29492
29526
  /**
@@ -29852,7 +29886,7 @@ class ObjectsApi {
29852
29886
  /**
29853
29887
  * Objects service.
29854
29888
  * @module purecloud-platform-client-v2/api/ObjectsApi
29855
- * @version 162.0.0
29889
+ * @version 164.0.0
29856
29890
  */
29857
29891
 
29858
29892
  /**
@@ -30123,7 +30157,7 @@ class OrganizationApi {
30123
30157
  /**
30124
30158
  * Organization service.
30125
30159
  * @module purecloud-platform-client-v2/api/OrganizationApi
30126
- * @version 162.0.0
30160
+ * @version 164.0.0
30127
30161
  */
30128
30162
 
30129
30163
  /**
@@ -30526,7 +30560,7 @@ class OrganizationAuthorizationApi {
30526
30560
  /**
30527
30561
  * OrganizationAuthorization service.
30528
30562
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
30529
- * @version 162.0.0
30563
+ * @version 164.0.0
30530
30564
  */
30531
30565
 
30532
30566
  /**
@@ -31821,7 +31855,7 @@ class OutboundApi {
31821
31855
  /**
31822
31856
  * Outbound service.
31823
31857
  * @module purecloud-platform-client-v2/api/OutboundApi
31824
- * @version 162.0.0
31858
+ * @version 164.0.0
31825
31859
  */
31826
31860
 
31827
31861
  /**
@@ -35417,7 +35451,7 @@ class PresenceApi {
35417
35451
  /**
35418
35452
  * Presence service.
35419
35453
  * @module purecloud-platform-client-v2/api/PresenceApi
35420
- * @version 162.0.0
35454
+ * @version 164.0.0
35421
35455
  */
35422
35456
 
35423
35457
  /**
@@ -35968,7 +36002,7 @@ class ProcessAutomationApi {
35968
36002
  /**
35969
36003
  * ProcessAutomation service.
35970
36004
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
35971
- * @version 162.0.0
36005
+ * @version 164.0.0
35972
36006
  */
35973
36007
 
35974
36008
  /**
@@ -36207,7 +36241,7 @@ class QualityApi {
36207
36241
  /**
36208
36242
  * Quality service.
36209
36243
  * @module purecloud-platform-client-v2/api/QualityApi
36210
- * @version 162.0.0
36244
+ * @version 164.0.0
36211
36245
  */
36212
36246
 
36213
36247
  /**
@@ -37786,7 +37820,7 @@ class RecordingApi {
37786
37820
  /**
37787
37821
  * Recording service.
37788
37822
  * @module purecloud-platform-client-v2/api/RecordingApi
37789
- * @version 162.0.0
37823
+ * @version 164.0.0
37790
37824
  */
37791
37825
 
37792
37826
  /**
@@ -39423,7 +39457,7 @@ class ResponseManagementApi {
39423
39457
  /**
39424
39458
  * ResponseManagement service.
39425
39459
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
39426
- * @version 162.0.0
39460
+ * @version 164.0.0
39427
39461
  */
39428
39462
 
39429
39463
  /**
@@ -39907,7 +39941,7 @@ class RoutingApi {
39907
39941
  /**
39908
39942
  * Routing service.
39909
39943
  * @module purecloud-platform-client-v2/api/RoutingApi
39910
- * @version 162.0.0
39944
+ * @version 164.0.0
39911
39945
  */
39912
39946
 
39913
39947
  /**
@@ -41850,6 +41884,7 @@ class RoutingApi {
41850
41884
  * @param {Number} opts.pageNumber Page number (default to 1)
41851
41885
  * @param {Object} opts.sortBy Sort by (default to name)
41852
41886
  * @param {Object} opts.sortOrder Sort order (default to ascending)
41887
+ * @param {Array.<String>} opts.id Filter by wrapup code ID(s)
41853
41888
  * @param {String} opts.name Wrapup code's name ('Sort by' param is ignored unless this field is provided)
41854
41889
  * @param {Array.<String>} opts.divisionId Filter by division ID(s)
41855
41890
  */
@@ -41861,7 +41896,7 @@ class RoutingApi {
41861
41896
  '/api/v2/routing/wrapupcodes',
41862
41897
  'GET',
41863
41898
  { },
41864
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
41899
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
41865
41900
  { },
41866
41901
  { },
41867
41902
  null,
@@ -43413,7 +43448,7 @@ class SCIMApi {
43413
43448
  /**
43414
43449
  * SCIM service.
43415
43450
  * @module purecloud-platform-client-v2/api/SCIMApi
43416
- * @version 162.0.0
43451
+ * @version 164.0.0
43417
43452
  */
43418
43453
 
43419
43454
  /**
@@ -44290,7 +44325,7 @@ class ScriptsApi {
44290
44325
  /**
44291
44326
  * Scripts service.
44292
44327
  * @module purecloud-platform-client-v2/api/ScriptsApi
44293
- * @version 162.0.0
44328
+ * @version 164.0.0
44294
44329
  */
44295
44330
 
44296
44331
  /**
@@ -44709,7 +44744,7 @@ class SearchApi {
44709
44744
  /**
44710
44745
  * Search service.
44711
44746
  * @module purecloud-platform-client-v2/api/SearchApi
44712
- * @version 162.0.0
44747
+ * @version 164.0.0
44713
44748
  */
44714
44749
 
44715
44750
  /**
@@ -45319,7 +45354,7 @@ class SpeechTextAnalyticsApi {
45319
45354
  /**
45320
45355
  * SpeechTextAnalytics service.
45321
45356
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
45322
- * @version 162.0.0
45357
+ * @version 164.0.0
45323
45358
  */
45324
45359
 
45325
45360
  /**
@@ -46248,7 +46283,7 @@ class StationsApi {
46248
46283
  /**
46249
46284
  * Stations service.
46250
46285
  * @module purecloud-platform-client-v2/api/StationsApi
46251
- * @version 162.0.0
46286
+ * @version 164.0.0
46252
46287
  */
46253
46288
 
46254
46289
  /**
@@ -46395,7 +46430,7 @@ class SuggestApi {
46395
46430
  /**
46396
46431
  * Suggest service.
46397
46432
  * @module purecloud-platform-client-v2/api/SuggestApi
46398
- * @version 162.0.0
46433
+ * @version 164.0.0
46399
46434
  */
46400
46435
 
46401
46436
  /**
@@ -46534,7 +46569,7 @@ class TeamsApi {
46534
46569
  /**
46535
46570
  * Teams service.
46536
46571
  * @module purecloud-platform-client-v2/api/TeamsApi
46537
- * @version 162.0.0
46572
+ * @version 164.0.0
46538
46573
  */
46539
46574
 
46540
46575
  /**
@@ -46805,7 +46840,7 @@ class TelephonyApi {
46805
46840
  /**
46806
46841
  * Telephony service.
46807
46842
  * @module purecloud-platform-client-v2/api/TelephonyApi
46808
- * @version 162.0.0
46843
+ * @version 164.0.0
46809
46844
  */
46810
46845
 
46811
46846
  /**
@@ -46933,7 +46968,7 @@ class TelephonyProvidersEdgeApi {
46933
46968
  /**
46934
46969
  * TelephonyProvidersEdge service.
46935
46970
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
46936
- * @version 162.0.0
46971
+ * @version 164.0.0
46937
46972
  */
46938
46973
 
46939
46974
  /**
@@ -50542,7 +50577,7 @@ class TextbotsApi {
50542
50577
  /**
50543
50578
  * Textbots service.
50544
50579
  * @module purecloud-platform-client-v2/api/TextbotsApi
50545
- * @version 162.0.0
50580
+ * @version 164.0.0
50546
50581
  */
50547
50582
 
50548
50583
  /**
@@ -50670,7 +50705,7 @@ class TokensApi {
50670
50705
  /**
50671
50706
  * Tokens service.
50672
50707
  * @module purecloud-platform-client-v2/api/TokensApi
50673
- * @version 162.0.0
50708
+ * @version 164.0.0
50674
50709
  */
50675
50710
 
50676
50711
  /**
@@ -50776,7 +50811,7 @@ class UploadsApi {
50776
50811
  /**
50777
50812
  * Uploads service.
50778
50813
  * @module purecloud-platform-client-v2/api/UploadsApi
50779
- * @version 162.0.0
50814
+ * @version 164.0.0
50780
50815
  */
50781
50816
 
50782
50817
  /**
@@ -50952,7 +50987,7 @@ class UsageApi {
50952
50987
  /**
50953
50988
  * Usage service.
50954
50989
  * @module purecloud-platform-client-v2/api/UsageApi
50955
- * @version 162.0.0
50990
+ * @version 164.0.0
50956
50991
  */
50957
50992
 
50958
50993
  /**
@@ -50967,6 +51002,65 @@ class UsageApi {
50967
51002
  }
50968
51003
 
50969
51004
 
51005
+ /**
51006
+ * Get the results of a usage query
51007
+ *
51008
+ * @param {String} executionId ID of the query execution
51009
+ * @param {String} clientId Client ID
51010
+ */
51011
+ getOauthClientUsageQueryResult(executionId, clientId) {
51012
+ // verify the required parameter 'executionId' is set
51013
+ if (executionId === undefined || executionId === null) {
51014
+ throw 'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';
51015
+ }
51016
+ // verify the required parameter 'clientId' is set
51017
+ if (clientId === undefined || clientId === null) {
51018
+ throw 'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';
51019
+ }
51020
+
51021
+ return this.apiClient.callApi(
51022
+ '/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}',
51023
+ 'GET',
51024
+ { 'executionId': executionId,'clientId': clientId },
51025
+ { },
51026
+ { },
51027
+ { },
51028
+ null,
51029
+ ['PureCloud OAuth'],
51030
+ ['application/json'],
51031
+ ['application/json']
51032
+ );
51033
+ }
51034
+
51035
+ /**
51036
+ * Get a summary of OAuth client API usage
51037
+ * After calling this method, you will then need to poll for the query results based on the returned execution Id
51038
+ * @param {String} clientId Client ID
51039
+ * @param {Object} opts Optional parameters
51040
+ * @param {String} opts.days Previous number of days to query (default to 7)
51041
+ */
51042
+ getOauthClientUsageSummary(clientId, opts) {
51043
+ opts = opts || {};
51044
+
51045
+ // verify the required parameter 'clientId' is set
51046
+ if (clientId === undefined || clientId === null) {
51047
+ throw 'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';
51048
+ }
51049
+
51050
+ return this.apiClient.callApi(
51051
+ '/api/v2/oauth/clients/{clientId}/usage/summary',
51052
+ 'GET',
51053
+ { 'clientId': clientId },
51054
+ { 'days': opts['days'] },
51055
+ { },
51056
+ { },
51057
+ null,
51058
+ ['PureCloud OAuth'],
51059
+ ['application/json'],
51060
+ ['application/json']
51061
+ );
51062
+ }
51063
+
50970
51064
  /**
50971
51065
  * Get the results of a usage query
50972
51066
  *
@@ -50992,6 +51086,36 @@ class UsageApi {
50992
51086
  );
50993
51087
  }
50994
51088
 
51089
+ /**
51090
+ * Query for OAuth client API usage
51091
+ * After calling this method, you will then need to poll for the query results based on the returned execution Id
51092
+ * @param {String} clientId Client ID
51093
+ * @param {Object} body Query
51094
+ */
51095
+ postOauthClientUsageQuery(clientId, body) {
51096
+ // verify the required parameter 'clientId' is set
51097
+ if (clientId === undefined || clientId === null) {
51098
+ throw 'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';
51099
+ }
51100
+ // verify the required parameter 'body' is set
51101
+ if (body === undefined || body === null) {
51102
+ throw 'Missing the required parameter "body" when calling postOauthClientUsageQuery';
51103
+ }
51104
+
51105
+ return this.apiClient.callApi(
51106
+ '/api/v2/oauth/clients/{clientId}/usage/query',
51107
+ 'POST',
51108
+ { 'clientId': clientId },
51109
+ { },
51110
+ { },
51111
+ { },
51112
+ body,
51113
+ ['PureCloud OAuth'],
51114
+ ['application/json'],
51115
+ ['application/json']
51116
+ );
51117
+ }
51118
+
50995
51119
  /**
50996
51120
  * Query organization API Usage -
50997
51121
  * After calling this method, you will then need to poll for the query results based on the returned execution Id
@@ -51023,7 +51147,7 @@ class UserRecordingsApi {
51023
51147
  /**
51024
51148
  * UserRecordings service.
51025
51149
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
51026
- * @version 162.0.0
51150
+ * @version 164.0.0
51027
51151
  */
51028
51152
 
51029
51153
  /**
@@ -51208,7 +51332,7 @@ class UsersApi {
51208
51332
  /**
51209
51333
  * Users service.
51210
51334
  * @module purecloud-platform-client-v2/api/UsersApi
51211
- * @version 162.0.0
51335
+ * @version 164.0.0
51212
51336
  */
51213
51337
 
51214
51338
  /**
@@ -53596,7 +53720,7 @@ class UtilitiesApi {
53596
53720
  /**
53597
53721
  * Utilities service.
53598
53722
  * @module purecloud-platform-client-v2/api/UtilitiesApi
53599
- * @version 162.0.0
53723
+ * @version 164.0.0
53600
53724
  */
53601
53725
 
53602
53726
  /**
@@ -53707,7 +53831,7 @@ class VoicemailApi {
53707
53831
  /**
53708
53832
  * Voicemail service.
53709
53833
  * @module purecloud-platform-client-v2/api/VoicemailApi
53710
- * @version 162.0.0
53834
+ * @version 164.0.0
53711
53835
  */
53712
53836
 
53713
53837
  /**
@@ -54374,7 +54498,7 @@ class WebChatApi {
54374
54498
  /**
54375
54499
  * WebChat service.
54376
54500
  * @module purecloud-platform-client-v2/api/WebChatApi
54377
- * @version 162.0.0
54501
+ * @version 164.0.0
54378
54502
  */
54379
54503
 
54380
54504
  /**
@@ -54918,7 +55042,7 @@ class WebDeploymentsApi {
54918
55042
  /**
54919
55043
  * WebDeployments service.
54920
55044
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
54921
- * @version 162.0.0
55045
+ * @version 164.0.0
54922
55046
  */
54923
55047
 
54924
55048
  /**
@@ -55440,7 +55564,7 @@ class WebMessagingApi {
55440
55564
  /**
55441
55565
  * WebMessaging service.
55442
55566
  * @module purecloud-platform-client-v2/api/WebMessagingApi
55443
- * @version 162.0.0
55567
+ * @version 164.0.0
55444
55568
  */
55445
55569
 
55446
55570
  /**
@@ -55486,7 +55610,7 @@ class WidgetsApi {
55486
55610
  /**
55487
55611
  * Widgets service.
55488
55612
  * @module purecloud-platform-client-v2/api/WidgetsApi
55489
- * @version 162.0.0
55613
+ * @version 164.0.0
55490
55614
  */
55491
55615
 
55492
55616
  /**
@@ -55632,7 +55756,7 @@ class WorkforceManagementApi {
55632
55756
  /**
55633
55757
  * WorkforceManagement service.
55634
55758
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
55635
- * @version 162.0.0
55759
+ * @version 164.0.0
55636
55760
  */
55637
55761
 
55638
55762
  /**
@@ -60376,7 +60500,7 @@ class WorkforceManagementApi {
60376
60500
  * </pre>
60377
60501
  * </p>
60378
60502
  * @module purecloud-platform-client-v2/index
60379
- * @version 162.0.0
60503
+ * @version 164.0.0
60380
60504
  */
60381
60505
  class platformClient {
60382
60506
  constructor() {