purecloud-platform-client-v2 161.0.1 → 163.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +13 -14
  2. package/dist/node/purecloud-platform-client-v2.js +164 -94
  3. package/dist/web-amd/purecloud-platform-client-v2.js +164 -94
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +164 -94
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +479 -6655
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +38 -8
  9. package/package.json +2 -3
  10. package/src/purecloud-platform-client-v2/ApiClient.js +12 -17
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +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
@@ -6,8 +6,8 @@ declare module 'purecloud-platform-client-v2' {
6
6
 
7
7
  declare class ApiClientClass {
8
8
  instance: ApiClientClass;
9
- proxy: ProxyConfig;
10
9
  config: Configuration;
10
+ private proxyAgent: any;
11
11
 
12
12
  callApi(path: string, httpMethod: string, pathParams: { [key: string]: string; }, queryParams: { [key: string]: object; }, headerParams: { [key: string]: object; }, formParams: { [key: string]: object; }, bodyParam: any, authNames: Array<string>, contentTypes: Array<string>, accepts: Array<string>): Promise<any>;
13
13
  loginClientCredentialsGrant(clientId: string, clientSecret: string): Promise<AuthData>;
@@ -20,6 +20,7 @@ declare class ApiClientClass {
20
20
  setPersistSettings(doPersist: boolean, prefix?: string): void;
21
21
  setReturnExtendedResponses(returnExtended: boolean): void;
22
22
  setStorageKey(storageKey: string): void;
23
+ setProxyAgent(agent: any): void;
23
24
  }
24
25
 
25
26
  declare class LoginImplicitGrantOptions {
@@ -710,6 +711,7 @@ declare namespace AuthorizationApi {
710
711
  "query"?: string;
711
712
  }
712
713
  export interface getAuthorizationRoleOptions {
714
+ "userCount"?: boolean;
713
715
  "expand"?: Array<string>;
714
716
  }
715
717
  export interface getAuthorizationRoleSubjectgrantsOptions {
@@ -770,8 +772,11 @@ declare namespace BillingApi {
770
772
 
771
773
  declare class ChatApi {
772
774
  getChatSettings(): Promise<Models.ChatSettings>;
775
+ getChatsSettings(): Promise<Models.ChatSettings>;
773
776
  patchChatSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
774
- putChatSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
777
+ patchChatsSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
778
+ putChatSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
779
+ putChatsSettings(body: Models.ChatSettings): Promise<Models.ChatSettings>;
775
780
  }
776
781
 
777
782
  declare namespace ChatApi {
@@ -3904,7 +3909,7 @@ declare class RoutingApi {
3904
3909
  getRoutingEmailOutboundDomain(domainId: string): Promise<Models.OutboundDomain>;
3905
3910
  getRoutingEmailOutboundDomainActivation(domainId: string): Promise<Models.EmailOutboundDomainResult>;
3906
3911
  getRoutingEmailOutboundDomainSearch(domainId: string): Promise<Models.OutboundDomain>;
3907
- getRoutingEmailOutboundDomains(): Promise<Models.OutboundDomainEntityListing>;
3912
+ getRoutingEmailOutboundDomains(opts?: RoutingApi.getRoutingEmailOutboundDomainsOptions): Promise<Models.OutboundDomainEntityListing>;
3908
3913
  getRoutingEmailSetup(): Promise<Models.EmailSetup>;
3909
3914
  getRoutingLanguage(languageId: string): Promise<Models.Language>;
3910
3915
  getRoutingLanguages(opts?: RoutingApi.getRoutingLanguagesOptions): Promise<Models.LanguageEntityListing>;
@@ -4023,6 +4028,10 @@ declare namespace RoutingApi {
4023
4028
  "pageSize"?: number;
4024
4029
  "pageNumber"?: number;
4025
4030
  "excludeStatus"?: boolean;
4031
+ "filter"?: string;
4032
+ }
4033
+ export interface getRoutingEmailOutboundDomainsOptions {
4034
+ "filter"?: string;
4026
4035
  }
4027
4036
  export interface getRoutingLanguagesOptions {
4028
4037
  "pageSize"?: number;
@@ -9557,6 +9566,13 @@ declare namespace Models {
9557
9566
  "callbackScheduledTime"?: string;
9558
9567
  }
9559
9568
 
9569
+ export interface CallbackMediaSettings {
9570
+ "enableAutoAnswer"?: boolean;
9571
+ "alertingTimeoutSeconds"?: number;
9572
+ "serviceLevel"?: Models.ServiceLevel;
9573
+ "subTypeSettings"?: { [key: string]: Models.BaseMediaSettings; };
9574
+ }
9575
+
9560
9576
  export interface Campaign {
9561
9577
  "id"?: string;
9562
9578
  "name": string;
@@ -13637,7 +13653,7 @@ declare namespace Models {
13637
13653
  "memberCount"?: number;
13638
13654
  "userMemberCount"?: number;
13639
13655
  "joinedMemberCount"?: number;
13640
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
13656
+ "mediaSettings"?: Models.QueueMediaSettings;
13641
13657
  "routingRules"?: Array<Models.RoutingRule>;
13642
13658
  "bullseye"?: Models.Bullseye;
13643
13659
  "acwSettings"?: Models.AcwSettings;
@@ -18041,6 +18057,7 @@ declare namespace Models {
18041
18057
  "name"?: string;
18042
18058
  "uploadDestinationUri"?: string;
18043
18059
  "uploadMethodType"?: string;
18060
+ "headers"?: { [key: string]: string; };
18044
18061
  "selfUri"?: string;
18045
18062
  }
18046
18063
 
@@ -22578,7 +22595,7 @@ declare namespace Models {
22578
22595
  "waveformData"?: Array<number>;
22579
22596
  }
22580
22597
 
22581
- export interface MediaSetting {
22598
+ export interface MediaSettings {
22582
22599
  "enableAutoAnswer"?: boolean;
22583
22600
  "alertingTimeoutSeconds"?: number;
22584
22601
  "serviceLevel"?: Models.ServiceLevel;
@@ -25805,7 +25822,7 @@ declare namespace Models {
25805
25822
  "memberCount"?: number;
25806
25823
  "userMemberCount"?: number;
25807
25824
  "joinedMemberCount"?: number;
25808
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
25825
+ "mediaSettings"?: Models.QueueMediaSettings;
25809
25826
  "routingRules"?: Array<Models.RoutingRule>;
25810
25827
  "bullseye"?: Models.Bullseye;
25811
25828
  "acwSettings"?: Models.AcwSettings;
@@ -28168,6 +28185,14 @@ declare namespace Models {
28168
28185
  "pageCount"?: number;
28169
28186
  }
28170
28187
 
28188
+ export interface QueueMediaSettings {
28189
+ "call"?: Models.MediaSettings;
28190
+ "callback"?: Models.CallbackMediaSettings;
28191
+ "chat"?: Models.MediaSettings;
28192
+ "email"?: Models.MediaSettings;
28193
+ "message"?: Models.MediaSettings;
28194
+ }
28195
+
28171
28196
  export interface QueueMember {
28172
28197
  "id"?: string;
28173
28198
  "name"?: string;
@@ -28258,7 +28283,7 @@ declare namespace Models {
28258
28283
  "memberCount"?: number;
28259
28284
  "userMemberCount"?: number;
28260
28285
  "joinedMemberCount"?: number;
28261
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
28286
+ "mediaSettings"?: Models.QueueMediaSettings;
28262
28287
  "routingRules"?: Array<Models.RoutingRule>;
28263
28288
  "bullseye"?: Models.Bullseye;
28264
28289
  "acwSettings"?: Models.AcwSettings;
@@ -30276,6 +30301,11 @@ declare namespace Models {
30276
30301
  "selfUri"?: string;
30277
30302
  }
30278
30303
 
30304
+ export interface ServiceGoalTemplateImpactOverride {
30305
+ "enabled": boolean;
30306
+ "impact": Models.WfmServiceGoalImpactSettings;
30307
+ }
30308
+
30279
30309
  export interface ServiceGoalTemplateList {
30280
30310
  "entities"?: Array<Models.ServiceGoalTemplate>;
30281
30311
  }
@@ -33788,7 +33818,7 @@ declare namespace Models {
33788
33818
  "memberCount"?: number;
33789
33819
  "userMemberCount"?: number;
33790
33820
  "joinedMemberCount"?: number;
33791
- "mediaSettings"?: { [key: string]: Models.MediaSetting; };
33821
+ "mediaSettings"?: Models.QueueMediaSettings;
33792
33822
  "routingRules"?: Array<Models.RoutingRule>;
33793
33823
  "bullseye"?: Models.Bullseye;
33794
33824
  "acwSettings"?: Models.AcwSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "161.0.1",
3
+ "version": "163.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",
@@ -33,8 +33,7 @@
33
33
  "axios": "^0.27.2",
34
34
  "configparser": "^0.3.9",
35
35
  "qs": "^6.10.3",
36
- "winston": "^3.6.0",
37
- "hpagent": "^1.2.0"
36
+ "winston": "^3.6.0"
38
37
  },
39
38
  "devDependencies": {
40
39
  "mocha": "~9.2.0",
@@ -1,11 +1,10 @@
1
1
  import { default as axios } from 'axios';
2
2
  import Configuration from './configuration.js';
3
3
  import { default as qs } from 'qs';
4
- const { HttpsProxyAgent } = require('hpagent')
5
4
 
6
5
  /**
7
6
  * @module purecloud-platform-client-v2/ApiClient
8
- * @version 161.0.1
7
+ * @version 163.0.0
9
8
  */
10
9
  class ApiClient {
11
10
  /**
@@ -277,18 +276,12 @@ class ApiClient {
277
276
  const headers = {
278
277
  'Authorization': `Basic ${authHeader}`
279
278
  }
280
- let httpsAgent;
281
- if (this.proxy !== undefined){
282
- httpsAgent = new HttpsProxyAgent({
283
- proxy : `${this.proxy.protocol}://${this.proxy.host}:${this.proxy.port}`
284
- });
285
- }
286
279
  axios({
287
280
  method: `POST`,
288
281
  url: `https://login.${this.config.environment}/oauth/token`,
289
282
  headers: headers,
290
283
  data: 'grant_type=client_credentials',
291
- httpsAgent: httpsAgent
284
+ httpsAgent: this.proxyAgent
292
285
  })
293
286
  .then((response) => {
294
287
  // Logging
@@ -965,6 +958,14 @@ class ApiClient {
965
958
  });
966
959
  }
967
960
 
961
+ /**
962
+ * @description Sets the proxy agent axios will use for requests
963
+ * @param {any} agent - The proxy agent
964
+ */
965
+ setProxyAgent(agent) {
966
+ this.proxyAgent = agent
967
+ }
968
+
968
969
  /**
969
970
  * Invokes the REST service using the supplied settings and parameters.
970
971
  * @param {String} path The base URL to invoke.
@@ -985,16 +986,10 @@ class ApiClient {
985
986
  sendRequest(this);
986
987
  function sendRequest(that) {
987
988
  var url = that.buildUrl(path, pathParams);
988
- let httpsAgent;
989
- if (that.proxy !== undefined){
990
- httpsAgent = new HttpsProxyAgent({
991
- proxy : `${that.proxy.protocol}://${that.proxy.host}:${that.proxy.port}`
992
- });
993
- }
994
989
  var request = {
995
990
  method: httpMethod,
996
- url: url,
997
- httpsAgent: httpsAgent,
991
+ url: url,
992
+ httpsAgent: that.proxyAgent,
998
993
  timeout: that.timeout,
999
994
  params: that.serialize(queryParams)
1000
995
  };
@@ -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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.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.1
8
+ * @version 163.0.0
9
9
  */
10
10
 
11
11
  /**