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
@@ -2277,11 +2277,9 @@ class Configuration {
2277
2277
  }
2278
2278
  }
2279
2279
 
2280
- const { HttpsProxyAgent } = require('hpagent');
2281
-
2282
2280
  /**
2283
2281
  * @module purecloud-platform-client-v2/ApiClient
2284
- * @version 162.0.0
2282
+ * @version 164.0.0
2285
2283
  */
2286
2284
  class ApiClient {
2287
2285
  /**
@@ -2553,18 +2551,12 @@ class ApiClient {
2553
2551
  const headers = {
2554
2552
  'Authorization': `Basic ${authHeader}`
2555
2553
  };
2556
- let httpsAgent;
2557
- if (this.proxy !== undefined){
2558
- httpsAgent = new HttpsProxyAgent({
2559
- proxy : `${this.proxy.protocol}://${this.proxy.host}:${this.proxy.port}`
2560
- });
2561
- }
2562
2554
  axios__default["default"]({
2563
2555
  method: `POST`,
2564
2556
  url: `https://login.${this.config.environment}/oauth/token`,
2565
2557
  headers: headers,
2566
2558
  data: 'grant_type=client_credentials',
2567
- httpsAgent: httpsAgent
2559
+ httpsAgent: this.proxyAgent
2568
2560
  })
2569
2561
  .then((response) => {
2570
2562
  // Logging
@@ -3234,6 +3226,14 @@ class ApiClient {
3234
3226
  });
3235
3227
  }
3236
3228
 
3229
+ /**
3230
+ * @description Sets the proxy agent axios will use for requests
3231
+ * @param {any} agent - The proxy agent
3232
+ */
3233
+ setProxyAgent(agent) {
3234
+ this.proxyAgent = agent;
3235
+ }
3236
+
3237
3237
  /**
3238
3238
  * Invokes the REST service using the supplied settings and parameters.
3239
3239
  * @param {String} path The base URL to invoke.
@@ -3254,16 +3254,10 @@ class ApiClient {
3254
3254
  sendRequest(this);
3255
3255
  function sendRequest(that) {
3256
3256
  var url = that.buildUrl(path, pathParams);
3257
- let httpsAgent;
3258
- if (that.proxy !== undefined){
3259
- httpsAgent = new HttpsProxyAgent({
3260
- proxy : `${that.proxy.protocol}://${that.proxy.host}:${that.proxy.port}`
3261
- });
3262
- }
3263
3257
  var request = {
3264
3258
  method: httpMethod,
3265
- url: url,
3266
- httpsAgent: httpsAgent,
3259
+ url: url,
3260
+ httpsAgent: that.proxyAgent,
3267
3261
  timeout: that.timeout,
3268
3262
  params: that.serialize(queryParams)
3269
3263
  };
@@ -3364,7 +3358,7 @@ class AlertingApi {
3364
3358
  /**
3365
3359
  * Alerting service.
3366
3360
  * @module purecloud-platform-client-v2/api/AlertingApi
3367
- * @version 162.0.0
3361
+ * @version 164.0.0
3368
3362
  */
3369
3363
 
3370
3364
  /**
@@ -3678,7 +3672,7 @@ class AnalyticsApi {
3678
3672
  /**
3679
3673
  * Analytics service.
3680
3674
  * @module purecloud-platform-client-v2/api/AnalyticsApi
3681
- * @version 162.0.0
3675
+ * @version 164.0.0
3682
3676
  */
3683
3677
 
3684
3678
  /**
@@ -4932,7 +4926,7 @@ class ArchitectApi {
4932
4926
  /**
4933
4927
  * Architect service.
4934
4928
  * @module purecloud-platform-client-v2/api/ArchitectApi
4935
- * @version 162.0.0
4929
+ * @version 164.0.0
4936
4930
  */
4937
4931
 
4938
4932
  /**
@@ -7980,7 +7974,7 @@ class AuditApi {
7980
7974
  /**
7981
7975
  * Audit service.
7982
7976
  * @module purecloud-platform-client-v2/api/AuditApi
7983
- * @version 162.0.0
7977
+ * @version 164.0.0
7984
7978
  */
7985
7979
 
7986
7980
  /**
@@ -8066,7 +8060,7 @@ class AuditApi {
8066
8060
  * @param {String} transactionId Transaction ID
8067
8061
  * @param {Object} opts Optional parameters
8068
8062
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
8069
- * @param {Number} opts.pageSize Page size (default to 25)
8063
+ * @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)
8070
8064
  * @param {Array.<String>} opts.expand Which fields, if any, to expand
8071
8065
  */
8072
8066
  getAuditsQueryTransactionIdResults(transactionId, opts) {
@@ -8151,7 +8145,7 @@ class AuthorizationApi {
8151
8145
  /**
8152
8146
  * Authorization service.
8153
8147
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8154
- * @version 162.0.0
8148
+ * @version 164.0.0
8155
8149
  */
8156
8150
 
8157
8151
  /**
@@ -9380,7 +9374,7 @@ class BillingApi {
9380
9374
  /**
9381
9375
  * Billing service.
9382
9376
  * @module purecloud-platform-client-v2/api/BillingApi
9383
- * @version 162.0.0
9377
+ * @version 164.0.0
9384
9378
  */
9385
9379
 
9386
9380
  /**
@@ -9460,7 +9454,7 @@ class ChatApi {
9460
9454
  /**
9461
9455
  * Chat service.
9462
9456
  * @module purecloud-platform-client-v2/api/ChatApi
9463
- * @version 162.0.0
9457
+ * @version 164.0.0
9464
9458
  */
9465
9459
 
9466
9460
  /**
@@ -9621,7 +9615,7 @@ class CoachingApi {
9621
9615
  /**
9622
9616
  * Coaching service.
9623
9617
  * @module purecloud-platform-client-v2/api/CoachingApi
9624
- * @version 162.0.0
9618
+ * @version 164.0.0
9625
9619
  */
9626
9620
 
9627
9621
  /**
@@ -10198,7 +10192,7 @@ class ContentManagementApi {
10198
10192
  /**
10199
10193
  * ContentManagement service.
10200
10194
  * @module purecloud-platform-client-v2/api/ContentManagementApi
10201
- * @version 162.0.0
10195
+ * @version 164.0.0
10202
10196
  */
10203
10197
 
10204
10198
  /**
@@ -11338,7 +11332,7 @@ class ConversationsApi {
11338
11332
  /**
11339
11333
  * Conversations service.
11340
11334
  * @module purecloud-platform-client-v2/api/ConversationsApi
11341
- * @version 162.0.0
11335
+ * @version 164.0.0
11342
11336
  */
11343
11337
 
11344
11338
  /**
@@ -13915,6 +13909,46 @@ class ConversationsApi {
13915
13909
  );
13916
13910
  }
13917
13911
 
13912
+ /**
13913
+ * Update after-call work for this conversation communication.
13914
+ *
13915
+ * @param {String} conversationId conversationId
13916
+ * @param {String} participantId participantId
13917
+ * @param {String} communicationId communicationId
13918
+ * @param {Object} body AfterCallWorkUpdate
13919
+ */
13920
+ patchConversationsAftercallworkConversationIdParticipantCommunication(conversationId, participantId, communicationId, body) {
13921
+ // verify the required parameter 'conversationId' is set
13922
+ if (conversationId === undefined || conversationId === null) {
13923
+ throw 'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
13924
+ }
13925
+ // verify the required parameter 'participantId' is set
13926
+ if (participantId === undefined || participantId === null) {
13927
+ throw 'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
13928
+ }
13929
+ // verify the required parameter 'communicationId' is set
13930
+ if (communicationId === undefined || communicationId === null) {
13931
+ throw 'Missing the required parameter "communicationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
13932
+ }
13933
+ // verify the required parameter 'body' is set
13934
+ if (body === undefined || body === null) {
13935
+ throw 'Missing the required parameter "body" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
13936
+ }
13937
+
13938
+ return this.apiClient.callApi(
13939
+ '/api/v2/conversations/aftercallwork/{conversationId}/participants/{participantId}/communications/{communicationId}',
13940
+ 'PATCH',
13941
+ { 'conversationId': conversationId,'participantId': participantId,'communicationId': communicationId },
13942
+ { },
13943
+ { },
13944
+ { },
13945
+ body,
13946
+ ['PureCloud OAuth'],
13947
+ ['application/json'],
13948
+ ['application/json']
13949
+ );
13950
+ }
13951
+
13918
13952
  /**
13919
13953
  * Update a conversation by setting its recording state, merging in other conversations to create a conference, or disconnecting all of the participants
13920
13954
  *
@@ -17358,7 +17392,7 @@ class DataExtensionsApi {
17358
17392
  /**
17359
17393
  * DataExtensions service.
17360
17394
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
17361
- * @version 162.0.0
17395
+ * @version 164.0.0
17362
17396
  */
17363
17397
 
17364
17398
  /**
@@ -17444,7 +17478,7 @@ class DownloadsApi {
17444
17478
  /**
17445
17479
  * Downloads service.
17446
17480
  * @module purecloud-platform-client-v2/api/DownloadsApi
17447
- * @version 162.0.0
17481
+ * @version 164.0.0
17448
17482
  */
17449
17483
 
17450
17484
  /**
@@ -17496,7 +17530,7 @@ class EventsApi {
17496
17530
  /**
17497
17531
  * Events service.
17498
17532
  * @module purecloud-platform-client-v2/api/EventsApi
17499
- * @version 162.0.0
17533
+ * @version 164.0.0
17500
17534
  */
17501
17535
 
17502
17536
  /**
@@ -17592,7 +17626,7 @@ class ExternalContactsApi {
17592
17626
  /**
17593
17627
  * ExternalContacts service.
17594
17628
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
17595
- * @version 162.0.0
17629
+ * @version 164.0.0
17596
17630
  */
17597
17631
 
17598
17632
  /**
@@ -19550,7 +19584,7 @@ class FaxApi {
19550
19584
  /**
19551
19585
  * Fax service.
19552
19586
  * @module purecloud-platform-client-v2/api/FaxApi
19553
- * @version 162.0.0
19587
+ * @version 164.0.0
19554
19588
  */
19555
19589
 
19556
19590
  /**
@@ -19721,7 +19755,7 @@ class FlowsApi {
19721
19755
  /**
19722
19756
  * Flows service.
19723
19757
  * @module purecloud-platform-client-v2/api/FlowsApi
19724
- * @version 162.0.0
19758
+ * @version 164.0.0
19725
19759
  */
19726
19760
 
19727
19761
  /**
@@ -19792,7 +19826,7 @@ class GamificationApi {
19792
19826
  /**
19793
19827
  * Gamification service.
19794
19828
  * @module purecloud-platform-client-v2/api/GamificationApi
19795
- * @version 162.0.0
19829
+ * @version 164.0.0
19796
19830
  */
19797
19831
 
19798
19832
  /**
@@ -21409,7 +21443,7 @@ class GeneralDataProtectionRegulationApi {
21409
21443
  /**
21410
21444
  * GeneralDataProtectionRegulation service.
21411
21445
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
21412
- * @version 162.0.0
21446
+ * @version 164.0.0
21413
21447
  */
21414
21448
 
21415
21449
  /**
@@ -21539,7 +21573,7 @@ class GeolocationApi {
21539
21573
  /**
21540
21574
  * Geolocation service.
21541
21575
  * @module purecloud-platform-client-v2/api/GeolocationApi
21542
- * @version 162.0.0
21576
+ * @version 164.0.0
21543
21577
  */
21544
21578
 
21545
21579
  /**
@@ -21670,7 +21704,7 @@ class GreetingsApi {
21670
21704
  /**
21671
21705
  * Greetings service.
21672
21706
  * @module purecloud-platform-client-v2/api/GreetingsApi
21673
- * @version 162.0.0
21707
+ * @version 164.0.0
21674
21708
  */
21675
21709
 
21676
21710
  /**
@@ -22125,7 +22159,7 @@ class GroupsApi {
22125
22159
  /**
22126
22160
  * Groups service.
22127
22161
  * @module purecloud-platform-client-v2/api/GroupsApi
22128
- * @version 162.0.0
22162
+ * @version 164.0.0
22129
22163
  */
22130
22164
 
22131
22165
  /**
@@ -22531,7 +22565,7 @@ class IdentityProviderApi {
22531
22565
  /**
22532
22566
  * IdentityProvider service.
22533
22567
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
22534
- * @version 162.0.0
22568
+ * @version 164.0.0
22535
22569
  */
22536
22570
 
22537
22571
  /**
@@ -23287,7 +23321,7 @@ class InfrastructureAsCodeApi {
23287
23321
  /**
23288
23322
  * InfrastructureAsCode service.
23289
23323
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
23290
- * @version 162.0.0
23324
+ * @version 164.0.0
23291
23325
  */
23292
23326
 
23293
23327
  /**
@@ -23389,7 +23423,7 @@ class IntegrationsApi {
23389
23423
  /**
23390
23424
  * Integrations service.
23391
23425
  * @module purecloud-platform-client-v2/api/IntegrationsApi
23392
- * @version 162.0.0
23426
+ * @version 164.0.0
23393
23427
  */
23394
23428
 
23395
23429
  /**
@@ -24989,7 +25023,7 @@ class JourneyApi {
24989
25023
  /**
24990
25024
  * Journey service.
24991
25025
  * @module purecloud-platform-client-v2/api/JourneyApi
24992
- * @version 162.0.0
25026
+ * @version 164.0.0
24993
25027
  */
24994
25028
 
24995
25029
  /**
@@ -25869,7 +25903,7 @@ class KnowledgeApi {
25869
25903
  /**
25870
25904
  * Knowledge service.
25871
25905
  * @module purecloud-platform-client-v2/api/KnowledgeApi
25872
- * @version 162.0.0
25906
+ * @version 164.0.0
25873
25907
  */
25874
25908
 
25875
25909
  /**
@@ -28301,7 +28335,7 @@ class LanguageUnderstandingApi {
28301
28335
  /**
28302
28336
  * LanguageUnderstanding service.
28303
28337
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
28304
- * @version 162.0.0
28338
+ * @version 164.0.0
28305
28339
  */
28306
28340
 
28307
28341
  /**
@@ -29314,7 +29348,7 @@ class LanguagesApi {
29314
29348
  /**
29315
29349
  * Languages service.
29316
29350
  * @module purecloud-platform-client-v2/api/LanguagesApi
29317
- * @version 162.0.0
29351
+ * @version 164.0.0
29318
29352
  */
29319
29353
 
29320
29354
  /**
@@ -29532,7 +29566,7 @@ class LearningApi {
29532
29566
  /**
29533
29567
  * Learning service.
29534
29568
  * @module purecloud-platform-client-v2/api/LearningApi
29535
- * @version 162.0.0
29569
+ * @version 164.0.0
29536
29570
  */
29537
29571
 
29538
29572
  /**
@@ -30347,7 +30381,7 @@ class LicenseApi {
30347
30381
  /**
30348
30382
  * License service.
30349
30383
  * @module purecloud-platform-client-v2/api/LicenseApi
30350
- * @version 162.0.0
30384
+ * @version 164.0.0
30351
30385
  */
30352
30386
 
30353
30387
  /**
@@ -30585,7 +30619,7 @@ class LocationsApi {
30585
30619
  /**
30586
30620
  * Locations service.
30587
30621
  * @module purecloud-platform-client-v2/api/LocationsApi
30588
- * @version 162.0.0
30622
+ * @version 164.0.0
30589
30623
  */
30590
30624
 
30591
30625
  /**
@@ -30821,7 +30855,7 @@ class MessagingApi {
30821
30855
  /**
30822
30856
  * Messaging service.
30823
30857
  * @module purecloud-platform-client-v2/api/MessagingApi
30824
- * @version 162.0.0
30858
+ * @version 164.0.0
30825
30859
  */
30826
30860
 
30827
30861
  /**
@@ -30972,7 +31006,7 @@ class MobileDevicesApi {
30972
31006
  /**
30973
31007
  * MobileDevices service.
30974
31008
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
30975
- * @version 162.0.0
31009
+ * @version 164.0.0
30976
31010
  */
30977
31011
 
30978
31012
  /**
@@ -31123,7 +31157,7 @@ class NotificationsApi {
31123
31157
  /**
31124
31158
  * Notifications service.
31125
31159
  * @module purecloud-platform-client-v2/api/NotificationsApi
31126
- * @version 162.0.0
31160
+ * @version 164.0.0
31127
31161
  */
31128
31162
 
31129
31163
  /**
@@ -31356,7 +31390,7 @@ class OAuthApi {
31356
31390
  /**
31357
31391
  * OAuth service.
31358
31392
  * @module purecloud-platform-client-v2/api/OAuthApi
31359
- * @version 162.0.0
31393
+ * @version 164.0.0
31360
31394
  */
31361
31395
 
31362
31396
  /**
@@ -31722,7 +31756,7 @@ class ObjectsApi {
31722
31756
  /**
31723
31757
  * Objects service.
31724
31758
  * @module purecloud-platform-client-v2/api/ObjectsApi
31725
- * @version 162.0.0
31759
+ * @version 164.0.0
31726
31760
  */
31727
31761
 
31728
31762
  /**
@@ -31993,7 +32027,7 @@ class OrganizationApi {
31993
32027
  /**
31994
32028
  * Organization service.
31995
32029
  * @module purecloud-platform-client-v2/api/OrganizationApi
31996
- * @version 162.0.0
32030
+ * @version 164.0.0
31997
32031
  */
31998
32032
 
31999
32033
  /**
@@ -32396,7 +32430,7 @@ class OrganizationAuthorizationApi {
32396
32430
  /**
32397
32431
  * OrganizationAuthorization service.
32398
32432
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
32399
- * @version 162.0.0
32433
+ * @version 164.0.0
32400
32434
  */
32401
32435
 
32402
32436
  /**
@@ -33691,7 +33725,7 @@ class OutboundApi {
33691
33725
  /**
33692
33726
  * Outbound service.
33693
33727
  * @module purecloud-platform-client-v2/api/OutboundApi
33694
- * @version 162.0.0
33728
+ * @version 164.0.0
33695
33729
  */
33696
33730
 
33697
33731
  /**
@@ -37287,7 +37321,7 @@ class PresenceApi {
37287
37321
  /**
37288
37322
  * Presence service.
37289
37323
  * @module purecloud-platform-client-v2/api/PresenceApi
37290
- * @version 162.0.0
37324
+ * @version 164.0.0
37291
37325
  */
37292
37326
 
37293
37327
  /**
@@ -37838,7 +37872,7 @@ class ProcessAutomationApi {
37838
37872
  /**
37839
37873
  * ProcessAutomation service.
37840
37874
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
37841
- * @version 162.0.0
37875
+ * @version 164.0.0
37842
37876
  */
37843
37877
 
37844
37878
  /**
@@ -38077,7 +38111,7 @@ class QualityApi {
38077
38111
  /**
38078
38112
  * Quality service.
38079
38113
  * @module purecloud-platform-client-v2/api/QualityApi
38080
- * @version 162.0.0
38114
+ * @version 164.0.0
38081
38115
  */
38082
38116
 
38083
38117
  /**
@@ -39656,7 +39690,7 @@ class RecordingApi {
39656
39690
  /**
39657
39691
  * Recording service.
39658
39692
  * @module purecloud-platform-client-v2/api/RecordingApi
39659
- * @version 162.0.0
39693
+ * @version 164.0.0
39660
39694
  */
39661
39695
 
39662
39696
  /**
@@ -41293,7 +41327,7 @@ class ResponseManagementApi {
41293
41327
  /**
41294
41328
  * ResponseManagement service.
41295
41329
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
41296
- * @version 162.0.0
41330
+ * @version 164.0.0
41297
41331
  */
41298
41332
 
41299
41333
  /**
@@ -41777,7 +41811,7 @@ class RoutingApi {
41777
41811
  /**
41778
41812
  * Routing service.
41779
41813
  * @module purecloud-platform-client-v2/api/RoutingApi
41780
- * @version 162.0.0
41814
+ * @version 164.0.0
41781
41815
  */
41782
41816
 
41783
41817
  /**
@@ -43720,6 +43754,7 @@ class RoutingApi {
43720
43754
  * @param {Number} opts.pageNumber Page number (default to 1)
43721
43755
  * @param {Object} opts.sortBy Sort by (default to name)
43722
43756
  * @param {Object} opts.sortOrder Sort order (default to ascending)
43757
+ * @param {Array.<String>} opts.id Filter by wrapup code ID(s)
43723
43758
  * @param {String} opts.name Wrapup code's name ('Sort by' param is ignored unless this field is provided)
43724
43759
  * @param {Array.<String>} opts.divisionId Filter by division ID(s)
43725
43760
  */
@@ -43731,7 +43766,7 @@ class RoutingApi {
43731
43766
  '/api/v2/routing/wrapupcodes',
43732
43767
  'GET',
43733
43768
  { },
43734
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
43769
+ { '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') },
43735
43770
  { },
43736
43771
  { },
43737
43772
  null,
@@ -45283,7 +45318,7 @@ class SCIMApi {
45283
45318
  /**
45284
45319
  * SCIM service.
45285
45320
  * @module purecloud-platform-client-v2/api/SCIMApi
45286
- * @version 162.0.0
45321
+ * @version 164.0.0
45287
45322
  */
45288
45323
 
45289
45324
  /**
@@ -46160,7 +46195,7 @@ class ScriptsApi {
46160
46195
  /**
46161
46196
  * Scripts service.
46162
46197
  * @module purecloud-platform-client-v2/api/ScriptsApi
46163
- * @version 162.0.0
46198
+ * @version 164.0.0
46164
46199
  */
46165
46200
 
46166
46201
  /**
@@ -46579,7 +46614,7 @@ class SearchApi {
46579
46614
  /**
46580
46615
  * Search service.
46581
46616
  * @module purecloud-platform-client-v2/api/SearchApi
46582
- * @version 162.0.0
46617
+ * @version 164.0.0
46583
46618
  */
46584
46619
 
46585
46620
  /**
@@ -47189,7 +47224,7 @@ class SpeechTextAnalyticsApi {
47189
47224
  /**
47190
47225
  * SpeechTextAnalytics service.
47191
47226
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
47192
- * @version 162.0.0
47227
+ * @version 164.0.0
47193
47228
  */
47194
47229
 
47195
47230
  /**
@@ -48118,7 +48153,7 @@ class StationsApi {
48118
48153
  /**
48119
48154
  * Stations service.
48120
48155
  * @module purecloud-platform-client-v2/api/StationsApi
48121
- * @version 162.0.0
48156
+ * @version 164.0.0
48122
48157
  */
48123
48158
 
48124
48159
  /**
@@ -48265,7 +48300,7 @@ class SuggestApi {
48265
48300
  /**
48266
48301
  * Suggest service.
48267
48302
  * @module purecloud-platform-client-v2/api/SuggestApi
48268
- * @version 162.0.0
48303
+ * @version 164.0.0
48269
48304
  */
48270
48305
 
48271
48306
  /**
@@ -48404,7 +48439,7 @@ class TeamsApi {
48404
48439
  /**
48405
48440
  * Teams service.
48406
48441
  * @module purecloud-platform-client-v2/api/TeamsApi
48407
- * @version 162.0.0
48442
+ * @version 164.0.0
48408
48443
  */
48409
48444
 
48410
48445
  /**
@@ -48675,7 +48710,7 @@ class TelephonyApi {
48675
48710
  /**
48676
48711
  * Telephony service.
48677
48712
  * @module purecloud-platform-client-v2/api/TelephonyApi
48678
- * @version 162.0.0
48713
+ * @version 164.0.0
48679
48714
  */
48680
48715
 
48681
48716
  /**
@@ -48803,7 +48838,7 @@ class TelephonyProvidersEdgeApi {
48803
48838
  /**
48804
48839
  * TelephonyProvidersEdge service.
48805
48840
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
48806
- * @version 162.0.0
48841
+ * @version 164.0.0
48807
48842
  */
48808
48843
 
48809
48844
  /**
@@ -52412,7 +52447,7 @@ class TextbotsApi {
52412
52447
  /**
52413
52448
  * Textbots service.
52414
52449
  * @module purecloud-platform-client-v2/api/TextbotsApi
52415
- * @version 162.0.0
52450
+ * @version 164.0.0
52416
52451
  */
52417
52452
 
52418
52453
  /**
@@ -52540,7 +52575,7 @@ class TokensApi {
52540
52575
  /**
52541
52576
  * Tokens service.
52542
52577
  * @module purecloud-platform-client-v2/api/TokensApi
52543
- * @version 162.0.0
52578
+ * @version 164.0.0
52544
52579
  */
52545
52580
 
52546
52581
  /**
@@ -52646,7 +52681,7 @@ class UploadsApi {
52646
52681
  /**
52647
52682
  * Uploads service.
52648
52683
  * @module purecloud-platform-client-v2/api/UploadsApi
52649
- * @version 162.0.0
52684
+ * @version 164.0.0
52650
52685
  */
52651
52686
 
52652
52687
  /**
@@ -52822,7 +52857,7 @@ class UsageApi {
52822
52857
  /**
52823
52858
  * Usage service.
52824
52859
  * @module purecloud-platform-client-v2/api/UsageApi
52825
- * @version 162.0.0
52860
+ * @version 164.0.0
52826
52861
  */
52827
52862
 
52828
52863
  /**
@@ -52837,6 +52872,65 @@ class UsageApi {
52837
52872
  }
52838
52873
 
52839
52874
 
52875
+ /**
52876
+ * Get the results of a usage query
52877
+ *
52878
+ * @param {String} executionId ID of the query execution
52879
+ * @param {String} clientId Client ID
52880
+ */
52881
+ getOauthClientUsageQueryResult(executionId, clientId) {
52882
+ // verify the required parameter 'executionId' is set
52883
+ if (executionId === undefined || executionId === null) {
52884
+ throw 'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';
52885
+ }
52886
+ // verify the required parameter 'clientId' is set
52887
+ if (clientId === undefined || clientId === null) {
52888
+ throw 'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';
52889
+ }
52890
+
52891
+ return this.apiClient.callApi(
52892
+ '/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}',
52893
+ 'GET',
52894
+ { 'executionId': executionId,'clientId': clientId },
52895
+ { },
52896
+ { },
52897
+ { },
52898
+ null,
52899
+ ['PureCloud OAuth'],
52900
+ ['application/json'],
52901
+ ['application/json']
52902
+ );
52903
+ }
52904
+
52905
+ /**
52906
+ * Get a summary of OAuth client API usage
52907
+ * After calling this method, you will then need to poll for the query results based on the returned execution Id
52908
+ * @param {String} clientId Client ID
52909
+ * @param {Object} opts Optional parameters
52910
+ * @param {String} opts.days Previous number of days to query (default to 7)
52911
+ */
52912
+ getOauthClientUsageSummary(clientId, opts) {
52913
+ opts = opts || {};
52914
+
52915
+ // verify the required parameter 'clientId' is set
52916
+ if (clientId === undefined || clientId === null) {
52917
+ throw 'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';
52918
+ }
52919
+
52920
+ return this.apiClient.callApi(
52921
+ '/api/v2/oauth/clients/{clientId}/usage/summary',
52922
+ 'GET',
52923
+ { 'clientId': clientId },
52924
+ { 'days': opts['days'] },
52925
+ { },
52926
+ { },
52927
+ null,
52928
+ ['PureCloud OAuth'],
52929
+ ['application/json'],
52930
+ ['application/json']
52931
+ );
52932
+ }
52933
+
52840
52934
  /**
52841
52935
  * Get the results of a usage query
52842
52936
  *
@@ -52862,6 +52956,36 @@ class UsageApi {
52862
52956
  );
52863
52957
  }
52864
52958
 
52959
+ /**
52960
+ * Query for OAuth client API usage
52961
+ * After calling this method, you will then need to poll for the query results based on the returned execution Id
52962
+ * @param {String} clientId Client ID
52963
+ * @param {Object} body Query
52964
+ */
52965
+ postOauthClientUsageQuery(clientId, body) {
52966
+ // verify the required parameter 'clientId' is set
52967
+ if (clientId === undefined || clientId === null) {
52968
+ throw 'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';
52969
+ }
52970
+ // verify the required parameter 'body' is set
52971
+ if (body === undefined || body === null) {
52972
+ throw 'Missing the required parameter "body" when calling postOauthClientUsageQuery';
52973
+ }
52974
+
52975
+ return this.apiClient.callApi(
52976
+ '/api/v2/oauth/clients/{clientId}/usage/query',
52977
+ 'POST',
52978
+ { 'clientId': clientId },
52979
+ { },
52980
+ { },
52981
+ { },
52982
+ body,
52983
+ ['PureCloud OAuth'],
52984
+ ['application/json'],
52985
+ ['application/json']
52986
+ );
52987
+ }
52988
+
52865
52989
  /**
52866
52990
  * Query organization API Usage -
52867
52991
  * After calling this method, you will then need to poll for the query results based on the returned execution Id
@@ -52893,7 +53017,7 @@ class UserRecordingsApi {
52893
53017
  /**
52894
53018
  * UserRecordings service.
52895
53019
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
52896
- * @version 162.0.0
53020
+ * @version 164.0.0
52897
53021
  */
52898
53022
 
52899
53023
  /**
@@ -53078,7 +53202,7 @@ class UsersApi {
53078
53202
  /**
53079
53203
  * Users service.
53080
53204
  * @module purecloud-platform-client-v2/api/UsersApi
53081
- * @version 162.0.0
53205
+ * @version 164.0.0
53082
53206
  */
53083
53207
 
53084
53208
  /**
@@ -55466,7 +55590,7 @@ class UtilitiesApi {
55466
55590
  /**
55467
55591
  * Utilities service.
55468
55592
  * @module purecloud-platform-client-v2/api/UtilitiesApi
55469
- * @version 162.0.0
55593
+ * @version 164.0.0
55470
55594
  */
55471
55595
 
55472
55596
  /**
@@ -55577,7 +55701,7 @@ class VoicemailApi {
55577
55701
  /**
55578
55702
  * Voicemail service.
55579
55703
  * @module purecloud-platform-client-v2/api/VoicemailApi
55580
- * @version 162.0.0
55704
+ * @version 164.0.0
55581
55705
  */
55582
55706
 
55583
55707
  /**
@@ -56244,7 +56368,7 @@ class WebChatApi {
56244
56368
  /**
56245
56369
  * WebChat service.
56246
56370
  * @module purecloud-platform-client-v2/api/WebChatApi
56247
- * @version 162.0.0
56371
+ * @version 164.0.0
56248
56372
  */
56249
56373
 
56250
56374
  /**
@@ -56788,7 +56912,7 @@ class WebDeploymentsApi {
56788
56912
  /**
56789
56913
  * WebDeployments service.
56790
56914
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
56791
- * @version 162.0.0
56915
+ * @version 164.0.0
56792
56916
  */
56793
56917
 
56794
56918
  /**
@@ -57310,7 +57434,7 @@ class WebMessagingApi {
57310
57434
  /**
57311
57435
  * WebMessaging service.
57312
57436
  * @module purecloud-platform-client-v2/api/WebMessagingApi
57313
- * @version 162.0.0
57437
+ * @version 164.0.0
57314
57438
  */
57315
57439
 
57316
57440
  /**
@@ -57356,7 +57480,7 @@ class WidgetsApi {
57356
57480
  /**
57357
57481
  * Widgets service.
57358
57482
  * @module purecloud-platform-client-v2/api/WidgetsApi
57359
- * @version 162.0.0
57483
+ * @version 164.0.0
57360
57484
  */
57361
57485
 
57362
57486
  /**
@@ -57502,7 +57626,7 @@ class WorkforceManagementApi {
57502
57626
  /**
57503
57627
  * WorkforceManagement service.
57504
57628
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
57505
- * @version 162.0.0
57629
+ * @version 164.0.0
57506
57630
  */
57507
57631
 
57508
57632
  /**
@@ -62246,7 +62370,7 @@ class WorkforceManagementApi {
62246
62370
  * </pre>
62247
62371
  * </p>
62248
62372
  * @module purecloud-platform-client-v2/index
62249
- * @version 162.0.0
62373
+ * @version 164.0.0
62250
62374
  */
62251
62375
  class platformClient {
62252
62376
  constructor() {