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
@@ -397,11 +397,9 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
397
397
  }
398
398
  }
399
399
 
400
- const { HttpsProxyAgent } = require('hpagent');
401
-
402
400
  /**
403
401
  * @module purecloud-platform-client-v2/ApiClient
404
- * @version 162.0.0
402
+ * @version 164.0.0
405
403
  */
406
404
  class ApiClient {
407
405
  /**
@@ -673,18 +671,12 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
673
671
  const headers = {
674
672
  'Authorization': `Basic ${authHeader}`
675
673
  };
676
- let httpsAgent;
677
- if (this.proxy !== undefined){
678
- httpsAgent = new HttpsProxyAgent({
679
- proxy : `${this.proxy.protocol}://${this.proxy.host}:${this.proxy.port}`
680
- });
681
- }
682
674
  axios__default["default"]({
683
675
  method: `POST`,
684
676
  url: `https://login.${this.config.environment}/oauth/token`,
685
677
  headers: headers,
686
678
  data: 'grant_type=client_credentials',
687
- httpsAgent: httpsAgent
679
+ httpsAgent: this.proxyAgent
688
680
  })
689
681
  .then((response) => {
690
682
  // Logging
@@ -1361,6 +1353,14 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1361
1353
  });
1362
1354
  }
1363
1355
 
1356
+ /**
1357
+ * @description Sets the proxy agent axios will use for requests
1358
+ * @param {any} agent - The proxy agent
1359
+ */
1360
+ setProxyAgent(agent) {
1361
+ this.proxyAgent = agent;
1362
+ }
1363
+
1364
1364
  /**
1365
1365
  * Invokes the REST service using the supplied settings and parameters.
1366
1366
  * @param {String} path The base URL to invoke.
@@ -1381,16 +1381,10 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1381
1381
  sendRequest(this);
1382
1382
  function sendRequest(that) {
1383
1383
  var url = that.buildUrl(path, pathParams);
1384
- let httpsAgent;
1385
- if (that.proxy !== undefined){
1386
- httpsAgent = new HttpsProxyAgent({
1387
- proxy : `${that.proxy.protocol}://${that.proxy.host}:${that.proxy.port}`
1388
- });
1389
- }
1390
1384
  var request = {
1391
1385
  method: httpMethod,
1392
- url: url,
1393
- httpsAgent: httpsAgent,
1386
+ url: url,
1387
+ httpsAgent: that.proxyAgent,
1394
1388
  timeout: that.timeout,
1395
1389
  params: that.serialize(queryParams)
1396
1390
  };
@@ -1491,7 +1485,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1491
1485
  /**
1492
1486
  * Alerting service.
1493
1487
  * @module purecloud-platform-client-v2/api/AlertingApi
1494
- * @version 162.0.0
1488
+ * @version 164.0.0
1495
1489
  */
1496
1490
 
1497
1491
  /**
@@ -1805,7 +1799,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
1805
1799
  /**
1806
1800
  * Analytics service.
1807
1801
  * @module purecloud-platform-client-v2/api/AnalyticsApi
1808
- * @version 162.0.0
1802
+ * @version 164.0.0
1809
1803
  */
1810
1804
 
1811
1805
  /**
@@ -3059,7 +3053,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
3059
3053
  /**
3060
3054
  * Architect service.
3061
3055
  * @module purecloud-platform-client-v2/api/ArchitectApi
3062
- * @version 162.0.0
3056
+ * @version 164.0.0
3063
3057
  */
3064
3058
 
3065
3059
  /**
@@ -6107,7 +6101,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
6107
6101
  /**
6108
6102
  * Audit service.
6109
6103
  * @module purecloud-platform-client-v2/api/AuditApi
6110
- * @version 162.0.0
6104
+ * @version 164.0.0
6111
6105
  */
6112
6106
 
6113
6107
  /**
@@ -6193,7 +6187,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
6193
6187
  * @param {String} transactionId Transaction ID
6194
6188
  * @param {Object} opts Optional parameters
6195
6189
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
6196
- * @param {Number} opts.pageSize Page size (default to 25)
6190
+ * @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)
6197
6191
  * @param {Array.<String>} opts.expand Which fields, if any, to expand
6198
6192
  */
6199
6193
  getAuditsQueryTransactionIdResults(transactionId, opts) {
@@ -6278,7 +6272,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
6278
6272
  /**
6279
6273
  * Authorization service.
6280
6274
  * @module purecloud-platform-client-v2/api/AuthorizationApi
6281
- * @version 162.0.0
6275
+ * @version 164.0.0
6282
6276
  */
6283
6277
 
6284
6278
  /**
@@ -7507,7 +7501,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
7507
7501
  /**
7508
7502
  * Billing service.
7509
7503
  * @module purecloud-platform-client-v2/api/BillingApi
7510
- * @version 162.0.0
7504
+ * @version 164.0.0
7511
7505
  */
7512
7506
 
7513
7507
  /**
@@ -7587,7 +7581,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
7587
7581
  /**
7588
7582
  * Chat service.
7589
7583
  * @module purecloud-platform-client-v2/api/ChatApi
7590
- * @version 162.0.0
7584
+ * @version 164.0.0
7591
7585
  */
7592
7586
 
7593
7587
  /**
@@ -7748,7 +7742,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
7748
7742
  /**
7749
7743
  * Coaching service.
7750
7744
  * @module purecloud-platform-client-v2/api/CoachingApi
7751
- * @version 162.0.0
7745
+ * @version 164.0.0
7752
7746
  */
7753
7747
 
7754
7748
  /**
@@ -8325,7 +8319,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
8325
8319
  /**
8326
8320
  * ContentManagement service.
8327
8321
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8328
- * @version 162.0.0
8322
+ * @version 164.0.0
8329
8323
  */
8330
8324
 
8331
8325
  /**
@@ -9465,7 +9459,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
9465
9459
  /**
9466
9460
  * Conversations service.
9467
9461
  * @module purecloud-platform-client-v2/api/ConversationsApi
9468
- * @version 162.0.0
9462
+ * @version 164.0.0
9469
9463
  */
9470
9464
 
9471
9465
  /**
@@ -12042,6 +12036,46 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
12042
12036
  );
12043
12037
  }
12044
12038
 
12039
+ /**
12040
+ * Update after-call work for this conversation communication.
12041
+ *
12042
+ * @param {String} conversationId conversationId
12043
+ * @param {String} participantId participantId
12044
+ * @param {String} communicationId communicationId
12045
+ * @param {Object} body AfterCallWorkUpdate
12046
+ */
12047
+ patchConversationsAftercallworkConversationIdParticipantCommunication(conversationId, participantId, communicationId, body) {
12048
+ // verify the required parameter 'conversationId' is set
12049
+ if (conversationId === undefined || conversationId === null) {
12050
+ throw 'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12051
+ }
12052
+ // verify the required parameter 'participantId' is set
12053
+ if (participantId === undefined || participantId === null) {
12054
+ throw 'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12055
+ }
12056
+ // verify the required parameter 'communicationId' is set
12057
+ if (communicationId === undefined || communicationId === null) {
12058
+ throw 'Missing the required parameter "communicationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12059
+ }
12060
+ // verify the required parameter 'body' is set
12061
+ if (body === undefined || body === null) {
12062
+ throw 'Missing the required parameter "body" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
12063
+ }
12064
+
12065
+ return this.apiClient.callApi(
12066
+ '/api/v2/conversations/aftercallwork/{conversationId}/participants/{participantId}/communications/{communicationId}',
12067
+ 'PATCH',
12068
+ { 'conversationId': conversationId,'participantId': participantId,'communicationId': communicationId },
12069
+ { },
12070
+ { },
12071
+ { },
12072
+ body,
12073
+ ['PureCloud OAuth'],
12074
+ ['application/json'],
12075
+ ['application/json']
12076
+ );
12077
+ }
12078
+
12045
12079
  /**
12046
12080
  * Update a conversation by setting its recording state, merging in other conversations to create a conference, or disconnecting all of the participants
12047
12081
  *
@@ -15485,7 +15519,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
15485
15519
  /**
15486
15520
  * DataExtensions service.
15487
15521
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
15488
- * @version 162.0.0
15522
+ * @version 164.0.0
15489
15523
  */
15490
15524
 
15491
15525
  /**
@@ -15571,7 +15605,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
15571
15605
  /**
15572
15606
  * Downloads service.
15573
15607
  * @module purecloud-platform-client-v2/api/DownloadsApi
15574
- * @version 162.0.0
15608
+ * @version 164.0.0
15575
15609
  */
15576
15610
 
15577
15611
  /**
@@ -15623,7 +15657,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
15623
15657
  /**
15624
15658
  * Events service.
15625
15659
  * @module purecloud-platform-client-v2/api/EventsApi
15626
- * @version 162.0.0
15660
+ * @version 164.0.0
15627
15661
  */
15628
15662
 
15629
15663
  /**
@@ -15719,7 +15753,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
15719
15753
  /**
15720
15754
  * ExternalContacts service.
15721
15755
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
15722
- * @version 162.0.0
15756
+ * @version 164.0.0
15723
15757
  */
15724
15758
 
15725
15759
  /**
@@ -17677,7 +17711,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
17677
17711
  /**
17678
17712
  * Fax service.
17679
17713
  * @module purecloud-platform-client-v2/api/FaxApi
17680
- * @version 162.0.0
17714
+ * @version 164.0.0
17681
17715
  */
17682
17716
 
17683
17717
  /**
@@ -17848,7 +17882,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
17848
17882
  /**
17849
17883
  * Flows service.
17850
17884
  * @module purecloud-platform-client-v2/api/FlowsApi
17851
- * @version 162.0.0
17885
+ * @version 164.0.0
17852
17886
  */
17853
17887
 
17854
17888
  /**
@@ -17919,7 +17953,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
17919
17953
  /**
17920
17954
  * Gamification service.
17921
17955
  * @module purecloud-platform-client-v2/api/GamificationApi
17922
- * @version 162.0.0
17956
+ * @version 164.0.0
17923
17957
  */
17924
17958
 
17925
17959
  /**
@@ -19536,7 +19570,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
19536
19570
  /**
19537
19571
  * GeneralDataProtectionRegulation service.
19538
19572
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
19539
- * @version 162.0.0
19573
+ * @version 164.0.0
19540
19574
  */
19541
19575
 
19542
19576
  /**
@@ -19666,7 +19700,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
19666
19700
  /**
19667
19701
  * Geolocation service.
19668
19702
  * @module purecloud-platform-client-v2/api/GeolocationApi
19669
- * @version 162.0.0
19703
+ * @version 164.0.0
19670
19704
  */
19671
19705
 
19672
19706
  /**
@@ -19797,7 +19831,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
19797
19831
  /**
19798
19832
  * Greetings service.
19799
19833
  * @module purecloud-platform-client-v2/api/GreetingsApi
19800
- * @version 162.0.0
19834
+ * @version 164.0.0
19801
19835
  */
19802
19836
 
19803
19837
  /**
@@ -20252,7 +20286,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
20252
20286
  /**
20253
20287
  * Groups service.
20254
20288
  * @module purecloud-platform-client-v2/api/GroupsApi
20255
- * @version 162.0.0
20289
+ * @version 164.0.0
20256
20290
  */
20257
20291
 
20258
20292
  /**
@@ -20658,7 +20692,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
20658
20692
  /**
20659
20693
  * IdentityProvider service.
20660
20694
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
20661
- * @version 162.0.0
20695
+ * @version 164.0.0
20662
20696
  */
20663
20697
 
20664
20698
  /**
@@ -21414,7 +21448,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21414
21448
  /**
21415
21449
  * InfrastructureAsCode service.
21416
21450
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
21417
- * @version 162.0.0
21451
+ * @version 164.0.0
21418
21452
  */
21419
21453
 
21420
21454
  /**
@@ -21516,7 +21550,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
21516
21550
  /**
21517
21551
  * Integrations service.
21518
21552
  * @module purecloud-platform-client-v2/api/IntegrationsApi
21519
- * @version 162.0.0
21553
+ * @version 164.0.0
21520
21554
  */
21521
21555
 
21522
21556
  /**
@@ -23116,7 +23150,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
23116
23150
  /**
23117
23151
  * Journey service.
23118
23152
  * @module purecloud-platform-client-v2/api/JourneyApi
23119
- * @version 162.0.0
23153
+ * @version 164.0.0
23120
23154
  */
23121
23155
 
23122
23156
  /**
@@ -23996,7 +24030,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
23996
24030
  /**
23997
24031
  * Knowledge service.
23998
24032
  * @module purecloud-platform-client-v2/api/KnowledgeApi
23999
- * @version 162.0.0
24033
+ * @version 164.0.0
24000
24034
  */
24001
24035
 
24002
24036
  /**
@@ -26428,7 +26462,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
26428
26462
  /**
26429
26463
  * LanguageUnderstanding service.
26430
26464
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
26431
- * @version 162.0.0
26465
+ * @version 164.0.0
26432
26466
  */
26433
26467
 
26434
26468
  /**
@@ -27441,7 +27475,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
27441
27475
  /**
27442
27476
  * Languages service.
27443
27477
  * @module purecloud-platform-client-v2/api/LanguagesApi
27444
- * @version 162.0.0
27478
+ * @version 164.0.0
27445
27479
  */
27446
27480
 
27447
27481
  /**
@@ -27659,7 +27693,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
27659
27693
  /**
27660
27694
  * Learning service.
27661
27695
  * @module purecloud-platform-client-v2/api/LearningApi
27662
- * @version 162.0.0
27696
+ * @version 164.0.0
27663
27697
  */
27664
27698
 
27665
27699
  /**
@@ -28474,7 +28508,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
28474
28508
  /**
28475
28509
  * License service.
28476
28510
  * @module purecloud-platform-client-v2/api/LicenseApi
28477
- * @version 162.0.0
28511
+ * @version 164.0.0
28478
28512
  */
28479
28513
 
28480
28514
  /**
@@ -28712,7 +28746,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
28712
28746
  /**
28713
28747
  * Locations service.
28714
28748
  * @module purecloud-platform-client-v2/api/LocationsApi
28715
- * @version 162.0.0
28749
+ * @version 164.0.0
28716
28750
  */
28717
28751
 
28718
28752
  /**
@@ -28948,7 +28982,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
28948
28982
  /**
28949
28983
  * Messaging service.
28950
28984
  * @module purecloud-platform-client-v2/api/MessagingApi
28951
- * @version 162.0.0
28985
+ * @version 164.0.0
28952
28986
  */
28953
28987
 
28954
28988
  /**
@@ -29099,7 +29133,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
29099
29133
  /**
29100
29134
  * MobileDevices service.
29101
29135
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
29102
- * @version 162.0.0
29136
+ * @version 164.0.0
29103
29137
  */
29104
29138
 
29105
29139
  /**
@@ -29250,7 +29284,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
29250
29284
  /**
29251
29285
  * Notifications service.
29252
29286
  * @module purecloud-platform-client-v2/api/NotificationsApi
29253
- * @version 162.0.0
29287
+ * @version 164.0.0
29254
29288
  */
29255
29289
 
29256
29290
  /**
@@ -29483,7 +29517,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
29483
29517
  /**
29484
29518
  * OAuth service.
29485
29519
  * @module purecloud-platform-client-v2/api/OAuthApi
29486
- * @version 162.0.0
29520
+ * @version 164.0.0
29487
29521
  */
29488
29522
 
29489
29523
  /**
@@ -29849,7 +29883,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
29849
29883
  /**
29850
29884
  * Objects service.
29851
29885
  * @module purecloud-platform-client-v2/api/ObjectsApi
29852
- * @version 162.0.0
29886
+ * @version 164.0.0
29853
29887
  */
29854
29888
 
29855
29889
  /**
@@ -30120,7 +30154,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
30120
30154
  /**
30121
30155
  * Organization service.
30122
30156
  * @module purecloud-platform-client-v2/api/OrganizationApi
30123
- * @version 162.0.0
30157
+ * @version 164.0.0
30124
30158
  */
30125
30159
 
30126
30160
  /**
@@ -30523,7 +30557,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
30523
30557
  /**
30524
30558
  * OrganizationAuthorization service.
30525
30559
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
30526
- * @version 162.0.0
30560
+ * @version 164.0.0
30527
30561
  */
30528
30562
 
30529
30563
  /**
@@ -31818,7 +31852,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
31818
31852
  /**
31819
31853
  * Outbound service.
31820
31854
  * @module purecloud-platform-client-v2/api/OutboundApi
31821
- * @version 162.0.0
31855
+ * @version 164.0.0
31822
31856
  */
31823
31857
 
31824
31858
  /**
@@ -35414,7 +35448,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
35414
35448
  /**
35415
35449
  * Presence service.
35416
35450
  * @module purecloud-platform-client-v2/api/PresenceApi
35417
- * @version 162.0.0
35451
+ * @version 164.0.0
35418
35452
  */
35419
35453
 
35420
35454
  /**
@@ -35965,7 +35999,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
35965
35999
  /**
35966
36000
  * ProcessAutomation service.
35967
36001
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
35968
- * @version 162.0.0
36002
+ * @version 164.0.0
35969
36003
  */
35970
36004
 
35971
36005
  /**
@@ -36204,7 +36238,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
36204
36238
  /**
36205
36239
  * Quality service.
36206
36240
  * @module purecloud-platform-client-v2/api/QualityApi
36207
- * @version 162.0.0
36241
+ * @version 164.0.0
36208
36242
  */
36209
36243
 
36210
36244
  /**
@@ -37783,7 +37817,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
37783
37817
  /**
37784
37818
  * Recording service.
37785
37819
  * @module purecloud-platform-client-v2/api/RecordingApi
37786
- * @version 162.0.0
37820
+ * @version 164.0.0
37787
37821
  */
37788
37822
 
37789
37823
  /**
@@ -39420,7 +39454,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
39420
39454
  /**
39421
39455
  * ResponseManagement service.
39422
39456
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
39423
- * @version 162.0.0
39457
+ * @version 164.0.0
39424
39458
  */
39425
39459
 
39426
39460
  /**
@@ -39904,7 +39938,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
39904
39938
  /**
39905
39939
  * Routing service.
39906
39940
  * @module purecloud-platform-client-v2/api/RoutingApi
39907
- * @version 162.0.0
39941
+ * @version 164.0.0
39908
39942
  */
39909
39943
 
39910
39944
  /**
@@ -41847,6 +41881,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41847
41881
  * @param {Number} opts.pageNumber Page number (default to 1)
41848
41882
  * @param {Object} opts.sortBy Sort by (default to name)
41849
41883
  * @param {Object} opts.sortOrder Sort order (default to ascending)
41884
+ * @param {Array.<String>} opts.id Filter by wrapup code ID(s)
41850
41885
  * @param {String} opts.name Wrapup code's name ('Sort by' param is ignored unless this field is provided)
41851
41886
  * @param {Array.<String>} opts.divisionId Filter by division ID(s)
41852
41887
  */
@@ -41858,7 +41893,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
41858
41893
  '/api/v2/routing/wrapupcodes',
41859
41894
  'GET',
41860
41895
  { },
41861
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
41896
+ { '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') },
41862
41897
  { },
41863
41898
  { },
41864
41899
  null,
@@ -43410,7 +43445,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
43410
43445
  /**
43411
43446
  * SCIM service.
43412
43447
  * @module purecloud-platform-client-v2/api/SCIMApi
43413
- * @version 162.0.0
43448
+ * @version 164.0.0
43414
43449
  */
43415
43450
 
43416
43451
  /**
@@ -44287,7 +44322,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
44287
44322
  /**
44288
44323
  * Scripts service.
44289
44324
  * @module purecloud-platform-client-v2/api/ScriptsApi
44290
- * @version 162.0.0
44325
+ * @version 164.0.0
44291
44326
  */
44292
44327
 
44293
44328
  /**
@@ -44706,7 +44741,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
44706
44741
  /**
44707
44742
  * Search service.
44708
44743
  * @module purecloud-platform-client-v2/api/SearchApi
44709
- * @version 162.0.0
44744
+ * @version 164.0.0
44710
44745
  */
44711
44746
 
44712
44747
  /**
@@ -45316,7 +45351,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
45316
45351
  /**
45317
45352
  * SpeechTextAnalytics service.
45318
45353
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
45319
- * @version 162.0.0
45354
+ * @version 164.0.0
45320
45355
  */
45321
45356
 
45322
45357
  /**
@@ -46245,7 +46280,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
46245
46280
  /**
46246
46281
  * Stations service.
46247
46282
  * @module purecloud-platform-client-v2/api/StationsApi
46248
- * @version 162.0.0
46283
+ * @version 164.0.0
46249
46284
  */
46250
46285
 
46251
46286
  /**
@@ -46392,7 +46427,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
46392
46427
  /**
46393
46428
  * Suggest service.
46394
46429
  * @module purecloud-platform-client-v2/api/SuggestApi
46395
- * @version 162.0.0
46430
+ * @version 164.0.0
46396
46431
  */
46397
46432
 
46398
46433
  /**
@@ -46531,7 +46566,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
46531
46566
  /**
46532
46567
  * Teams service.
46533
46568
  * @module purecloud-platform-client-v2/api/TeamsApi
46534
- * @version 162.0.0
46569
+ * @version 164.0.0
46535
46570
  */
46536
46571
 
46537
46572
  /**
@@ -46802,7 +46837,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
46802
46837
  /**
46803
46838
  * Telephony service.
46804
46839
  * @module purecloud-platform-client-v2/api/TelephonyApi
46805
- * @version 162.0.0
46840
+ * @version 164.0.0
46806
46841
  */
46807
46842
 
46808
46843
  /**
@@ -46930,7 +46965,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
46930
46965
  /**
46931
46966
  * TelephonyProvidersEdge service.
46932
46967
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
46933
- * @version 162.0.0
46968
+ * @version 164.0.0
46934
46969
  */
46935
46970
 
46936
46971
  /**
@@ -50539,7 +50574,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
50539
50574
  /**
50540
50575
  * Textbots service.
50541
50576
  * @module purecloud-platform-client-v2/api/TextbotsApi
50542
- * @version 162.0.0
50577
+ * @version 164.0.0
50543
50578
  */
50544
50579
 
50545
50580
  /**
@@ -50667,7 +50702,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
50667
50702
  /**
50668
50703
  * Tokens service.
50669
50704
  * @module purecloud-platform-client-v2/api/TokensApi
50670
- * @version 162.0.0
50705
+ * @version 164.0.0
50671
50706
  */
50672
50707
 
50673
50708
  /**
@@ -50773,7 +50808,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
50773
50808
  /**
50774
50809
  * Uploads service.
50775
50810
  * @module purecloud-platform-client-v2/api/UploadsApi
50776
- * @version 162.0.0
50811
+ * @version 164.0.0
50777
50812
  */
50778
50813
 
50779
50814
  /**
@@ -50949,7 +50984,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
50949
50984
  /**
50950
50985
  * Usage service.
50951
50986
  * @module purecloud-platform-client-v2/api/UsageApi
50952
- * @version 162.0.0
50987
+ * @version 164.0.0
50953
50988
  */
50954
50989
 
50955
50990
  /**
@@ -50964,6 +50999,65 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
50964
50999
  }
50965
51000
 
50966
51001
 
51002
+ /**
51003
+ * Get the results of a usage query
51004
+ *
51005
+ * @param {String} executionId ID of the query execution
51006
+ * @param {String} clientId Client ID
51007
+ */
51008
+ getOauthClientUsageQueryResult(executionId, clientId) {
51009
+ // verify the required parameter 'executionId' is set
51010
+ if (executionId === undefined || executionId === null) {
51011
+ throw 'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';
51012
+ }
51013
+ // verify the required parameter 'clientId' is set
51014
+ if (clientId === undefined || clientId === null) {
51015
+ throw 'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';
51016
+ }
51017
+
51018
+ return this.apiClient.callApi(
51019
+ '/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}',
51020
+ 'GET',
51021
+ { 'executionId': executionId,'clientId': clientId },
51022
+ { },
51023
+ { },
51024
+ { },
51025
+ null,
51026
+ ['PureCloud OAuth'],
51027
+ ['application/json'],
51028
+ ['application/json']
51029
+ );
51030
+ }
51031
+
51032
+ /**
51033
+ * Get a summary of OAuth client API usage
51034
+ * After calling this method, you will then need to poll for the query results based on the returned execution Id
51035
+ * @param {String} clientId Client ID
51036
+ * @param {Object} opts Optional parameters
51037
+ * @param {String} opts.days Previous number of days to query (default to 7)
51038
+ */
51039
+ getOauthClientUsageSummary(clientId, opts) {
51040
+ opts = opts || {};
51041
+
51042
+ // verify the required parameter 'clientId' is set
51043
+ if (clientId === undefined || clientId === null) {
51044
+ throw 'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';
51045
+ }
51046
+
51047
+ return this.apiClient.callApi(
51048
+ '/api/v2/oauth/clients/{clientId}/usage/summary',
51049
+ 'GET',
51050
+ { 'clientId': clientId },
51051
+ { 'days': opts['days'] },
51052
+ { },
51053
+ { },
51054
+ null,
51055
+ ['PureCloud OAuth'],
51056
+ ['application/json'],
51057
+ ['application/json']
51058
+ );
51059
+ }
51060
+
50967
51061
  /**
50968
51062
  * Get the results of a usage query
50969
51063
  *
@@ -50989,6 +51083,36 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
50989
51083
  );
50990
51084
  }
50991
51085
 
51086
+ /**
51087
+ * Query for OAuth client API usage
51088
+ * After calling this method, you will then need to poll for the query results based on the returned execution Id
51089
+ * @param {String} clientId Client ID
51090
+ * @param {Object} body Query
51091
+ */
51092
+ postOauthClientUsageQuery(clientId, body) {
51093
+ // verify the required parameter 'clientId' is set
51094
+ if (clientId === undefined || clientId === null) {
51095
+ throw 'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';
51096
+ }
51097
+ // verify the required parameter 'body' is set
51098
+ if (body === undefined || body === null) {
51099
+ throw 'Missing the required parameter "body" when calling postOauthClientUsageQuery';
51100
+ }
51101
+
51102
+ return this.apiClient.callApi(
51103
+ '/api/v2/oauth/clients/{clientId}/usage/query',
51104
+ 'POST',
51105
+ { 'clientId': clientId },
51106
+ { },
51107
+ { },
51108
+ { },
51109
+ body,
51110
+ ['PureCloud OAuth'],
51111
+ ['application/json'],
51112
+ ['application/json']
51113
+ );
51114
+ }
51115
+
50992
51116
  /**
50993
51117
  * Query organization API Usage -
50994
51118
  * After calling this method, you will then need to poll for the query results based on the returned execution Id
@@ -51020,7 +51144,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
51020
51144
  /**
51021
51145
  * UserRecordings service.
51022
51146
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
51023
- * @version 162.0.0
51147
+ * @version 164.0.0
51024
51148
  */
51025
51149
 
51026
51150
  /**
@@ -51205,7 +51329,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
51205
51329
  /**
51206
51330
  * Users service.
51207
51331
  * @module purecloud-platform-client-v2/api/UsersApi
51208
- * @version 162.0.0
51332
+ * @version 164.0.0
51209
51333
  */
51210
51334
 
51211
51335
  /**
@@ -53593,7 +53717,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
53593
53717
  /**
53594
53718
  * Utilities service.
53595
53719
  * @module purecloud-platform-client-v2/api/UtilitiesApi
53596
- * @version 162.0.0
53720
+ * @version 164.0.0
53597
53721
  */
53598
53722
 
53599
53723
  /**
@@ -53704,7 +53828,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
53704
53828
  /**
53705
53829
  * Voicemail service.
53706
53830
  * @module purecloud-platform-client-v2/api/VoicemailApi
53707
- * @version 162.0.0
53831
+ * @version 164.0.0
53708
53832
  */
53709
53833
 
53710
53834
  /**
@@ -54371,7 +54495,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
54371
54495
  /**
54372
54496
  * WebChat service.
54373
54497
  * @module purecloud-platform-client-v2/api/WebChatApi
54374
- * @version 162.0.0
54498
+ * @version 164.0.0
54375
54499
  */
54376
54500
 
54377
54501
  /**
@@ -54915,7 +55039,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
54915
55039
  /**
54916
55040
  * WebDeployments service.
54917
55041
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
54918
- * @version 162.0.0
55042
+ * @version 164.0.0
54919
55043
  */
54920
55044
 
54921
55045
  /**
@@ -55437,7 +55561,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
55437
55561
  /**
55438
55562
  * WebMessaging service.
55439
55563
  * @module purecloud-platform-client-v2/api/WebMessagingApi
55440
- * @version 162.0.0
55564
+ * @version 164.0.0
55441
55565
  */
55442
55566
 
55443
55567
  /**
@@ -55483,7 +55607,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
55483
55607
  /**
55484
55608
  * Widgets service.
55485
55609
  * @module purecloud-platform-client-v2/api/WidgetsApi
55486
- * @version 162.0.0
55610
+ * @version 164.0.0
55487
55611
  */
55488
55612
 
55489
55613
  /**
@@ -55629,7 +55753,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
55629
55753
  /**
55630
55754
  * WorkforceManagement service.
55631
55755
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
55632
- * @version 162.0.0
55756
+ * @version 164.0.0
55633
55757
  */
55634
55758
 
55635
55759
  /**
@@ -60373,7 +60497,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
60373
60497
  * </pre>
60374
60498
  * </p>
60375
60499
  * @module purecloud-platform-client-v2/index
60376
- * @version 162.0.0
60500
+ * @version 164.0.0
60377
60501
  */
60378
60502
  class platformClient {
60379
60503
  constructor() {