purecloud-platform-client-v2 249.0.0 → 250.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.
- package/README.md +34 -3
- package/dist/node/purecloud-platform-client-v2.js +20042 -5569
- package/dist/web-amd/purecloud-platform-client-v2.js +20042 -5569
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +11159 -5369
- package/dist/web-cjs/purecloud-platform-client-v2.js +11159 -5369
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +10600 -2242
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +26 -2
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +136 -40
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +130 -39
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +18 -6
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +29 -9
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +86 -26
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +917 -224
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +754 -226
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +36 -11
- package/src/purecloud-platform-client-v2/api/AuditApi.js +38 -12
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +302 -91
- package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/BillingApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +180 -53
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +11 -4
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +187 -56
- package/src/purecloud-platform-client-v2/api/ChatApi.js +223 -65
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +124 -37
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +165 -51
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1992 -578
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +22 -7
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +39 -12
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +4 -2
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +28 -9
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +35 -11
- package/src/purecloud-platform-client-v2/api/EventsApi.js +22 -7
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +700 -206
- package/src/purecloud-platform-client-v2/api/FaxApi.js +49 -15
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +42 -13
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +419 -125
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -7
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +29 -9
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +106 -32
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +103 -31
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +267 -77
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +20 -7
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +461 -139
- package/src/purecloud-platform-client-v2/api/IntentsApi.js +93 -28
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +872 -120
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +618 -185
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +221 -66
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +53 -16
- package/src/purecloud-platform-client-v2/api/LearningApi.js +199 -60
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +51 -16
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +45 -14
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +34 -11
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +84 -25
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +28 -9
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +72 -22
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +58 -18
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +21 -7
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +122 -36
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +297 -87
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1066 -312
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +162 -48
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/QualityApi.js +409 -121
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +351 -108
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +113 -34
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +964 -284
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +123 -39
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +50 -17
- package/src/purecloud-platform-client-v2/api/SearchApi.js +147 -44
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +87 -26
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +208 -67
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +389 -114
- package/src/purecloud-platform-client-v2/api/StationsApi.js +18 -6
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +13 -5
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +473 -138
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +55 -17
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +80 -24
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +751 -220
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/TokensApi.js +35 -11
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +78 -23
- package/src/purecloud-platform-client-v2/api/UsageApi.js +62 -19
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +27 -9
- package/src/purecloud-platform-client-v2/api/UsersApi.js +717 -228
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +52 -16
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +154 -46
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +126 -37
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +120 -36
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +36 -11
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +2475 -577
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class WebChatApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* WebChat service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,9 +24,13 @@ class WebChatApi {
|
|
|
24
24
|
* Delete a WebChat deployment
|
|
25
25
|
*
|
|
26
26
|
* @param {String} deploymentId Deployment Id
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
27
29
|
* @deprecated
|
|
28
30
|
*/
|
|
29
|
-
deleteWebchatDeployment(deploymentId) {
|
|
31
|
+
deleteWebchatDeployment(deploymentId, opts) {
|
|
32
|
+
opts = opts || {};
|
|
33
|
+
|
|
30
34
|
// verify the required parameter 'deploymentId' is set
|
|
31
35
|
if (deploymentId === undefined || deploymentId === null || deploymentId === '') {
|
|
32
36
|
throw 'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';
|
|
@@ -42,7 +46,8 @@ class WebChatApi {
|
|
|
42
46
|
null,
|
|
43
47
|
['PureCloud OAuth'],
|
|
44
48
|
['application/json'],
|
|
45
|
-
['application/json']
|
|
49
|
+
['application/json'],
|
|
50
|
+
opts['customHeaders']
|
|
46
51
|
);
|
|
47
52
|
}
|
|
48
53
|
|
|
@@ -51,9 +56,13 @@ class WebChatApi {
|
|
|
51
56
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
52
57
|
* @param {String} conversationId conversationId
|
|
53
58
|
* @param {String} memberId memberId
|
|
59
|
+
* @param {Object} opts Optional parameters
|
|
60
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
54
61
|
* @deprecated
|
|
55
62
|
*/
|
|
56
|
-
deleteWebchatGuestConversationMember(conversationId, memberId) {
|
|
63
|
+
deleteWebchatGuestConversationMember(conversationId, memberId, opts) {
|
|
64
|
+
opts = opts || {};
|
|
65
|
+
|
|
57
66
|
// verify the required parameter 'conversationId' is set
|
|
58
67
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
59
68
|
throw 'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';
|
|
@@ -73,16 +82,21 @@ class WebChatApi {
|
|
|
73
82
|
null,
|
|
74
83
|
['PureCloud OAuth'],
|
|
75
84
|
['application/json'],
|
|
76
|
-
['application/json']
|
|
85
|
+
['application/json'],
|
|
86
|
+
opts['customHeaders']
|
|
77
87
|
);
|
|
78
88
|
}
|
|
79
89
|
|
|
80
90
|
/**
|
|
81
91
|
* Remove WebChat deployment settings
|
|
82
92
|
* This endpoint is deprecated. Please see the article https://community.genesys.com/discussion/deprecation-acd-chat-v20-and-resulting-impact-to-apiv2webchatsettings.
|
|
93
|
+
* @param {Object} opts Optional parameters
|
|
94
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
83
95
|
* @deprecated
|
|
84
96
|
*/
|
|
85
|
-
deleteWebchatSettings() {
|
|
97
|
+
deleteWebchatSettings(opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
|
|
86
100
|
|
|
87
101
|
return this.apiClient.callApi(
|
|
88
102
|
'/api/v2/webchat/settings',
|
|
@@ -94,7 +108,8 @@ class WebChatApi {
|
|
|
94
108
|
null,
|
|
95
109
|
['PureCloud OAuth'],
|
|
96
110
|
['application/json'],
|
|
97
|
-
['application/json']
|
|
111
|
+
['application/json'],
|
|
112
|
+
opts['customHeaders']
|
|
98
113
|
);
|
|
99
114
|
}
|
|
100
115
|
|
|
@@ -102,9 +117,13 @@ class WebChatApi {
|
|
|
102
117
|
* Get a WebChat deployment
|
|
103
118
|
*
|
|
104
119
|
* @param {String} deploymentId Deployment Id
|
|
120
|
+
* @param {Object} opts Optional parameters
|
|
121
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
105
122
|
* @deprecated
|
|
106
123
|
*/
|
|
107
|
-
getWebchatDeployment(deploymentId) {
|
|
124
|
+
getWebchatDeployment(deploymentId, opts) {
|
|
125
|
+
opts = opts || {};
|
|
126
|
+
|
|
108
127
|
// verify the required parameter 'deploymentId' is set
|
|
109
128
|
if (deploymentId === undefined || deploymentId === null || deploymentId === '') {
|
|
110
129
|
throw 'Missing the required parameter "deploymentId" when calling getWebchatDeployment';
|
|
@@ -120,16 +139,21 @@ class WebChatApi {
|
|
|
120
139
|
null,
|
|
121
140
|
['PureCloud OAuth'],
|
|
122
141
|
['application/json'],
|
|
123
|
-
['application/json']
|
|
142
|
+
['application/json'],
|
|
143
|
+
opts['customHeaders']
|
|
124
144
|
);
|
|
125
145
|
}
|
|
126
146
|
|
|
127
147
|
/**
|
|
128
148
|
* List WebChat deployments
|
|
129
149
|
*
|
|
150
|
+
* @param {Object} opts Optional parameters
|
|
151
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
130
152
|
* @deprecated
|
|
131
153
|
*/
|
|
132
|
-
getWebchatDeployments() {
|
|
154
|
+
getWebchatDeployments(opts) {
|
|
155
|
+
opts = opts || {};
|
|
156
|
+
|
|
133
157
|
|
|
134
158
|
return this.apiClient.callApi(
|
|
135
159
|
'/api/v2/webchat/deployments',
|
|
@@ -141,7 +165,8 @@ class WebChatApi {
|
|
|
141
165
|
null,
|
|
142
166
|
['PureCloud OAuth'],
|
|
143
167
|
['application/json'],
|
|
144
|
-
['application/json']
|
|
168
|
+
['application/json'],
|
|
169
|
+
opts['customHeaders']
|
|
145
170
|
);
|
|
146
171
|
}
|
|
147
172
|
|
|
@@ -150,9 +175,13 @@ class WebChatApi {
|
|
|
150
175
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
151
176
|
* @param {String} conversationId conversationId
|
|
152
177
|
* @param {String} mediaRequestId mediaRequestId
|
|
178
|
+
* @param {Object} opts Optional parameters
|
|
179
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
153
180
|
* @deprecated
|
|
154
181
|
*/
|
|
155
|
-
getWebchatGuestConversationMediarequest(conversationId, mediaRequestId) {
|
|
182
|
+
getWebchatGuestConversationMediarequest(conversationId, mediaRequestId, opts) {
|
|
183
|
+
opts = opts || {};
|
|
184
|
+
|
|
156
185
|
// verify the required parameter 'conversationId' is set
|
|
157
186
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
158
187
|
throw 'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';
|
|
@@ -172,7 +201,8 @@ class WebChatApi {
|
|
|
172
201
|
null,
|
|
173
202
|
['PureCloud OAuth'],
|
|
174
203
|
['application/json'],
|
|
175
|
-
['application/json']
|
|
204
|
+
['application/json'],
|
|
205
|
+
opts['customHeaders']
|
|
176
206
|
);
|
|
177
207
|
}
|
|
178
208
|
|
|
@@ -180,9 +210,13 @@ class WebChatApi {
|
|
|
180
210
|
* Get all media requests to the guest in the conversation
|
|
181
211
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
182
212
|
* @param {String} conversationId conversationId
|
|
213
|
+
* @param {Object} opts Optional parameters
|
|
214
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
183
215
|
* @deprecated
|
|
184
216
|
*/
|
|
185
|
-
getWebchatGuestConversationMediarequests(conversationId) {
|
|
217
|
+
getWebchatGuestConversationMediarequests(conversationId, opts) {
|
|
218
|
+
opts = opts || {};
|
|
219
|
+
|
|
186
220
|
// verify the required parameter 'conversationId' is set
|
|
187
221
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
188
222
|
throw 'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';
|
|
@@ -198,7 +232,8 @@ class WebChatApi {
|
|
|
198
232
|
null,
|
|
199
233
|
['PureCloud OAuth'],
|
|
200
234
|
['application/json'],
|
|
201
|
-
['application/json']
|
|
235
|
+
['application/json'],
|
|
236
|
+
opts['customHeaders']
|
|
202
237
|
);
|
|
203
238
|
}
|
|
204
239
|
|
|
@@ -207,9 +242,13 @@ class WebChatApi {
|
|
|
207
242
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
208
243
|
* @param {String} conversationId conversationId
|
|
209
244
|
* @param {String} memberId memberId
|
|
245
|
+
* @param {Object} opts Optional parameters
|
|
246
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
210
247
|
* @deprecated
|
|
211
248
|
*/
|
|
212
|
-
getWebchatGuestConversationMember(conversationId, memberId) {
|
|
249
|
+
getWebchatGuestConversationMember(conversationId, memberId, opts) {
|
|
250
|
+
opts = opts || {};
|
|
251
|
+
|
|
213
252
|
// verify the required parameter 'conversationId' is set
|
|
214
253
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
215
254
|
throw 'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';
|
|
@@ -229,7 +268,8 @@ class WebChatApi {
|
|
|
229
268
|
null,
|
|
230
269
|
['PureCloud OAuth'],
|
|
231
270
|
['application/json'],
|
|
232
|
-
['application/json']
|
|
271
|
+
['application/json'],
|
|
272
|
+
opts['customHeaders']
|
|
233
273
|
);
|
|
234
274
|
}
|
|
235
275
|
|
|
@@ -241,6 +281,7 @@ class WebChatApi {
|
|
|
241
281
|
* @param {Number} opts.pageSize The number of entries to return per page, or omitted for the default. (default to 25)
|
|
242
282
|
* @param {Number} opts.pageNumber The page number to return, or omitted for the first page. (default to 1)
|
|
243
283
|
* @param {Boolean} opts.excludeDisconnectedMembers If true, the results will not contain members who have a DISCONNECTED state. (default to false)
|
|
284
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
244
285
|
* @deprecated
|
|
245
286
|
*/
|
|
246
287
|
getWebchatGuestConversationMembers(conversationId, opts) {
|
|
@@ -261,7 +302,8 @@ class WebChatApi {
|
|
|
261
302
|
null,
|
|
262
303
|
['PureCloud OAuth'],
|
|
263
304
|
['application/json'],
|
|
264
|
-
['application/json']
|
|
305
|
+
['application/json'],
|
|
306
|
+
opts['customHeaders']
|
|
265
307
|
);
|
|
266
308
|
}
|
|
267
309
|
|
|
@@ -270,9 +312,13 @@ class WebChatApi {
|
|
|
270
312
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
271
313
|
* @param {String} conversationId conversationId
|
|
272
314
|
* @param {String} messageId messageId
|
|
315
|
+
* @param {Object} opts Optional parameters
|
|
316
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
273
317
|
* @deprecated
|
|
274
318
|
*/
|
|
275
|
-
getWebchatGuestConversationMessage(conversationId, messageId) {
|
|
319
|
+
getWebchatGuestConversationMessage(conversationId, messageId, opts) {
|
|
320
|
+
opts = opts || {};
|
|
321
|
+
|
|
276
322
|
// verify the required parameter 'conversationId' is set
|
|
277
323
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
278
324
|
throw 'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';
|
|
@@ -292,7 +338,8 @@ class WebChatApi {
|
|
|
292
338
|
null,
|
|
293
339
|
['PureCloud OAuth'],
|
|
294
340
|
['application/json'],
|
|
295
|
-
['application/json']
|
|
341
|
+
['application/json'],
|
|
342
|
+
opts['customHeaders']
|
|
296
343
|
);
|
|
297
344
|
}
|
|
298
345
|
|
|
@@ -305,6 +352,7 @@ class WebChatApi {
|
|
|
305
352
|
* @param {String} opts.before If available, get the messages chronologically before the id of this message
|
|
306
353
|
* @param {Object} opts.sortOrder Sort order (default to ascending)
|
|
307
354
|
* @param {Number} opts.maxResults Limit the returned number of messages, up to a maximum of 100 (default to 100)
|
|
355
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
308
356
|
* @deprecated
|
|
309
357
|
*/
|
|
310
358
|
getWebchatGuestConversationMessages(conversationId, opts) {
|
|
@@ -325,16 +373,21 @@ class WebChatApi {
|
|
|
325
373
|
null,
|
|
326
374
|
['PureCloud OAuth'],
|
|
327
375
|
['application/json'],
|
|
328
|
-
['application/json']
|
|
376
|
+
['application/json'],
|
|
377
|
+
opts['customHeaders']
|
|
329
378
|
);
|
|
330
379
|
}
|
|
331
380
|
|
|
332
381
|
/**
|
|
333
382
|
* Get WebChat deployment settings
|
|
334
383
|
* This endpoint is deprecated. Please see the article https://community.genesys.com/discussion/deprecation-acd-chat-v20-and-resulting-impact-to-apiv2webchatsettings.
|
|
384
|
+
* @param {Object} opts Optional parameters
|
|
385
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
335
386
|
* @deprecated
|
|
336
387
|
*/
|
|
337
|
-
getWebchatSettings() {
|
|
388
|
+
getWebchatSettings(opts) {
|
|
389
|
+
opts = opts || {};
|
|
390
|
+
|
|
338
391
|
|
|
339
392
|
return this.apiClient.callApi(
|
|
340
393
|
'/api/v2/webchat/settings',
|
|
@@ -346,7 +399,8 @@ class WebChatApi {
|
|
|
346
399
|
null,
|
|
347
400
|
['PureCloud OAuth'],
|
|
348
401
|
['application/json'],
|
|
349
|
-
['application/json']
|
|
402
|
+
['application/json'],
|
|
403
|
+
opts['customHeaders']
|
|
350
404
|
);
|
|
351
405
|
}
|
|
352
406
|
|
|
@@ -356,9 +410,13 @@ class WebChatApi {
|
|
|
356
410
|
* @param {String} conversationId conversationId
|
|
357
411
|
* @param {String} mediaRequestId mediaRequestId
|
|
358
412
|
* @param {Object} body Request
|
|
413
|
+
* @param {Object} opts Optional parameters
|
|
414
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
359
415
|
* @deprecated
|
|
360
416
|
*/
|
|
361
|
-
patchWebchatGuestConversationMediarequest(conversationId, mediaRequestId, body) {
|
|
417
|
+
patchWebchatGuestConversationMediarequest(conversationId, mediaRequestId, body, opts) {
|
|
418
|
+
opts = opts || {};
|
|
419
|
+
|
|
362
420
|
// verify the required parameter 'conversationId' is set
|
|
363
421
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
364
422
|
throw 'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';
|
|
@@ -382,7 +440,8 @@ class WebChatApi {
|
|
|
382
440
|
body,
|
|
383
441
|
['PureCloud OAuth'],
|
|
384
442
|
['application/json'],
|
|
385
|
-
['application/json']
|
|
443
|
+
['application/json'],
|
|
444
|
+
opts['customHeaders']
|
|
386
445
|
);
|
|
387
446
|
}
|
|
388
447
|
|
|
@@ -390,9 +449,13 @@ class WebChatApi {
|
|
|
390
449
|
* Create WebChat deployment
|
|
391
450
|
*
|
|
392
451
|
* @param {Object} body Deployment
|
|
452
|
+
* @param {Object} opts Optional parameters
|
|
453
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
393
454
|
* @deprecated
|
|
394
455
|
*/
|
|
395
|
-
postWebchatDeployments(body) {
|
|
456
|
+
postWebchatDeployments(body, opts) {
|
|
457
|
+
opts = opts || {};
|
|
458
|
+
|
|
396
459
|
// verify the required parameter 'body' is set
|
|
397
460
|
if (body === undefined || body === null) {
|
|
398
461
|
throw 'Missing the required parameter "body" when calling postWebchatDeployments';
|
|
@@ -408,7 +471,8 @@ class WebChatApi {
|
|
|
408
471
|
body,
|
|
409
472
|
['PureCloud OAuth'],
|
|
410
473
|
['application/json'],
|
|
411
|
-
['application/json']
|
|
474
|
+
['application/json'],
|
|
475
|
+
opts['customHeaders']
|
|
412
476
|
);
|
|
413
477
|
}
|
|
414
478
|
|
|
@@ -418,9 +482,13 @@ class WebChatApi {
|
|
|
418
482
|
* @param {String} conversationId conversationId
|
|
419
483
|
* @param {String} memberId memberId
|
|
420
484
|
* @param {Object} body Message
|
|
485
|
+
* @param {Object} opts Optional parameters
|
|
486
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
421
487
|
* @deprecated
|
|
422
488
|
*/
|
|
423
|
-
postWebchatGuestConversationMemberMessages(conversationId, memberId, body) {
|
|
489
|
+
postWebchatGuestConversationMemberMessages(conversationId, memberId, body, opts) {
|
|
490
|
+
opts = opts || {};
|
|
491
|
+
|
|
424
492
|
// verify the required parameter 'conversationId' is set
|
|
425
493
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
426
494
|
throw 'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';
|
|
@@ -444,7 +512,8 @@ class WebChatApi {
|
|
|
444
512
|
body,
|
|
445
513
|
['PureCloud OAuth'],
|
|
446
514
|
['application/json'],
|
|
447
|
-
['application/json']
|
|
515
|
+
['application/json'],
|
|
516
|
+
opts['customHeaders']
|
|
448
517
|
);
|
|
449
518
|
}
|
|
450
519
|
|
|
@@ -453,9 +522,13 @@ class WebChatApi {
|
|
|
453
522
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
454
523
|
* @param {String} conversationId conversationId
|
|
455
524
|
* @param {String} memberId memberId
|
|
525
|
+
* @param {Object} opts Optional parameters
|
|
526
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
456
527
|
* @deprecated
|
|
457
528
|
*/
|
|
458
|
-
postWebchatGuestConversationMemberTyping(conversationId, memberId) {
|
|
529
|
+
postWebchatGuestConversationMemberTyping(conversationId, memberId, opts) {
|
|
530
|
+
opts = opts || {};
|
|
531
|
+
|
|
459
532
|
// verify the required parameter 'conversationId' is set
|
|
460
533
|
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
461
534
|
throw 'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';
|
|
@@ -475,7 +548,8 @@ class WebChatApi {
|
|
|
475
548
|
null,
|
|
476
549
|
['PureCloud OAuth'],
|
|
477
550
|
['application/json'],
|
|
478
|
-
['application/json']
|
|
551
|
+
['application/json'],
|
|
552
|
+
opts['customHeaders']
|
|
479
553
|
);
|
|
480
554
|
}
|
|
481
555
|
|
|
@@ -483,9 +557,13 @@ class WebChatApi {
|
|
|
483
557
|
* Create an ACD chat conversation from an external customer.
|
|
484
558
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/. This endpoint will create a new ACD Chat conversation under the specified Chat Deployment. The conversation will begin with a guest member in it (with a role=CUSTOMER) according to the customer information that is supplied. If the guest member is authenticated, the memberAuthToken field should include his JWT as generated by the POST /api/v2/signeddata resource; if the guest member is anonymous (and the Deployment permits it) this field can be omitted. The returned data includes the IDs of the conversation created, along with a newly-create JWT token that you can supply to all future endpoints as authentication to perform operations against that conversation. After successfully creating a conversation, you should connect a websocket to the event stream named in the eventStreamUri field of the response; the conversation is not routed until the event stream is attached.
|
|
485
559
|
* @param {Object} body CreateConversationRequest
|
|
560
|
+
* @param {Object} opts Optional parameters
|
|
561
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
486
562
|
* @deprecated
|
|
487
563
|
*/
|
|
488
|
-
postWebchatGuestConversations(body) {
|
|
564
|
+
postWebchatGuestConversations(body, opts) {
|
|
565
|
+
opts = opts || {};
|
|
566
|
+
|
|
489
567
|
// verify the required parameter 'body' is set
|
|
490
568
|
if (body === undefined || body === null) {
|
|
491
569
|
throw 'Missing the required parameter "body" when calling postWebchatGuestConversations';
|
|
@@ -501,7 +579,8 @@ class WebChatApi {
|
|
|
501
579
|
body,
|
|
502
580
|
['PureCloud OAuth'],
|
|
503
581
|
['application/json'],
|
|
504
|
-
['application/json']
|
|
582
|
+
['application/json'],
|
|
583
|
+
opts['customHeaders']
|
|
505
584
|
);
|
|
506
585
|
}
|
|
507
586
|
|
|
@@ -510,9 +589,13 @@ class WebChatApi {
|
|
|
510
589
|
*
|
|
511
590
|
* @param {String} deploymentId Deployment Id
|
|
512
591
|
* @param {Object} body Deployment
|
|
592
|
+
* @param {Object} opts Optional parameters
|
|
593
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
513
594
|
* @deprecated
|
|
514
595
|
*/
|
|
515
|
-
putWebchatDeployment(deploymentId, body) {
|
|
596
|
+
putWebchatDeployment(deploymentId, body, opts) {
|
|
597
|
+
opts = opts || {};
|
|
598
|
+
|
|
516
599
|
// verify the required parameter 'deploymentId' is set
|
|
517
600
|
if (deploymentId === undefined || deploymentId === null || deploymentId === '') {
|
|
518
601
|
throw 'Missing the required parameter "deploymentId" when calling putWebchatDeployment';
|
|
@@ -532,7 +615,8 @@ class WebChatApi {
|
|
|
532
615
|
body,
|
|
533
616
|
['PureCloud OAuth'],
|
|
534
617
|
['application/json'],
|
|
535
|
-
['application/json']
|
|
618
|
+
['application/json'],
|
|
619
|
+
opts['customHeaders']
|
|
536
620
|
);
|
|
537
621
|
}
|
|
538
622
|
|
|
@@ -540,9 +624,13 @@ class WebChatApi {
|
|
|
540
624
|
* Update WebChat deployment settings
|
|
541
625
|
* This endpoint is deprecated. Please see the article https://community.genesys.com/discussion/deprecation-acd-chat-v20-and-resulting-impact-to-apiv2webchatsettings.
|
|
542
626
|
* @param {Object} body webChatSettings
|
|
627
|
+
* @param {Object} opts Optional parameters
|
|
628
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
543
629
|
* @deprecated
|
|
544
630
|
*/
|
|
545
|
-
putWebchatSettings(body) {
|
|
631
|
+
putWebchatSettings(body, opts) {
|
|
632
|
+
opts = opts || {};
|
|
633
|
+
|
|
546
634
|
// verify the required parameter 'body' is set
|
|
547
635
|
if (body === undefined || body === null) {
|
|
548
636
|
throw 'Missing the required parameter "body" when calling putWebchatSettings';
|
|
@@ -558,7 +646,8 @@ class WebChatApi {
|
|
|
558
646
|
body,
|
|
559
647
|
['PureCloud OAuth'],
|
|
560
648
|
['application/json'],
|
|
561
|
-
['application/json']
|
|
649
|
+
['application/json'],
|
|
650
|
+
opts['customHeaders']
|
|
562
651
|
);
|
|
563
652
|
}
|
|
564
653
|
|