purecloud-platform-client-v2 123.0.0 → 126.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +6 -2
  2. package/dist/node/purecloud-platform-client-v2.js +941 -137
  3. package/dist/web-amd/purecloud-platform-client-v2.js +941 -137
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +901 -141
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +914 -1304
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1177 -50
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -26
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +216 -1
  45. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/QualityApi.js +2 -2
  48. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/RoutingApi.js +22 -11
  51. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +96 -2
  55. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +31 -1
  67. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +473 -1
  72. package/src/purecloud-platform-client-v2/configuration.js +42 -35
  73. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -2171,26 +2171,7 @@ class Configuration {
2171
2171
 
2172
2172
  liveLoadConfig() {
2173
2173
  // If in browser, don't read config file, use default values
2174
- if (typeof window !== 'undefined') {
2175
- this.configPath = '';
2176
- return;
2177
- }
2178
-
2179
- this.updateConfigFromFile();
2180
-
2181
- if (this.live_reload_config && this.live_reload_config === true) {
2182
- try {
2183
- const fs = require('fs');
2184
- fs.watchFile(this.configPath, { persistent: false }, (eventType, filename) => {
2185
- this.updateConfigFromFile();
2186
- if (!this.live_reload_config) {
2187
- fs.unwatchFile(this.configPath);
2188
- }
2189
- });
2190
- } catch (err) {
2191
- // do nothing
2192
- }
2193
- }
2174
+ this.configPath = '';
2194
2175
  }
2195
2176
 
2196
2177
  setConfigPath(path) {
@@ -2201,24 +2182,6 @@ class Configuration {
2201
2182
  }
2202
2183
 
2203
2184
  updateConfigFromFile() {
2204
- const ConfigParser = require('configparser');
2205
- var configparser = new ConfigParser();
2206
-
2207
- try {
2208
- configparser.read(this.configPath); // If no error catched, indicates it's INI format
2209
- this.config = configparser;
2210
- } catch (error) {
2211
- if (error.name && error.name === 'MissingSectionHeaderError') {
2212
- // Not INI format, see if it's JSON format
2213
- const fs = require('fs');
2214
- var configData = fs.readFileSync(this.configPath, 'utf8');
2215
- this.config = {
2216
- _sections: JSON.parse(configData), // To match INI data format
2217
- };
2218
- }
2219
- }
2220
-
2221
- if (this.config) this.updateConfigValues();
2222
2185
  }
2223
2186
 
2224
2187
  updateConfigValues() {
@@ -2300,7 +2263,7 @@ class Configuration {
2300
2263
 
2301
2264
  /**
2302
2265
  * @module purecloud-platform-client-v2/ApiClient
2303
- * @version 123.0.0
2266
+ * @version 126.1.0
2304
2267
  */
2305
2268
  class ApiClient {
2306
2269
  /**
@@ -3240,7 +3203,7 @@ class ApiClient {
3240
3203
 
3241
3204
  // set header parameters
3242
3205
  request.set(that.defaultHeaders).set(that.normalizeParams(headerParams));
3243
- //request.set({ 'purecloud-sdk': '123.0.0' });
3206
+ //request.set({ 'purecloud-sdk': '126.1.0' });
3244
3207
 
3245
3208
  // set request timeout
3246
3209
  request.timeout(that.timeout);
@@ -3340,7 +3303,7 @@ class AlertingApi {
3340
3303
  /**
3341
3304
  * Alerting service.
3342
3305
  * @module purecloud-platform-client-v2/api/AlertingApi
3343
- * @version 123.0.0
3306
+ * @version 126.1.0
3344
3307
  */
3345
3308
 
3346
3309
  /**
@@ -3654,7 +3617,7 @@ class AnalyticsApi {
3654
3617
  /**
3655
3618
  * Analytics service.
3656
3619
  * @module purecloud-platform-client-v2/api/AnalyticsApi
3657
- * @version 123.0.0
3620
+ * @version 126.1.0
3658
3621
  */
3659
3622
 
3660
3623
  /**
@@ -4250,31 +4213,6 @@ class AnalyticsApi {
4250
4213
  );
4251
4214
  }
4252
4215
 
4253
- /**
4254
- * Patch AnalyticsReportingSettings values for an organization
4255
- *
4256
- * @param {Object} body AnalyticsReportingSettingsRequest
4257
- */
4258
- patchAnalyticsReportingSettings(body) {
4259
- // verify the required parameter 'body' is set
4260
- if (body === undefined || body === null) {
4261
- throw 'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';
4262
- }
4263
-
4264
- return this.apiClient.callApi(
4265
- '/api/v2/analytics/reporting/settings',
4266
- 'PATCH',
4267
- { },
4268
- { },
4269
- { },
4270
- { },
4271
- body,
4272
- ['PureCloud OAuth'],
4273
- ['application/json'],
4274
- ['application/json']
4275
- );
4276
- }
4277
-
4278
4216
  /**
4279
4217
  * Query for bot aggregates
4280
4218
  *
@@ -4816,7 +4754,7 @@ class ArchitectApi {
4816
4754
  /**
4817
4755
  * Architect service.
4818
4756
  * @module purecloud-platform-client-v2/api/ArchitectApi
4819
- * @version 123.0.0
4757
+ * @version 126.1.0
4820
4758
  */
4821
4759
 
4822
4760
  /**
@@ -7812,7 +7750,7 @@ class AuditApi {
7812
7750
  /**
7813
7751
  * Audit service.
7814
7752
  * @module purecloud-platform-client-v2/api/AuditApi
7815
- * @version 123.0.0
7753
+ * @version 126.1.0
7816
7754
  */
7817
7755
 
7818
7756
  /**
@@ -7983,7 +7921,7 @@ class AuthorizationApi {
7983
7921
  /**
7984
7922
  * Authorization service.
7985
7923
  * @module purecloud-platform-client-v2/api/AuthorizationApi
7986
- * @version 123.0.0
7924
+ * @version 126.1.0
7987
7925
  */
7988
7926
 
7989
7927
  /**
@@ -9166,7 +9104,7 @@ class BillingApi {
9166
9104
  /**
9167
9105
  * Billing service.
9168
9106
  * @module purecloud-platform-client-v2/api/BillingApi
9169
- * @version 123.0.0
9107
+ * @version 126.1.0
9170
9108
  */
9171
9109
 
9172
9110
  /**
@@ -9246,7 +9184,7 @@ class ChatApi {
9246
9184
  /**
9247
9185
  * Chat service.
9248
9186
  * @module purecloud-platform-client-v2/api/ChatApi
9249
- * @version 123.0.0
9187
+ * @version 126.1.0
9250
9188
  */
9251
9189
 
9252
9190
  /**
@@ -9337,7 +9275,7 @@ class CoachingApi {
9337
9275
  /**
9338
9276
  * Coaching service.
9339
9277
  * @module purecloud-platform-client-v2/api/CoachingApi
9340
- * @version 123.0.0
9278
+ * @version 126.1.0
9341
9279
  */
9342
9280
 
9343
9281
  /**
@@ -9912,7 +9850,7 @@ class ContentManagementApi {
9912
9850
  /**
9913
9851
  * ContentManagement service.
9914
9852
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9915
- * @version 123.0.0
9853
+ * @version 126.1.0
9916
9854
  */
9917
9855
 
9918
9856
  /**
@@ -11052,7 +10990,7 @@ class ConversationsApi {
11052
10990
  /**
11053
10991
  * Conversations service.
11054
10992
  * @module purecloud-platform-client-v2/api/ConversationsApi
11055
- * @version 123.0.0
10993
+ * @version 126.1.0
11056
10994
  */
11057
10995
 
11058
10996
  /**
@@ -15441,7 +15379,7 @@ class DataExtensionsApi {
15441
15379
  /**
15442
15380
  * DataExtensions service.
15443
15381
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
15444
- * @version 123.0.0
15382
+ * @version 126.1.0
15445
15383
  */
15446
15384
 
15447
15385
  /**
@@ -15527,7 +15465,7 @@ class ExternalContactsApi {
15527
15465
  /**
15528
15466
  * ExternalContacts service.
15529
15467
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
15530
- * @version 123.0.0
15468
+ * @version 126.1.0
15531
15469
  */
15532
15470
 
15533
15471
  /**
@@ -17270,7 +17208,7 @@ class FaxApi {
17270
17208
  /**
17271
17209
  * Fax service.
17272
17210
  * @module purecloud-platform-client-v2/api/FaxApi
17273
- * @version 123.0.0
17211
+ * @version 126.1.0
17274
17212
  */
17275
17213
 
17276
17214
  /**
@@ -17441,7 +17379,7 @@ class FlowsApi {
17441
17379
  /**
17442
17380
  * Flows service.
17443
17381
  * @module purecloud-platform-client-v2/api/FlowsApi
17444
- * @version 123.0.0
17382
+ * @version 126.1.0
17445
17383
  */
17446
17384
 
17447
17385
  /**
@@ -17512,7 +17450,7 @@ class GamificationApi {
17512
17450
  /**
17513
17451
  * Gamification service.
17514
17452
  * @module purecloud-platform-client-v2/api/GamificationApi
17515
- * @version 123.0.0
17453
+ * @version 126.1.0
17516
17454
  */
17517
17455
 
17518
17456
  /**
@@ -18818,7 +18756,7 @@ class GeneralDataProtectionRegulationApi {
18818
18756
  /**
18819
18757
  * GeneralDataProtectionRegulation service.
18820
18758
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
18821
- * @version 123.0.0
18759
+ * @version 126.1.0
18822
18760
  */
18823
18761
 
18824
18762
  /**
@@ -18948,7 +18886,7 @@ class GeolocationApi {
18948
18886
  /**
18949
18887
  * Geolocation service.
18950
18888
  * @module purecloud-platform-client-v2/api/GeolocationApi
18951
- * @version 123.0.0
18889
+ * @version 126.1.0
18952
18890
  */
18953
18891
 
18954
18892
  /**
@@ -19079,7 +19017,7 @@ class GreetingsApi {
19079
19017
  /**
19080
19018
  * Greetings service.
19081
19019
  * @module purecloud-platform-client-v2/api/GreetingsApi
19082
- * @version 123.0.0
19020
+ * @version 126.1.0
19083
19021
  */
19084
19022
 
19085
19023
  /**
@@ -19534,7 +19472,7 @@ class GroupsApi {
19534
19472
  /**
19535
19473
  * Groups service.
19536
19474
  * @module purecloud-platform-client-v2/api/GroupsApi
19537
- * @version 123.0.0
19475
+ * @version 126.1.0
19538
19476
  */
19539
19477
 
19540
19478
  /**
@@ -19939,7 +19877,7 @@ class IdentityProviderApi {
19939
19877
  /**
19940
19878
  * IdentityProvider service.
19941
19879
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
19942
- * @version 123.0.0
19880
+ * @version 126.1.0
19943
19881
  */
19944
19882
 
19945
19883
  /**
@@ -20695,7 +20633,7 @@ class IntegrationsApi {
20695
20633
  /**
20696
20634
  * Integrations service.
20697
20635
  * @module purecloud-platform-client-v2/api/IntegrationsApi
20698
- * @version 123.0.0
20636
+ * @version 126.1.0
20699
20637
  */
20700
20638
 
20701
20639
  /**
@@ -22341,7 +22279,7 @@ class JourneyApi {
22341
22279
  /**
22342
22280
  * Journey service.
22343
22281
  * @module purecloud-platform-client-v2/api/JourneyApi
22344
- * @version 123.0.0
22282
+ * @version 126.1.0
22345
22283
  */
22346
22284
 
22347
22285
  /**
@@ -23052,7 +22990,7 @@ class KnowledgeApi {
23052
22990
  /**
23053
22991
  * Knowledge service.
23054
22992
  * @module purecloud-platform-client-v2/api/KnowledgeApi
23055
- * @version 123.0.0
22993
+ * @version 126.1.0
23056
22994
  */
23057
22995
 
23058
22996
  /**
@@ -23952,7 +23890,7 @@ class LanguageUnderstandingApi {
23952
23890
  /**
23953
23891
  * LanguageUnderstanding service.
23954
23892
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
23955
- * @version 123.0.0
23893
+ * @version 126.1.0
23956
23894
  */
23957
23895
 
23958
23896
  /**
@@ -24518,7 +24456,7 @@ class LanguageUnderstandingApi {
24518
24456
  }
24519
24457
 
24520
24458
  /**
24521
- * Save information for the draft
24459
+ * Save information for the draft. Either topic draft or intent draft should be sent.
24522
24460
  *
24523
24461
  * @param {String} minerId Miner ID
24524
24462
  * @param {String} draftId Draft ID
@@ -24762,7 +24700,7 @@ class LanguageUnderstandingApi {
24762
24700
  }
24763
24701
 
24764
24702
  /**
24765
- * Start the mining process. Specify date range pair with mediaType and queueIds for mining data from Genesys Cloud. Specify only uploadKey for mining through an external file.
24703
+ * Start the mining process. Specify date range pair with mediaType, queueIds, participantType for mining data from Genesys Cloud. Specify only uploadKey for mining through an external file.
24766
24704
  *
24767
24705
  * @param {String} minerId Miner ID
24768
24706
  * @param {Object} opts Optional parameters
@@ -24856,7 +24794,7 @@ class LanguagesApi {
24856
24794
  /**
24857
24795
  * Languages service.
24858
24796
  * @module purecloud-platform-client-v2/api/LanguagesApi
24859
- * @version 123.0.0
24797
+ * @version 126.1.0
24860
24798
  */
24861
24799
 
24862
24800
  /**
@@ -25124,7 +25062,7 @@ class LearningApi {
25124
25062
  /**
25125
25063
  * Learning service.
25126
25064
  * @module purecloud-platform-client-v2/api/LearningApi
25127
- * @version 123.0.0
25065
+ * @version 126.1.0
25128
25066
  */
25129
25067
 
25130
25068
  /**
@@ -25715,7 +25653,7 @@ class LicenseApi {
25715
25653
  /**
25716
25654
  * License service.
25717
25655
  * @module purecloud-platform-client-v2/api/LicenseApi
25718
- * @version 123.0.0
25656
+ * @version 126.1.0
25719
25657
  */
25720
25658
 
25721
25659
  /**
@@ -25953,7 +25891,7 @@ class LocationsApi {
25953
25891
  /**
25954
25892
  * Locations service.
25955
25893
  * @module purecloud-platform-client-v2/api/LocationsApi
25956
- * @version 123.0.0
25894
+ * @version 126.1.0
25957
25895
  */
25958
25896
 
25959
25897
  /**
@@ -26189,7 +26127,7 @@ class MobileDevicesApi {
26189
26127
  /**
26190
26128
  * MobileDevices service.
26191
26129
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
26192
- * @version 123.0.0
26130
+ * @version 126.1.0
26193
26131
  */
26194
26132
 
26195
26133
  /**
@@ -26340,7 +26278,7 @@ class NotificationsApi {
26340
26278
  /**
26341
26279
  * Notifications service.
26342
26280
  * @module purecloud-platform-client-v2/api/NotificationsApi
26343
- * @version 123.0.0
26281
+ * @version 126.1.0
26344
26282
  */
26345
26283
 
26346
26284
  /**
@@ -26565,7 +26503,7 @@ class OAuthApi {
26565
26503
  /**
26566
26504
  * OAuth service.
26567
26505
  * @module purecloud-platform-client-v2/api/OAuthApi
26568
- * @version 123.0.0
26506
+ * @version 126.1.0
26569
26507
  */
26570
26508
 
26571
26509
  /**
@@ -26923,7 +26861,7 @@ class ObjectsApi {
26923
26861
  /**
26924
26862
  * Objects service.
26925
26863
  * @module purecloud-platform-client-v2/api/ObjectsApi
26926
- * @version 123.0.0
26864
+ * @version 126.1.0
26927
26865
  */
26928
26866
 
26929
26867
  /**
@@ -27194,7 +27132,7 @@ class OrganizationApi {
27194
27132
  /**
27195
27133
  * Organization service.
27196
27134
  * @module purecloud-platform-client-v2/api/OrganizationApi
27197
- * @version 123.0.0
27135
+ * @version 126.1.0
27198
27136
  */
27199
27137
 
27200
27138
  /**
@@ -27597,7 +27535,7 @@ class OrganizationAuthorizationApi {
27597
27535
  /**
27598
27536
  * OrganizationAuthorization service.
27599
27537
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
27600
- * @version 123.0.0
27538
+ * @version 126.1.0
27601
27539
  */
27602
27540
 
27603
27541
  /**
@@ -27637,6 +27575,36 @@ class OrganizationAuthorizationApi {
27637
27575
  );
27638
27576
  }
27639
27577
 
27578
+ /**
27579
+ * Deletes cloned user
27580
+ *
27581
+ * @param {String} trusteeOrgId Trustee Organization Id
27582
+ * @param {String} trusteeUserId Id of the cloned user to delete
27583
+ */
27584
+ deleteOrgauthorizationTrusteeCloneduser(trusteeOrgId, trusteeUserId) {
27585
+ // verify the required parameter 'trusteeOrgId' is set
27586
+ if (trusteeOrgId === undefined || trusteeOrgId === null) {
27587
+ throw 'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';
27588
+ }
27589
+ // verify the required parameter 'trusteeUserId' is set
27590
+ if (trusteeUserId === undefined || trusteeUserId === null) {
27591
+ throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';
27592
+ }
27593
+
27594
+ return this.apiClient.callApi(
27595
+ '/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}',
27596
+ 'DELETE',
27597
+ { 'trusteeOrgId': trusteeOrgId,'trusteeUserId': trusteeUserId },
27598
+ { },
27599
+ { },
27600
+ { },
27601
+ null,
27602
+ ['PureCloud OAuth'],
27603
+ ['application/json'],
27604
+ ['application/json']
27605
+ );
27606
+ }
27607
+
27640
27608
  /**
27641
27609
  * Delete Trustee User
27642
27610
  *
@@ -27722,6 +27690,36 @@ class OrganizationAuthorizationApi {
27722
27690
  );
27723
27691
  }
27724
27692
 
27693
+ /**
27694
+ * Delete Cloned User
27695
+ *
27696
+ * @param {String} trustorOrgId Trustor Organization Id
27697
+ * @param {String} trusteeUserId Trustee User Id
27698
+ */
27699
+ deleteOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
27700
+ // verify the required parameter 'trustorOrgId' is set
27701
+ if (trustorOrgId === undefined || trustorOrgId === null) {
27702
+ throw 'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';
27703
+ }
27704
+ // verify the required parameter 'trusteeUserId' is set
27705
+ if (trusteeUserId === undefined || trusteeUserId === null) {
27706
+ throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';
27707
+ }
27708
+
27709
+ return this.apiClient.callApi(
27710
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
27711
+ 'DELETE',
27712
+ { 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
27713
+ { },
27714
+ { },
27715
+ { },
27716
+ null,
27717
+ ['PureCloud OAuth'],
27718
+ ['application/json'],
27719
+ ['application/json']
27720
+ );
27721
+ }
27722
+
27725
27723
  /**
27726
27724
  * Delete Trustee User
27727
27725
  *
@@ -27802,6 +27800,31 @@ class OrganizationAuthorizationApi {
27802
27800
  );
27803
27801
  }
27804
27802
 
27803
+ /**
27804
+ * The list of cloned users from the trustee organization (i.e. users with a native user record).
27805
+ * There can be no more than 5 cloned users per organization, so results are represented as simple list and not paged
27806
+ * @param {String} trusteeOrgId Trustee Organization Id
27807
+ */
27808
+ getOrgauthorizationTrusteeClonedusers(trusteeOrgId) {
27809
+ // verify the required parameter 'trusteeOrgId' is set
27810
+ if (trusteeOrgId === undefined || trusteeOrgId === null) {
27811
+ throw 'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeClonedusers';
27812
+ }
27813
+
27814
+ return this.apiClient.callApi(
27815
+ '/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers',
27816
+ 'GET',
27817
+ { 'trusteeOrgId': trusteeOrgId },
27818
+ { },
27819
+ { },
27820
+ { },
27821
+ null,
27822
+ ['PureCloud OAuth'],
27823
+ ['application/json'],
27824
+ ['application/json']
27825
+ );
27826
+ }
27827
+
27805
27828
  /**
27806
27829
  * Get Trustee User
27807
27830
  *
@@ -27917,6 +27940,26 @@ class OrganizationAuthorizationApi {
27917
27940
  );
27918
27941
  }
27919
27942
 
27943
+ /**
27944
+ * Get organization authorization trust with Customer Care, if one exists.
27945
+ *
27946
+ */
27947
+ getOrgauthorizationTrusteesDefault() {
27948
+
27949
+ return this.apiClient.callApi(
27950
+ '/api/v2/orgauthorization/trustees/default',
27951
+ 'GET',
27952
+ { },
27953
+ { },
27954
+ { },
27955
+ { },
27956
+ null,
27957
+ ['PureCloud OAuth'],
27958
+ ['application/json'],
27959
+ ['application/json']
27960
+ );
27961
+ }
27962
+
27920
27963
  /**
27921
27964
  * Get Org Trust
27922
27965
  *
@@ -27942,6 +27985,61 @@ class OrganizationAuthorizationApi {
27942
27985
  );
27943
27986
  }
27944
27987
 
27988
+ /**
27989
+ * Get Cloned User
27990
+ *
27991
+ * @param {String} trustorOrgId Trustor Organization Id
27992
+ * @param {String} trusteeUserId Trustee User Id
27993
+ */
27994
+ getOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
27995
+ // verify the required parameter 'trustorOrgId' is set
27996
+ if (trustorOrgId === undefined || trustorOrgId === null) {
27997
+ throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';
27998
+ }
27999
+ // verify the required parameter 'trusteeUserId' is set
28000
+ if (trusteeUserId === undefined || trusteeUserId === null) {
28001
+ throw 'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';
28002
+ }
28003
+
28004
+ return this.apiClient.callApi(
28005
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
28006
+ 'GET',
28007
+ { 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
28008
+ { },
28009
+ { },
28010
+ { },
28011
+ null,
28012
+ ['PureCloud OAuth'],
28013
+ ['application/json'],
28014
+ ['application/json']
28015
+ );
28016
+ }
28017
+
28018
+ /**
28019
+ * The list of cloned users in the trustor organization (i.e. users with a native user record).
28020
+ *
28021
+ * @param {String} trustorOrgId Trustor Organization Id
28022
+ */
28023
+ getOrgauthorizationTrustorClonedusers(trustorOrgId) {
28024
+ // verify the required parameter 'trustorOrgId' is set
28025
+ if (trustorOrgId === undefined || trustorOrgId === null) {
28026
+ throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorClonedusers';
28027
+ }
28028
+
28029
+ return this.apiClient.callApi(
28030
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers',
28031
+ 'GET',
28032
+ { 'trustorOrgId': trustorOrgId },
28033
+ { },
28034
+ { },
28035
+ { },
28036
+ null,
28037
+ ['PureCloud OAuth'],
28038
+ ['application/json'],
28039
+ ['application/json']
28040
+ );
28041
+ }
28042
+
27945
28043
  /**
27946
28044
  * Get Trustee User
27947
28045
  *
@@ -28139,6 +28237,31 @@ class OrganizationAuthorizationApi {
28139
28237
  );
28140
28238
  }
28141
28239
 
28240
+ /**
28241
+ * Create a new organization authorization trust with Customer Care. This is required to grant your regional Customer Care organization access to your organization.
28242
+ *
28243
+ * @param {Object} opts Optional parameters
28244
+ * @param {Boolean} opts.assignDefaultRole Assign Admin role to default pairing with Customer Care
28245
+ * @param {Boolean} opts.autoExpire Automatically expire pairing after 30 days
28246
+ */
28247
+ postOrgauthorizationTrusteesDefault(opts) {
28248
+ opts = opts || {};
28249
+
28250
+
28251
+ return this.apiClient.callApi(
28252
+ '/api/v2/orgauthorization/trustees/default',
28253
+ 'POST',
28254
+ { },
28255
+ { 'assignDefaultRole': opts['assignDefaultRole'],'autoExpire': opts['autoExpire'] },
28256
+ { },
28257
+ { },
28258
+ null,
28259
+ ['PureCloud OAuth'],
28260
+ ['application/json'],
28261
+ ['application/json']
28262
+ );
28263
+ }
28264
+
28142
28265
  /**
28143
28266
  * Get Org Trustor Audits
28144
28267
  *
@@ -28271,6 +28394,36 @@ class OrganizationAuthorizationApi {
28271
28394
  );
28272
28395
  }
28273
28396
 
28397
+ /**
28398
+ * Creates a clone of the trustee user in the trustor org.
28399
+ *
28400
+ * @param {String} trustorOrgId Trustor Organization Id
28401
+ * @param {String} trusteeUserId Trustee User Id
28402
+ */
28403
+ putOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
28404
+ // verify the required parameter 'trustorOrgId' is set
28405
+ if (trustorOrgId === undefined || trustorOrgId === null) {
28406
+ throw 'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';
28407
+ }
28408
+ // verify the required parameter 'trusteeUserId' is set
28409
+ if (trusteeUserId === undefined || trusteeUserId === null) {
28410
+ throw 'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';
28411
+ }
28412
+
28413
+ return this.apiClient.callApi(
28414
+ '/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
28415
+ 'PUT',
28416
+ { 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
28417
+ { },
28418
+ { },
28419
+ { },
28420
+ null,
28421
+ ['PureCloud OAuth'],
28422
+ ['application/json'],
28423
+ ['application/json']
28424
+ );
28425
+ }
28426
+
28274
28427
  /**
28275
28428
  * Add a Trustee user to the trust.
28276
28429
  *
@@ -28307,7 +28460,7 @@ class OutboundApi {
28307
28460
  /**
28308
28461
  * Outbound service.
28309
28462
  * @module purecloud-platform-client-v2/api/OutboundApi
28310
- * @version 123.0.0
28463
+ * @version 126.1.0
28311
28464
  */
28312
28465
 
28313
28466
  /**
@@ -31333,7 +31486,7 @@ class PresenceApi {
31333
31486
  /**
31334
31487
  * Presence service.
31335
31488
  * @module purecloud-platform-client-v2/api/PresenceApi
31336
- * @version 123.0.0
31489
+ * @version 126.1.0
31337
31490
  */
31338
31491
 
31339
31492
  /**
@@ -31705,7 +31858,7 @@ class QualityApi {
31705
31858
  /**
31706
31859
  * Quality service.
31707
31860
  * @module purecloud-platform-client-v2/api/QualityApi
31708
- * @version 123.0.0
31861
+ * @version 126.1.0
31709
31862
  */
31710
31863
 
31711
31864
  /**
@@ -32078,7 +32231,7 @@ class QualityApi {
32078
32231
 
32079
32232
  /**
32080
32233
  * Queries Evaluations and returns a paged list
32081
- * Query params must include one of conversationId, evaluatorUserId, or agentUserId
32234
+ * Query params must include one of conversationId, evaluatorUserId, or agentUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to 'Never Release' are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date.
32082
32235
  * @param {Object} opts Optional parameters
32083
32236
  * @param {Number} opts.pageSize The total page size requested (default to 25)
32084
32237
  * @param {Number} opts.pageNumber The page number requested (default to 1)
@@ -33233,7 +33386,7 @@ class RecordingApi {
33233
33386
  /**
33234
33387
  * Recording service.
33235
33388
  * @module purecloud-platform-client-v2/api/RecordingApi
33236
- * @version 123.0.0
33389
+ * @version 126.1.0
33237
33390
  */
33238
33391
 
33239
33392
  /**
@@ -34752,7 +34905,7 @@ class ResponseManagementApi {
34752
34905
  /**
34753
34906
  * ResponseManagement service.
34754
34907
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
34755
- * @version 123.0.0
34908
+ * @version 126.1.0
34756
34909
  */
34757
34910
 
34758
34911
  /**
@@ -35077,7 +35230,7 @@ class RoutingApi {
35077
35230
  /**
35078
35231
  * Routing service.
35079
35232
  * @module purecloud-platform-client-v2/api/RoutingApi
35080
- * @version 123.0.0
35233
+ * @version 126.1.0
35081
35234
  */
35082
35235
 
35083
35236
  /**
@@ -35390,8 +35543,12 @@ class RoutingApi {
35390
35543
  * Delete a phone number provisioned for SMS.
35391
35544
  *
35392
35545
  * @param {String} addressId Address ID
35546
+ * @param {Object} opts Optional parameters
35547
+ * @param {Boolean} opts.async Delete a phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the deletion of a provisioned phone number. (default to false)
35393
35548
  */
35394
- deleteRoutingSmsPhonenumber(addressId) {
35549
+ deleteRoutingSmsPhonenumber(addressId, opts) {
35550
+ opts = opts || {};
35551
+
35395
35552
  // verify the required parameter 'addressId' is set
35396
35553
  if (addressId === undefined || addressId === null) {
35397
35554
  throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
@@ -35401,7 +35558,7 @@ class RoutingApi {
35401
35558
  '/api/v2/routing/sms/phonenumbers/{addressId}',
35402
35559
  'DELETE',
35403
35560
  { 'addressId': addressId },
35404
- { },
35561
+ { 'async': opts['async'] },
35405
35562
  { },
35406
35563
  { },
35407
35564
  null,
@@ -36229,12 +36386,11 @@ class RoutingApi {
36229
36386
  }
36230
36387
 
36231
36388
  /**
36232
- * Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization.
36389
+ * Get a paged listing of simplified queue objects, sorted by name. Can be used to get a digest of all queues in an organization.
36233
36390
  *
36234
36391
  * @param {Object} opts Optional parameters
36235
36392
  * @param {Number} opts.pageSize Page size [max value is 500] (default to 25)
36236
36393
  * @param {Number} opts.pageNumber Page number (default to 1)
36237
- * @param {Object} opts.sortBy Sort by (default to name)
36238
36394
  * @param {Object} opts.sortOrder Sort order (default to asc)
36239
36395
  */
36240
36396
  getRoutingQueuesDivisionviewsAll(opts) {
@@ -36245,7 +36401,7 @@ class RoutingApi {
36245
36401
  '/api/v2/routing/queues/divisionviews/all',
36246
36402
  'GET',
36247
36403
  { },
36248
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
36404
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
36249
36405
  { },
36250
36406
  { },
36251
36407
  null,
@@ -36729,7 +36885,7 @@ class RoutingApi {
36729
36885
 
36730
36886
  /**
36731
36887
  * Update attributes of an in-queue conversation
36732
- * Returns an object indicating the updated values of all settable attributes. Supported attributes: priority (each point of priority is equivalent to one minute of time in queue), skillIds and languageId.
36888
+ * Returns an object indicating the updated values of all settable attributes. Supported attributes: skillIds, languageId, and priority.
36733
36889
  * @param {String} conversationId Conversation ID
36734
36890
  * @param {Object} body Conversation Attributes
36735
36891
  */
@@ -37548,8 +37704,12 @@ class RoutingApi {
37548
37704
  * Provision a phone number for SMS
37549
37705
  *
37550
37706
  * @param {Object} body SmsPhoneNumber
37707
+ * @param {Object} opts Optional parameters
37708
+ * @param {Boolean} opts.async Provision a new phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the provisioning of a new phone number. Check the phoneNumber's provisioningStatus for completion of this request. (default to false)
37551
37709
  */
37552
- postRoutingSmsPhonenumbers(body) {
37710
+ postRoutingSmsPhonenumbers(body, opts) {
37711
+ opts = opts || {};
37712
+
37553
37713
  // verify the required parameter 'body' is set
37554
37714
  if (body === undefined || body === null) {
37555
37715
  throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
@@ -37559,7 +37719,7 @@ class RoutingApi {
37559
37719
  '/api/v2/routing/sms/phonenumbers',
37560
37720
  'POST',
37561
37721
  { },
37562
- { },
37722
+ { 'async': opts['async'] },
37563
37723
  { },
37564
37724
  { },
37565
37725
  body,
@@ -37804,8 +37964,12 @@ class RoutingApi {
37804
37964
  *
37805
37965
  * @param {String} addressId Address ID
37806
37966
  * @param {Object} body SmsPhoneNumber
37967
+ * @param {Object} opts Optional parameters
37968
+ * @param {Boolean} opts.async Update an existing phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the update of a provisioned phone number. Check the phoneNumber's provisioningStatus for the progress of this request. (default to false)
37807
37969
  */
37808
- putRoutingSmsPhonenumber(addressId, body) {
37970
+ putRoutingSmsPhonenumber(addressId, body, opts) {
37971
+ opts = opts || {};
37972
+
37809
37973
  // verify the required parameter 'addressId' is set
37810
37974
  if (addressId === undefined || addressId === null) {
37811
37975
  throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
@@ -37819,7 +37983,7 @@ class RoutingApi {
37819
37983
  '/api/v2/routing/sms/phonenumbers/{addressId}',
37820
37984
  'PUT',
37821
37985
  { 'addressId': addressId },
37822
- { },
37986
+ { 'async': opts['async'] },
37823
37987
  { },
37824
37988
  { },
37825
37989
  body,
@@ -37985,7 +38149,7 @@ class SCIMApi {
37985
38149
  /**
37986
38150
  * SCIM service.
37987
38151
  * @module purecloud-platform-client-v2/api/SCIMApi
37988
- * @version 123.0.0
38152
+ * @version 126.1.0
37989
38153
  */
37990
38154
 
37991
38155
  /**
@@ -38862,7 +39026,7 @@ class ScriptsApi {
38862
39026
  /**
38863
39027
  * Scripts service.
38864
39028
  * @module purecloud-platform-client-v2/api/ScriptsApi
38865
- * @version 123.0.0
39029
+ * @version 126.1.0
38866
39030
  */
38867
39031
 
38868
39032
  /**
@@ -39215,7 +39379,7 @@ class SearchApi {
39215
39379
  /**
39216
39380
  * Search service.
39217
39381
  * @module purecloud-platform-client-v2/api/SearchApi
39218
- * @version 123.0.0
39382
+ * @version 126.1.0
39219
39383
  */
39220
39384
 
39221
39385
  /**
@@ -39750,7 +39914,7 @@ class SpeechTextAnalyticsApi {
39750
39914
  /**
39751
39915
  * SpeechTextAnalytics service.
39752
39916
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
39753
- * @version 123.0.0
39917
+ * @version 126.1.0
39754
39918
  */
39755
39919
 
39756
39920
  /**
@@ -39794,6 +39958,51 @@ class SpeechTextAnalyticsApi {
39794
39958
  );
39795
39959
  }
39796
39960
 
39961
+ /**
39962
+ * Delete All Speech & Text Analytics SentimentFeedback
39963
+ *
39964
+ */
39965
+ deleteSpeechandtextanalyticsSentimentfeedback() {
39966
+
39967
+ return this.apiClient.callApi(
39968
+ '/api/v2/speechandtextanalytics/sentimentfeedback',
39969
+ 'DELETE',
39970
+ { },
39971
+ { },
39972
+ { },
39973
+ { },
39974
+ null,
39975
+ ['PureCloud OAuth'],
39976
+ ['application/json'],
39977
+ ['application/json']
39978
+ );
39979
+ }
39980
+
39981
+ /**
39982
+ * Delete a Speech & Text Analytics SentimentFeedback by Id
39983
+ *
39984
+ * @param {String} sentimentFeedbackId The Id of the SentimentFeedback
39985
+ */
39986
+ deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(sentimentFeedbackId) {
39987
+ // verify the required parameter 'sentimentFeedbackId' is set
39988
+ if (sentimentFeedbackId === undefined || sentimentFeedbackId === null) {
39989
+ throw 'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';
39990
+ }
39991
+
39992
+ return this.apiClient.callApi(
39993
+ '/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}',
39994
+ 'DELETE',
39995
+ { 'sentimentFeedbackId': sentimentFeedbackId },
39996
+ { },
39997
+ { },
39998
+ { },
39999
+ null,
40000
+ ['PureCloud OAuth'],
40001
+ ['application/json'],
40002
+ ['application/json']
40003
+ );
40004
+ }
40005
+
39797
40006
  /**
39798
40007
  * Delete a Speech & Text Analytics topic by id
39799
40008
  *
@@ -39876,7 +40085,7 @@ class SpeechTextAnalyticsApi {
39876
40085
 
39877
40086
  /**
39878
40087
  * Get list of supported Speech & Text Analytics dialects
39879
- *
40088
+ * This api has been deprecated. Use api/v2/topics/dialects instead
39880
40089
  */
39881
40090
  getSpeechandtextanalyticsDialects() {
39882
40091
 
@@ -40069,6 +40278,30 @@ class SpeechTextAnalyticsApi {
40069
40278
  );
40070
40279
  }
40071
40280
 
40281
+ /**
40282
+ * Get the list of Speech & Text Analytics SentimentFeedback
40283
+ *
40284
+ * @param {Object} opts Optional parameters
40285
+ * @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
40286
+ */
40287
+ getSpeechandtextanalyticsSentimentfeedback(opts) {
40288
+ opts = opts || {};
40289
+
40290
+
40291
+ return this.apiClient.callApi(
40292
+ '/api/v2/speechandtextanalytics/sentimentfeedback',
40293
+ 'GET',
40294
+ { },
40295
+ { 'dialect': opts['dialect'] },
40296
+ { },
40297
+ { },
40298
+ null,
40299
+ ['PureCloud OAuth'],
40300
+ ['application/json'],
40301
+ ['application/json']
40302
+ );
40303
+ }
40304
+
40072
40305
  /**
40073
40306
  * Get Speech And Text Analytics Settings
40074
40307
  *
@@ -40313,6 +40546,31 @@ class SpeechTextAnalyticsApi {
40313
40546
  );
40314
40547
  }
40315
40548
 
40549
+ /**
40550
+ * Create a Speech & Text Analytics SentimentFeedback
40551
+ *
40552
+ * @param {Object} body The SentimentFeedback to create
40553
+ */
40554
+ postSpeechandtextanalyticsSentimentfeedback(body) {
40555
+ // verify the required parameter 'body' is set
40556
+ if (body === undefined || body === null) {
40557
+ throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';
40558
+ }
40559
+
40560
+ return this.apiClient.callApi(
40561
+ '/api/v2/speechandtextanalytics/sentimentfeedback',
40562
+ 'POST',
40563
+ { },
40564
+ { },
40565
+ { },
40566
+ { },
40567
+ body,
40568
+ ['PureCloud OAuth'],
40569
+ ['application/json'],
40570
+ ['application/json']
40571
+ );
40572
+ }
40573
+
40316
40574
  /**
40317
40575
  * Create new Speech & Text Analytics topic
40318
40576
  *
@@ -40509,7 +40767,7 @@ class StationsApi {
40509
40767
  /**
40510
40768
  * Stations service.
40511
40769
  * @module purecloud-platform-client-v2/api/StationsApi
40512
- * @version 123.0.0
40770
+ * @version 126.1.0
40513
40771
  */
40514
40772
 
40515
40773
  /**
@@ -40656,7 +40914,7 @@ class SuggestApi {
40656
40914
  /**
40657
40915
  * Suggest service.
40658
40916
  * @module purecloud-platform-client-v2/api/SuggestApi
40659
- * @version 123.0.0
40917
+ * @version 126.1.0
40660
40918
  */
40661
40919
 
40662
40920
  /**
@@ -40795,7 +41053,7 @@ class TelephonyApi {
40795
41053
  /**
40796
41054
  * Telephony service.
40797
41055
  * @module purecloud-platform-client-v2/api/TelephonyApi
40798
- * @version 123.0.0
41056
+ * @version 126.1.0
40799
41057
  */
40800
41058
 
40801
41059
  /**
@@ -40903,7 +41161,7 @@ class TelephonyProvidersEdgeApi {
40903
41161
  /**
40904
41162
  * TelephonyProvidersEdge service.
40905
41163
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
40906
- * @version 123.0.0
41164
+ * @version 126.1.0
40907
41165
  */
40908
41166
 
40909
41167
  /**
@@ -44516,7 +44774,7 @@ class TextbotsApi {
44516
44774
  /**
44517
44775
  * Textbots service.
44518
44776
  * @module purecloud-platform-client-v2/api/TextbotsApi
44519
- * @version 123.0.0
44777
+ * @version 126.1.0
44520
44778
  */
44521
44779
 
44522
44780
  /**
@@ -44617,7 +44875,7 @@ class TokensApi {
44617
44875
  /**
44618
44876
  * Tokens service.
44619
44877
  * @module purecloud-platform-client-v2/api/TokensApi
44620
- * @version 123.0.0
44878
+ * @version 126.1.0
44621
44879
  */
44622
44880
 
44623
44881
  /**
@@ -44723,7 +44981,7 @@ class UploadsApi {
44723
44981
  /**
44724
44982
  * Uploads service.
44725
44983
  * @module purecloud-platform-client-v2/api/UploadsApi
44726
- * @version 123.0.0
44984
+ * @version 126.1.0
44727
44985
  */
44728
44986
 
44729
44987
  /**
@@ -44899,7 +45157,7 @@ class UsageApi {
44899
45157
  /**
44900
45158
  * Usage service.
44901
45159
  * @module purecloud-platform-client-v2/api/UsageApi
44902
- * @version 123.0.0
45160
+ * @version 126.1.0
44903
45161
  */
44904
45162
 
44905
45163
  /**
@@ -44970,7 +45228,7 @@ class UserRecordingsApi {
44970
45228
  /**
44971
45229
  * UserRecordings service.
44972
45230
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
44973
- * @version 123.0.0
45231
+ * @version 126.1.0
44974
45232
  */
44975
45233
 
44976
45234
  /**
@@ -45154,7 +45412,7 @@ class UsersApi {
45154
45412
  /**
45155
45413
  * Users service.
45156
45414
  * @module purecloud-platform-client-v2/api/UsersApi
45157
- * @version 123.0.0
45415
+ * @version 126.1.0
45158
45416
  */
45159
45417
 
45160
45418
  /**
@@ -47456,7 +47714,7 @@ class UtilitiesApi {
47456
47714
  /**
47457
47715
  * Utilities service.
47458
47716
  * @module purecloud-platform-client-v2/api/UtilitiesApi
47459
- * @version 123.0.0
47717
+ * @version 126.1.0
47460
47718
  */
47461
47719
 
47462
47720
  /**
@@ -47567,7 +47825,7 @@ class VoicemailApi {
47567
47825
  /**
47568
47826
  * Voicemail service.
47569
47827
  * @module purecloud-platform-client-v2/api/VoicemailApi
47570
- * @version 123.0.0
47828
+ * @version 126.1.0
47571
47829
  */
47572
47830
 
47573
47831
  /**
@@ -48198,13 +48456,43 @@ class VoicemailApi {
48198
48456
  );
48199
48457
  }
48200
48458
 
48459
+ /**
48460
+ * Update a user's voicemail policy
48461
+ *
48462
+ * @param {String} userId User ID
48463
+ * @param {Object} body The user's voicemail policy
48464
+ */
48465
+ putVoicemailUserpolicy(userId, body) {
48466
+ // verify the required parameter 'userId' is set
48467
+ if (userId === undefined || userId === null) {
48468
+ throw 'Missing the required parameter "userId" when calling putVoicemailUserpolicy';
48469
+ }
48470
+ // verify the required parameter 'body' is set
48471
+ if (body === undefined || body === null) {
48472
+ throw 'Missing the required parameter "body" when calling putVoicemailUserpolicy';
48473
+ }
48474
+
48475
+ return this.apiClient.callApi(
48476
+ '/api/v2/voicemail/userpolicies/{userId}',
48477
+ 'PUT',
48478
+ { 'userId': userId },
48479
+ { },
48480
+ { },
48481
+ { },
48482
+ body,
48483
+ ['PureCloud OAuth'],
48484
+ ['application/json'],
48485
+ ['application/json']
48486
+ );
48487
+ }
48488
+
48201
48489
  }
48202
48490
 
48203
48491
  class WebChatApi {
48204
48492
  /**
48205
48493
  * WebChat service.
48206
48494
  * @module purecloud-platform-client-v2/api/WebChatApi
48207
- * @version 123.0.0
48495
+ * @version 126.1.0
48208
48496
  */
48209
48497
 
48210
48498
  /**
@@ -48748,7 +49036,7 @@ class WebDeploymentsApi {
48748
49036
  /**
48749
49037
  * WebDeployments service.
48750
49038
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
48751
- * @version 123.0.0
49039
+ * @version 126.1.0
48752
49040
  */
48753
49041
 
48754
49042
  /**
@@ -49103,7 +49391,7 @@ class WebMessagingApi {
49103
49391
  /**
49104
49392
  * WebMessaging service.
49105
49393
  * @module purecloud-platform-client-v2/api/WebMessagingApi
49106
- * @version 123.0.0
49394
+ * @version 126.1.0
49107
49395
  */
49108
49396
 
49109
49397
  /**
@@ -49149,7 +49437,7 @@ class WidgetsApi {
49149
49437
  /**
49150
49438
  * Widgets service.
49151
49439
  * @module purecloud-platform-client-v2/api/WidgetsApi
49152
- * @version 123.0.0
49440
+ * @version 126.1.0
49153
49441
  */
49154
49442
 
49155
49443
  /**
@@ -49295,7 +49583,7 @@ class WorkforceManagementApi {
49295
49583
  /**
49296
49584
  * WorkforceManagement service.
49297
49585
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
49298
- * @version 123.0.0
49586
+ * @version 126.1.0
49299
49587
  */
49300
49588
 
49301
49589
  /**
@@ -49570,6 +49858,66 @@ class WorkforceManagementApi {
49570
49858
  );
49571
49859
  }
49572
49860
 
49861
+ /**
49862
+ * Deletes a time off limit object
49863
+ *
49864
+ * @param {String} managementUnitId The management unit ID of the management unit.
49865
+ * @param {String} timeOffLimitId The ID of the time off limit object to delete
49866
+ */
49867
+ deleteWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
49868
+ // verify the required parameter 'managementUnitId' is set
49869
+ if (managementUnitId === undefined || managementUnitId === null) {
49870
+ throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
49871
+ }
49872
+ // verify the required parameter 'timeOffLimitId' is set
49873
+ if (timeOffLimitId === undefined || timeOffLimitId === null) {
49874
+ throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
49875
+ }
49876
+
49877
+ return this.apiClient.callApi(
49878
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
49879
+ 'DELETE',
49880
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
49881
+ { },
49882
+ { },
49883
+ { },
49884
+ null,
49885
+ ['PureCloud OAuth'],
49886
+ ['application/json'],
49887
+ ['application/json']
49888
+ );
49889
+ }
49890
+
49891
+ /**
49892
+ * Deletes a time off plan
49893
+ *
49894
+ * @param {String} managementUnitId The management unit ID.
49895
+ * @param {String} timeOffPlanId The ID of the time off plan to delete
49896
+ */
49897
+ deleteWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
49898
+ // verify the required parameter 'managementUnitId' is set
49899
+ if (managementUnitId === undefined || managementUnitId === null) {
49900
+ throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
49901
+ }
49902
+ // verify the required parameter 'timeOffPlanId' is set
49903
+ if (timeOffPlanId === undefined || timeOffPlanId === null) {
49904
+ throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
49905
+ }
49906
+
49907
+ return this.apiClient.callApi(
49908
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
49909
+ 'DELETE',
49910
+ { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
49911
+ { },
49912
+ { },
49913
+ { },
49914
+ null,
49915
+ ['PureCloud OAuth'],
49916
+ ['application/json'],
49917
+ ['application/json']
49918
+ );
49919
+ }
49920
+
49573
49921
  /**
49574
49922
  * Delete a work plan
49575
49923
  *
@@ -50811,6 +51159,116 @@ class WorkforceManagementApi {
50811
51159
  );
50812
51160
  }
50813
51161
 
51162
+ /**
51163
+ * Gets a time off limit object
51164
+ * Returns properties of time off limit object, but not daily values.
51165
+ * @param {String} managementUnitId The management unit ID of the management unit.
51166
+ * @param {String} timeOffLimitId The ID of the time off limit to fetch
51167
+ */
51168
+ getWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
51169
+ // verify the required parameter 'managementUnitId' is set
51170
+ if (managementUnitId === undefined || managementUnitId === null) {
51171
+ throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
51172
+ }
51173
+ // verify the required parameter 'timeOffLimitId' is set
51174
+ if (timeOffLimitId === undefined || timeOffLimitId === null) {
51175
+ throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
51176
+ }
51177
+
51178
+ return this.apiClient.callApi(
51179
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
51180
+ 'GET',
51181
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
51182
+ { },
51183
+ { },
51184
+ { },
51185
+ null,
51186
+ ['PureCloud OAuth'],
51187
+ ['application/json'],
51188
+ ['application/json']
51189
+ );
51190
+ }
51191
+
51192
+ /**
51193
+ * Gets a list of time off limit objects under management unit.
51194
+ * Currently only one time off limit object is allowed under management unit, so the list contains either 0 or 1 element.
51195
+ * @param {String} managementUnitId The management unit ID of the management unit.
51196
+ */
51197
+ getWorkforcemanagementManagementunitTimeofflimits(managementUnitId) {
51198
+ // verify the required parameter 'managementUnitId' is set
51199
+ if (managementUnitId === undefined || managementUnitId === null) {
51200
+ throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';
51201
+ }
51202
+
51203
+ return this.apiClient.callApi(
51204
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
51205
+ 'GET',
51206
+ { 'managementUnitId': managementUnitId },
51207
+ { },
51208
+ { },
51209
+ { },
51210
+ null,
51211
+ ['PureCloud OAuth'],
51212
+ ['application/json'],
51213
+ ['application/json']
51214
+ );
51215
+ }
51216
+
51217
+ /**
51218
+ * Gets a time off plan
51219
+ *
51220
+ * @param {String} managementUnitId The management unit ID.
51221
+ * @param {String} timeOffPlanId The ID of the time off plan to fetch
51222
+ */
51223
+ getWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
51224
+ // verify the required parameter 'managementUnitId' is set
51225
+ if (managementUnitId === undefined || managementUnitId === null) {
51226
+ throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';
51227
+ }
51228
+ // verify the required parameter 'timeOffPlanId' is set
51229
+ if (timeOffPlanId === undefined || timeOffPlanId === null) {
51230
+ throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';
51231
+ }
51232
+
51233
+ return this.apiClient.callApi(
51234
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
51235
+ 'GET',
51236
+ { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
51237
+ { },
51238
+ { },
51239
+ { },
51240
+ null,
51241
+ ['PureCloud OAuth'],
51242
+ ['application/json'],
51243
+ ['application/json']
51244
+ );
51245
+ }
51246
+
51247
+ /**
51248
+ * Gets a list of time off plans
51249
+ *
51250
+ * @param {String} managementUnitId The management unit ID.
51251
+ */
51252
+ getWorkforcemanagementManagementunitTimeoffplans(managementUnitId) {
51253
+ // verify the required parameter 'managementUnitId' is set
51254
+ if (managementUnitId === undefined || managementUnitId === null) {
51255
+ throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';
51256
+ }
51257
+
51258
+ return this.apiClient.callApi(
51259
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
51260
+ 'GET',
51261
+ { 'managementUnitId': managementUnitId },
51262
+ { },
51263
+ { },
51264
+ { },
51265
+ null,
51266
+ ['PureCloud OAuth'],
51267
+ ['application/json'],
51268
+ ['application/json']
51269
+ );
51270
+ }
51271
+
50814
51272
  /**
50815
51273
  * Get a time off request
50816
51274
  *
@@ -50846,6 +51304,41 @@ class WorkforceManagementApi {
50846
51304
  );
50847
51305
  }
50848
51306
 
51307
+ /**
51308
+ * Retrieves time off limit, allocated and waitlisted values according to specific time off request
51309
+ *
51310
+ * @param {String} managementUnitId The management unit ID of the management unit.
51311
+ * @param {String} userId The userId to whom the time off request applies.
51312
+ * @param {String} timeOffRequestId The ID of the time off request, which dates and activityCodeId determine limit values to retrieve
51313
+ */
51314
+ getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(managementUnitId, userId, timeOffRequestId) {
51315
+ // verify the required parameter 'managementUnitId' is set
51316
+ if (managementUnitId === undefined || managementUnitId === null) {
51317
+ throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
51318
+ }
51319
+ // verify the required parameter 'userId' is set
51320
+ if (userId === undefined || userId === null) {
51321
+ throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
51322
+ }
51323
+ // verify the required parameter 'timeOffRequestId' is set
51324
+ if (timeOffRequestId === undefined || timeOffRequestId === null) {
51325
+ throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
51326
+ }
51327
+
51328
+ return this.apiClient.callApi(
51329
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits',
51330
+ 'GET',
51331
+ { 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
51332
+ { },
51333
+ { },
51334
+ { },
51335
+ null,
51336
+ ['PureCloud OAuth'],
51337
+ ['application/json'],
51338
+ ['application/json']
51339
+ );
51340
+ }
51341
+
50849
51342
  /**
50850
51343
  * Get a list of time off requests for a given user
50851
51344
  *
@@ -51279,6 +51772,31 @@ class WorkforceManagementApi {
51279
51772
  );
51280
51773
  }
51281
51774
 
51775
+ /**
51776
+ * Get the daily waitlist positions of a time off request for the current user
51777
+ *
51778
+ * @param {String} timeOffRequestId Time Off Request Id
51779
+ */
51780
+ getWorkforcemanagementTimeoffrequestWaitlistpositions(timeOffRequestId) {
51781
+ // verify the required parameter 'timeOffRequestId' is set
51782
+ if (timeOffRequestId === undefined || timeOffRequestId === null) {
51783
+ throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';
51784
+ }
51785
+
51786
+ return this.apiClient.callApi(
51787
+ '/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions',
51788
+ 'GET',
51789
+ { 'timeOffRequestId': timeOffRequestId },
51790
+ { },
51791
+ { },
51792
+ { },
51793
+ null,
51794
+ ['PureCloud OAuth'],
51795
+ ['application/json'],
51796
+ ['application/json']
51797
+ );
51798
+ }
51799
+
51282
51800
  /**
51283
51801
  * Get a list of time off requests for the current user
51284
51802
  *
@@ -51497,6 +52015,74 @@ class WorkforceManagementApi {
51497
52015
  );
51498
52016
  }
51499
52017
 
52018
+ /**
52019
+ * Updates a time off limit object.
52020
+ * Updates time off limit object properties, but not daily values.
52021
+ * @param {String} managementUnitId The management unit ID of the management unit.
52022
+ * @param {String} timeOffLimitId The id of time off limit object to update
52023
+ * @param {Object} opts Optional parameters
52024
+ * @param {Object} opts.body body
52025
+ */
52026
+ patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, opts) {
52027
+ opts = opts || {};
52028
+
52029
+ // verify the required parameter 'managementUnitId' is set
52030
+ if (managementUnitId === undefined || managementUnitId === null) {
52031
+ throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
52032
+ }
52033
+ // verify the required parameter 'timeOffLimitId' is set
52034
+ if (timeOffLimitId === undefined || timeOffLimitId === null) {
52035
+ throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
52036
+ }
52037
+
52038
+ return this.apiClient.callApi(
52039
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
52040
+ 'PATCH',
52041
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
52042
+ { },
52043
+ { },
52044
+ { },
52045
+ opts['body'],
52046
+ ['PureCloud OAuth'],
52047
+ ['application/json'],
52048
+ ['application/json']
52049
+ );
52050
+ }
52051
+
52052
+ /**
52053
+ * Updates a time off plan
52054
+ *
52055
+ * @param {String} managementUnitId The management unit ID.
52056
+ * @param {String} timeOffPlanId The ID of the time off plan to update
52057
+ * @param {Object} opts Optional parameters
52058
+ * @param {Object} opts.body body
52059
+ */
52060
+ patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, opts) {
52061
+ opts = opts || {};
52062
+
52063
+ // verify the required parameter 'managementUnitId' is set
52064
+ if (managementUnitId === undefined || managementUnitId === null) {
52065
+ throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
52066
+ }
52067
+ // verify the required parameter 'timeOffPlanId' is set
52068
+ if (timeOffPlanId === undefined || timeOffPlanId === null) {
52069
+ throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
52070
+ }
52071
+
52072
+ return this.apiClient.callApi(
52073
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
52074
+ 'PATCH',
52075
+ { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
52076
+ { },
52077
+ { },
52078
+ { },
52079
+ opts['body'],
52080
+ ['PureCloud OAuth'],
52081
+ ['application/json'],
52082
+ ['application/json']
52083
+ );
52084
+ }
52085
+
51500
52086
  /**
51501
52087
  * Update a time off request
51502
52088
  *
@@ -52358,6 +52944,93 @@ class WorkforceManagementApi {
52358
52944
  );
52359
52945
  }
52360
52946
 
52947
+ /**
52948
+ * Creates a new time off limit object under management unit.
52949
+ * Only one limit object is allowed under management unit, so an attempt to create second object will fail.
52950
+ * @param {String} managementUnitId The management unit ID of the management unit.
52951
+ * @param {Object} opts Optional parameters
52952
+ * @param {Object} opts.body body
52953
+ */
52954
+ postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, opts) {
52955
+ opts = opts || {};
52956
+
52957
+ // verify the required parameter 'managementUnitId' is set
52958
+ if (managementUnitId === undefined || managementUnitId === null) {
52959
+ throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
52960
+ }
52961
+
52962
+ return this.apiClient.callApi(
52963
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
52964
+ 'POST',
52965
+ { 'managementUnitId': managementUnitId },
52966
+ { },
52967
+ { },
52968
+ { },
52969
+ opts['body'],
52970
+ ['PureCloud OAuth'],
52971
+ ['application/json'],
52972
+ ['application/json']
52973
+ );
52974
+ }
52975
+
52976
+ /**
52977
+ * Retrieves time off limit related values based on a given set of filters.
52978
+ *
52979
+ * @param {String} managementUnitId The management unit ID of the management unit.
52980
+ * @param {Object} opts Optional parameters
52981
+ * @param {Object} opts.body body
52982
+ */
52983
+ postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, opts) {
52984
+ opts = opts || {};
52985
+
52986
+ // verify the required parameter 'managementUnitId' is set
52987
+ if (managementUnitId === undefined || managementUnitId === null) {
52988
+ throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
52989
+ }
52990
+
52991
+ return this.apiClient.callApi(
52992
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
52993
+ 'POST',
52994
+ { 'managementUnitId': managementUnitId },
52995
+ { },
52996
+ { },
52997
+ { },
52998
+ opts['body'],
52999
+ ['PureCloud OAuth'],
53000
+ ['application/json'],
53001
+ ['application/json']
53002
+ );
53003
+ }
53004
+
53005
+ /**
53006
+ * Creates a new time off plan
53007
+ *
53008
+ * @param {String} managementUnitId The management unit ID.
53009
+ * @param {Object} opts Optional parameters
53010
+ * @param {Object} opts.body body
53011
+ */
53012
+ postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, opts) {
53013
+ opts = opts || {};
53014
+
53015
+ // verify the required parameter 'managementUnitId' is set
53016
+ if (managementUnitId === undefined || managementUnitId === null) {
53017
+ throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
53018
+ }
53019
+
53020
+ return this.apiClient.callApi(
53021
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
53022
+ 'POST',
53023
+ { 'managementUnitId': managementUnitId },
53024
+ { },
53025
+ { },
53026
+ { },
53027
+ opts['body'],
53028
+ ['PureCloud OAuth'],
53029
+ ['application/json'],
53030
+ ['application/json']
53031
+ );
53032
+ }
53033
+
52361
53034
  /**
52362
53035
  * Create a new time off request
52363
53036
  *
@@ -52416,6 +53089,35 @@ class WorkforceManagementApi {
52416
53089
  );
52417
53090
  }
52418
53091
 
53092
+ /**
53093
+ * Retrieves daily waitlist position for a list of time off requests
53094
+ *
53095
+ * @param {String} managementUnitId The management unit ID of the management unit.
53096
+ * @param {Object} opts Optional parameters
53097
+ * @param {Object} opts.body body
53098
+ */
53099
+ postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, opts) {
53100
+ opts = opts || {};
53101
+
53102
+ // verify the required parameter 'managementUnitId' is set
53103
+ if (managementUnitId === undefined || managementUnitId === null) {
53104
+ throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
53105
+ }
53106
+
53107
+ return this.apiClient.callApi(
53108
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
53109
+ 'POST',
53110
+ { 'managementUnitId': managementUnitId },
53111
+ { },
53112
+ { },
53113
+ { },
53114
+ opts['body'],
53115
+ ['PureCloud OAuth'],
53116
+ ['application/json'],
53117
+ ['application/json']
53118
+ );
53119
+ }
53120
+
52419
53121
  /**
52420
53122
  * Matches a shift trade. This route can only be called by the receiving agent
52421
53123
  *
@@ -52799,6 +53501,30 @@ class WorkforceManagementApi {
52799
53501
  );
52800
53502
  }
52801
53503
 
53504
+ /**
53505
+ * Queries available time off for the current user
53506
+ *
53507
+ * @param {Object} opts Optional parameters
53508
+ * @param {Object} opts.body body
53509
+ */
53510
+ postWorkforcemanagementTimeofflimitsAvailableQuery(opts) {
53511
+ opts = opts || {};
53512
+
53513
+
53514
+ return this.apiClient.callApi(
53515
+ '/api/v2/workforcemanagement/timeofflimits/available/query',
53516
+ 'POST',
53517
+ { },
53518
+ { },
53519
+ { },
53520
+ { },
53521
+ opts['body'],
53522
+ ['PureCloud OAuth'],
53523
+ ['application/json'],
53524
+ ['application/json']
53525
+ );
53526
+ }
53527
+
52802
53528
  /**
52803
53529
  * Create a time off request for the current user
52804
53530
  *
@@ -52823,6 +53549,40 @@ class WorkforceManagementApi {
52823
53549
  );
52824
53550
  }
52825
53551
 
53552
+ /**
53553
+ * Sets daily values for a date range of time off limit object
53554
+ * Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
53555
+ * @param {String} managementUnitId The management unit ID of the management unit.
53556
+ * @param {String} timeOffLimitId The ID of the time off limit object to set values for
53557
+ * @param {Object} opts Optional parameters
53558
+ * @param {Object} opts.body body
53559
+ */
53560
+ putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, opts) {
53561
+ opts = opts || {};
53562
+
53563
+ // verify the required parameter 'managementUnitId' is set
53564
+ if (managementUnitId === undefined || managementUnitId === null) {
53565
+ throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
53566
+ }
53567
+ // verify the required parameter 'timeOffLimitId' is set
53568
+ if (timeOffLimitId === undefined || timeOffLimitId === null) {
53569
+ throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
53570
+ }
53571
+
53572
+ return this.apiClient.callApi(
53573
+ '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
53574
+ 'PUT',
53575
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
53576
+ { },
53577
+ { },
53578
+ { },
53579
+ opts['body'],
53580
+ ['PureCloud OAuth'],
53581
+ ['application/json'],
53582
+ ['application/json']
53583
+ );
53584
+ }
53585
+
52826
53586
  }
52827
53587
 
52828
53588
  /**
@@ -52854,7 +53614,7 @@ class WorkforceManagementApi {
52854
53614
  * </pre>
52855
53615
  * </p>
52856
53616
  * @module purecloud-platform-client-v2/index
52857
- * @version 123.0.0
53617
+ * @version 126.1.0
52858
53618
  */
52859
53619
  class platformClient {
52860
53620
  constructor() {