purecloud-platform-client-v2 161.0.0 → 162.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 +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +153 -77
  3. package/dist/web-amd/purecloud-platform-client-v2.js +153 -77
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +153 -77
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +153 -77
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +66 -19
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +2 -2
  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 +3 -2
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +74 -4
  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/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 +9 -4
  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 +1 -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
package/index.d.ts CHANGED
@@ -710,6 +710,7 @@ declare namespace AuthorizationApi {
710
710
  "query"?: string;
711
711
  }
712
712
  export interface getAuthorizationRoleOptions {
713
+ "userCount"?: boolean;
713
714
  "expand"?: Array<string>;
714
715
  }
715
716
  export interface getAuthorizationRoleSubjectgrantsOptions {
@@ -770,8 +771,11 @@ declare namespace BillingApi {
770
771
 
771
772
  declare class ChatApi {
772
773
  getChatSettings(): Promise<Models.ChatSettings>;
774
+ getChatsSettings(): Promise<Models.ChatSettings>;
773
775
  patchChatSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
774
- putChatSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
776
+ patchChatsSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
777
+ putChatSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
778
+ putChatsSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
775
779
  }
776
780
 
777
781
  declare namespace ChatApi {
@@ -3904,7 +3908,7 @@ declare class RoutingApi {
3904
3908
  getRoutingEmailOutboundDomain(domainId: string): Promise<Models.OutboundDomain>;
3905
3909
  getRoutingEmailOutboundDomainActivation(domainId: string): Promise<Models.EmailOutboundDomainResult>;
3906
3910
  getRoutingEmailOutboundDomainSearch(domainId: string): Promise<Models.OutboundDomain>;
3907
- getRoutingEmailOutboundDomains(): Promise<Models.OutboundDomainEntityListing>;
3911
+ getRoutingEmailOutboundDomains(opts?: RoutingApi.getRoutingEmailOutboundDomainsOptions): Promise<Models.OutboundDomainEntityListing>;
3908
3912
  getRoutingEmailSetup(): Promise<Models.EmailSetup>;
3909
3913
  getRoutingLanguage(languageId: string): Promise<Models.Language>;
3910
3914
  getRoutingLanguages(opts?: RoutingApi.getRoutingLanguagesOptions): Promise<Models.LanguageEntityListing>;
@@ -4023,6 +4027,10 @@ declare namespace RoutingApi {
4023
4027
  "pageSize"?: number;
4024
4028
  "pageNumber"?: number;
4025
4029
  "excludeStatus"?: boolean;
4030
+ "filter"?: string;
4031
+ }
4032
+ export interface getRoutingEmailOutboundDomainsOptions {
4033
+ "filter"?: string;
4026
4034
  }
4027
4035
  export interface getRoutingLanguagesOptions {
4028
4036
  "pageSize"?: number;
@@ -9557,6 +9565,13 @@ declare namespace Models {
9557
9565
  "callbackScheduledTime"?: string;
9558
9566
  }
9559
9567
 
9568
+ export interface CallbackMediaSettings {
9569
+ "enableAutoAnswer"?: boolean;
9570
+ "alertingTimeoutSeconds"?: number;
9571
+ "serviceLevel"?: Models.ServiceLevel;
9572
+ "subTypeSettings"?: { [key: string]: Models.BaseMediaSettings; };
9573
+ }
9574
+
9560
9575
  export interface Campaign {
9561
9576
  "id"?: string;
9562
9577
  "name": string;
@@ -13637,7 +13652,7 @@ declare namespace Models {
13637
13652
  "memberCount"?: number;
13638
13653
  "userMemberCount"?: number;
13639
13654
  "joinedMemberCount"?: number;
13640
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
13655
+ "mediaSettings"?: Models.QueueMediaSettings;
13641
13656
  "routingRules"?: Array<Models.RoutingRule>;
13642
13657
  "bullseye"?: Models.Bullseye;
13643
13658
  "acwSettings"?: Models.AcwSettings;
@@ -17156,6 +17171,12 @@ declare namespace Models {
17156
17171
  "totalCriticalScore"?: number;
17157
17172
  }
17158
17173
 
17174
+ export interface EvaluationQualityV2TopicEvaluationSource {
17175
+ "evaluationSourceType"?: string;
17176
+ "evaluationSourceId"?: string;
17177
+ "evaluationSourceName"?: string;
17178
+ }
17179
+
17159
17180
  export interface EvaluationQualityV2TopicEvaluationV2 {
17160
17181
  "id"?: string;
17161
17182
  "conversationId"?: string;
@@ -17179,6 +17200,9 @@ declare namespace Models {
17179
17200
  "conversationDate"?: string;
17180
17201
  "mediaType"?: Array<string>;
17181
17202
  "calibration"?: Models.EvaluationQualityV2TopicCalibration;
17203
+ "evaluationSource"?: Models.EvaluationQualityV2TopicEvaluationSource;
17204
+ "assigneeUserId"?: string;
17205
+ "previousAssigneeUserId"?: string;
17182
17206
  }
17183
17207
 
17184
17208
  export interface EvaluationQualityV2TopicUser {
@@ -18032,6 +18056,7 @@ declare namespace Models {
18032
18056
  "name"?: string;
18033
18057
  "uploadDestinationUri"?: string;
18034
18058
  "uploadMethodType"?: string;
18059
+ "headers"?: { [key: string]: string; };
18035
18060
  "selfUri"?: string;
18036
18061
  }
18037
18062
 
@@ -20222,16 +20247,6 @@ declare namespace Models {
20222
20247
  "user"?: Models.JourneySessionEventsNotificationUser;
20223
20248
  }
20224
20249
 
20225
- export interface JourneySessionEventsNotificationCustomEventAttribute {
20226
- "value"?: string;
20227
- "dataType"?: string;
20228
- }
20229
-
20230
- export interface JourneySessionEventsNotificationCustomEventAttributeList {
20231
- "values"?: Array<string>;
20232
- "dataType"?: string;
20233
- }
20234
-
20235
20250
  export interface JourneySessionEventsNotificationDevice {
20236
20251
  "type"?: string;
20237
20252
  "isMobile"?: boolean;
@@ -20327,8 +20342,6 @@ declare namespace Models {
20327
20342
  "type"?: string;
20328
20343
  "outcomeAchievements"?: Array<Models.JourneySessionEventsNotificationOutcomeAchievement>;
20329
20344
  "segmentAssignments"?: Array<Models.JourneySessionEventsNotificationSegmentAssignment>;
20330
- "attributes"?: { [key: string]: Models.JourneySessionEventsNotificationCustomEventAttribute; };
20331
- "attributeLists"?: { [key: string]: Models.JourneySessionEventsNotificationCustomEventAttributeList; };
20332
20345
  "awayDate"?: string;
20333
20346
  "browser"?: Models.JourneySessionEventsNotificationBrowser;
20334
20347
  "device"?: Models.JourneySessionEventsNotificationDevice;
@@ -22581,7 +22594,7 @@ declare namespace Models {
22581
22594
  "waveformData"?: Array<number>;
22582
22595
  }
22583
22596
 
22584
- export interface MediaSetting {
22597
+ export interface MediaSettings {
22585
22598
  "enableAutoAnswer"?: boolean;
22586
22599
  "alertingTimeoutSeconds"?: number;
22587
22600
  "serviceLevel"?: Models.ServiceLevel;
@@ -25808,7 +25821,7 @@ declare namespace Models {
25808
25821
  "memberCount"?: number;
25809
25822
  "userMemberCount"?: number;
25810
25823
  "joinedMemberCount"?: number;
25811
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
25824
+ "mediaSettings"?: Models.QueueMediaSettings;
25812
25825
  "routingRules"?: Array<Models.RoutingRule>;
25813
25826
  "bullseye"?: Models.Bullseye;
25814
25827
  "acwSettings"?: Models.AcwSettings;
@@ -28171,6 +28184,14 @@ declare namespace Models {
28171
28184
  "pageCount"?: number;
28172
28185
  }
28173
28186
 
28187
+ export interface QueueMediaSettings {
28188
+ "call"?: Models.MediaSettings;
28189
+ "callback"?: Models.CallbackMediaSettings;
28190
+ "chat"?: Models.MediaSettings;
28191
+ "email"?: Models.MediaSettings;
28192
+ "message"?: Models.MediaSettings;
28193
+ }
28194
+
28174
28195
  export interface QueueMember {
28175
28196
  "id"?: string;
28176
28197
  "name"?: string;
@@ -28261,7 +28282,7 @@ declare namespace Models {
28261
28282
  "memberCount"?: number;
28262
28283
  "userMemberCount"?: number;
28263
28284
  "joinedMemberCount"?: number;
28264
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
28285
+ "mediaSettings"?: Models.QueueMediaSettings;
28265
28286
  "routingRules"?: Array<Models.RoutingRule>;
28266
28287
  "bullseye"?: Models.Bullseye;
28267
28288
  "acwSettings"?: Models.AcwSettings;
@@ -30279,6 +30300,11 @@ declare namespace Models {
30279
30300
  "selfUri"?: string;
30280
30301
  }
30281
30302
 
30303
+ export interface ServiceGoalTemplateImpactOverride {
30304
+ "enabled": boolean;
30305
+ "impact": Models.WfmServiceGoalImpactSettings;
30306
+ }
30307
+
30282
30308
  export interface ServiceGoalTemplateList {
30283
30309
  "entities"?: Array<Models.ServiceGoalTemplate>;
30284
30310
  }
@@ -33791,7 +33817,7 @@ declare namespace Models {
33791
33817
  "memberCount"?: number;
33792
33818
  "userMemberCount"?: number;
33793
33819
  "joinedMemberCount"?: number;
33794
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
33820
+ "mediaSettings"?: Models.QueueMediaSettings;
33795
33821
  "routingRules"?: Array<Models.RoutingRule>;
33796
33822
  "bullseye"?: Models.Bullseye;
33797
33823
  "acwSettings"?: Models.AcwSettings;
@@ -37033,6 +37059,13 @@ declare namespace Models {
37033
37059
  "alertTimeoutSeconds"?: number;
37034
37060
  "queueId"?: string;
37035
37061
  "customFields"?: { [key: string]: Models.WorkitemsEventsNotificationCustomAttribute; };
37062
+ "wrapup"?: Models.WorkitemsEventsNotificationWrapup;
37063
+ }
37064
+
37065
+ export interface WorkitemsEventsNotificationWrapup {
37066
+ "code"?: string;
37067
+ "userId"?: string;
37068
+ "op"?: string;
37036
37069
  }
37037
37070
 
37038
37071
  export interface WorkitemsQueueEventsNotificationCustomAttribute {
@@ -37077,6 +37110,13 @@ declare namespace Models {
37077
37110
  "alertTimeoutSeconds"?: number;
37078
37111
  "queueId"?: string;
37079
37112
  "customFields"?: { [key: string]: Models.WorkitemsQueueEventsNotificationCustomAttribute; };
37113
+ "wrapup"?: Models.WorkitemsQueueEventsNotificationWrapup;
37114
+ }
37115
+
37116
+ export interface WorkitemsQueueEventsNotificationWrapup {
37117
+ "code"?: string;
37118
+ "userId"?: string;
37119
+ "op"?: string;
37080
37120
  }
37081
37121
 
37082
37122
  export interface WorkitemsUserEventsNotificationCustomAttribute {
@@ -37121,6 +37161,13 @@ declare namespace Models {
37121
37161
  "alertTimeoutSeconds"?: number;
37122
37162
  "queueId"?: string;
37123
37163
  "customFields"?: { [key: string]: Models.WorkitemsUserEventsNotificationCustomAttribute; };
37164
+ "wrapup"?: Models.WorkitemsUserEventsNotificationWrapup;
37165
+ }
37166
+
37167
+ export interface WorkitemsUserEventsNotificationWrapup {
37168
+ "code"?: string;
37169
+ "userId"?: string;
37170
+ "op"?: string;
37124
37171
  }
37125
37172
 
37126
37173
  export interface Workspace {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "161.0.0",
3
+ "version": "162.0.0",
4
4
  "description": "A JavaScript library to interface with the PureCloud Platform API",
5
5
  "license": "MIT",
6
6
  "main": "dist/node/purecloud-platform-client-v2.js",
@@ -5,7 +5,7 @@ const { HttpsProxyAgent } = require('hpagent')
5
5
 
6
6
  /**
7
7
  * @module purecloud-platform-client-v2/ApiClient
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
  class ApiClient {
11
11
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AnalyticsApi {
5
5
  /**
6
6
  * Analytics service.
7
7
  * @module purecloud-platform-client-v2/api/AnalyticsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -97,7 +97,7 @@ class AnalyticsApi {
97
97
 
98
98
  /**
99
99
  * Get Reporting Turns.
100
- *
100
+ * Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list.
101
101
  * @param {String} botFlowId ID of the bot flow.
102
102
  * @param {Object} opts Optional parameters
103
103
  * @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuthorizationApi {
5
5
  /**
6
6
  * Authorization service.
7
7
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -386,6 +386,7 @@ class AuthorizationApi {
386
386
  * Get the organization role specified by its ID.
387
387
  * @param {String} roleId Role ID
388
388
  * @param {Object} opts Optional parameters
389
+ * @param {Object} opts.userCount Fetch the count of users who have this role granted in at least one division (default to true)
389
390
  * @param {Array.<String>} opts.expand Which fields, if any, to expand. unusedPermissions returns the permissions not used for the role
390
391
  */
391
392
  getAuthorizationRole(roleId, opts) {
@@ -400,7 +401,7 @@ class AuthorizationApi {
400
401
  '/api/v2/authorization/roles/{roleId}',
401
402
  'GET',
402
403
  { 'roleId': roleId },
403
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
404
+ { 'userCount': opts['userCount'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
404
405
  { },
405
406
  { },
406
407
  null,
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ChatApi {
5
5
  /**
6
6
  * Chat service.
7
7
  * @module purecloud-platform-client-v2/api/ChatApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -22,7 +22,7 @@ class ChatApi {
22
22
 
23
23
  /**
24
24
  * Get Chat Settings.
25
- *
25
+ * This route is deprecated, please use /chats/settings instead
26
26
  */
27
27
  getChatSettings() {
28
28
 
@@ -41,8 +41,28 @@ class ChatApi {
41
41
  }
42
42
 
43
43
  /**
44
- * Patch Chat Settings.
44
+ * Get Chat Settings.
45
45
  *
46
+ */
47
+ getChatsSettings() {
48
+
49
+ return this.apiClient.callApi(
50
+ '/api/v2/chats/settings',
51
+ 'GET',
52
+ { },
53
+ { },
54
+ { },
55
+ { },
56
+ null,
57
+ ['PureCloud OAuth'],
58
+ ['application/json'],
59
+ ['application/json']
60
+ );
61
+ }
62
+
63
+ /**
64
+ * Patch Chat Settings.
65
+ * This route is deprecated, please use /chats/settings instead
46
66
  * @param {Object} body Chat
47
67
  */
48
68
  patchChatSettings(body) {
@@ -66,10 +86,35 @@ class ChatApi {
66
86
  }
67
87
 
68
88
  /**
69
- * Update Chat Settings.
89
+ * Patch Chat Settings.
70
90
  *
71
91
  * @param {Object} body Chat
72
92
  */
93
+ patchChatsSettings(body) {
94
+ // verify the required parameter 'body' is set
95
+ if (body === undefined || body === null) {
96
+ throw 'Missing the required parameter "body" when calling patchChatsSettings';
97
+ }
98
+
99
+ return this.apiClient.callApi(
100
+ '/api/v2/chats/settings',
101
+ 'PATCH',
102
+ { },
103
+ { },
104
+ { },
105
+ { },
106
+ body,
107
+ ['PureCloud OAuth'],
108
+ ['application/json'],
109
+ ['application/json']
110
+ );
111
+ }
112
+
113
+ /**
114
+ * Update Chat Settings.
115
+ * This route is deprecated, please use /chats/settings instead
116
+ * @param {Object} body Chat
117
+ */
73
118
  putChatSettings(body) {
74
119
  // verify the required parameter 'body' is set
75
120
  if (body === undefined || body === null) {
@@ -90,6 +135,31 @@ class ChatApi {
90
135
  );
91
136
  }
92
137
 
138
+ /**
139
+ * Update Chat Settings.
140
+ *
141
+ * @param {Object} body Chat
142
+ */
143
+ putChatsSettings(body) {
144
+ // verify the required parameter 'body' is set
145
+ if (body === undefined || body === null) {
146
+ throw 'Missing the required parameter "body" when calling putChatsSettings';
147
+ }
148
+
149
+ return this.apiClient.callApi(
150
+ '/api/v2/chats/settings',
151
+ 'PUT',
152
+ { },
153
+ { },
154
+ { },
155
+ { },
156
+ body,
157
+ ['PureCloud OAuth'],
158
+ ['application/json'],
159
+ ['application/json']
160
+ );
161
+ }
162
+
93
163
  }
94
164
 
95
165
 
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DownloadsApi {
5
5
  /**
6
6
  * Downloads service.
7
7
  * @module purecloud-platform-client-v2/api/DownloadsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EventsApi {
5
5
  /**
6
6
  * Events service.
7
7
  * @module purecloud-platform-client-v2/api/EventsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ExternalContactsApi {
5
5
  /**
6
6
  * ExternalContacts service.
7
7
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FlowsApi {
5
5
  /**
6
6
  * Flows service.
7
7
  * @module purecloud-platform-client-v2/api/FlowsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GamificationApi {
5
5
  /**
6
6
  * Gamification service.
7
7
  * @module purecloud-platform-client-v2/api/GamificationApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeolocationApi {
5
5
  /**
6
6
  * Geolocation service.
7
7
  * @module purecloud-platform-client-v2/api/GeolocationApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IdentityProviderApi {
5
5
  /**
6
6
  * IdentityProvider service.
7
7
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class InfrastructureAsCodeApi {
5
5
  /**
6
6
  * InfrastructureAsCode service.
7
7
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguagesApi {
5
5
  /**
6
6
  * Languages service.
7
7
  * @module purecloud-platform-client-v2/api/LanguagesApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LearningApi {
5
5
  /**
6
6
  * Learning service.
7
7
  * @module purecloud-platform-client-v2/api/LearningApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LicenseApi {
5
5
  /**
6
6
  * License service.
7
7
  * @module purecloud-platform-client-v2/api/LicenseApi
8
- * @version 161.0.0
8
+ * @version 162.0.0
9
9
  */
10
10
 
11
11
  /**