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 VoicemailApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Voicemail service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,8 +24,12 @@ class VoicemailApi {
|
|
|
24
24
|
* Delete a voicemail message.
|
|
25
25
|
* A user voicemail can only be deleted by its associated user. A group voicemail can only be deleted by a user that is a member of the group. A queue voicemail can only be deleted by a user with the acd voicemail delete permission.
|
|
26
26
|
* @param {String} messageId Message ID
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
27
29
|
*/
|
|
28
|
-
deleteVoicemailMessage(messageId) {
|
|
30
|
+
deleteVoicemailMessage(messageId, opts) {
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
|
|
29
33
|
// verify the required parameter 'messageId' is set
|
|
30
34
|
if (messageId === undefined || messageId === null || messageId === '') {
|
|
31
35
|
throw 'Missing the required parameter "messageId" when calling deleteVoicemailMessage';
|
|
@@ -41,15 +45,20 @@ class VoicemailApi {
|
|
|
41
45
|
null,
|
|
42
46
|
['PureCloud OAuth'],
|
|
43
47
|
['application/json'],
|
|
44
|
-
['application/json']
|
|
48
|
+
['application/json'],
|
|
49
|
+
opts['customHeaders']
|
|
45
50
|
);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
/**
|
|
49
54
|
* Delete all voicemail messages
|
|
50
55
|
*
|
|
56
|
+
* @param {Object} opts Optional parameters
|
|
57
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
51
58
|
*/
|
|
52
|
-
deleteVoicemailMessages() {
|
|
59
|
+
deleteVoicemailMessages(opts) {
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
|
|
53
62
|
|
|
54
63
|
return this.apiClient.callApi(
|
|
55
64
|
'/api/v2/voicemail/messages',
|
|
@@ -61,7 +70,8 @@ class VoicemailApi {
|
|
|
61
70
|
null,
|
|
62
71
|
['PureCloud OAuth'],
|
|
63
72
|
['application/json'],
|
|
64
|
-
['application/json']
|
|
73
|
+
['application/json'],
|
|
74
|
+
opts['customHeaders']
|
|
65
75
|
);
|
|
66
76
|
}
|
|
67
77
|
|
|
@@ -69,8 +79,12 @@ class VoicemailApi {
|
|
|
69
79
|
* Get the group's mailbox information
|
|
70
80
|
*
|
|
71
81
|
* @param {String} groupId groupId
|
|
82
|
+
* @param {Object} opts Optional parameters
|
|
83
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
72
84
|
*/
|
|
73
|
-
getVoicemailGroupMailbox(groupId) {
|
|
85
|
+
getVoicemailGroupMailbox(groupId, opts) {
|
|
86
|
+
opts = opts || {};
|
|
87
|
+
|
|
74
88
|
// verify the required parameter 'groupId' is set
|
|
75
89
|
if (groupId === undefined || groupId === null || groupId === '') {
|
|
76
90
|
throw 'Missing the required parameter "groupId" when calling getVoicemailGroupMailbox';
|
|
@@ -86,7 +100,8 @@ class VoicemailApi {
|
|
|
86
100
|
null,
|
|
87
101
|
['PureCloud OAuth'],
|
|
88
102
|
['application/json'],
|
|
89
|
-
['application/json']
|
|
103
|
+
['application/json'],
|
|
104
|
+
opts['customHeaders']
|
|
90
105
|
);
|
|
91
106
|
}
|
|
92
107
|
|
|
@@ -97,6 +112,7 @@ class VoicemailApi {
|
|
|
97
112
|
* @param {Object} opts Optional parameters
|
|
98
113
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
99
114
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
115
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
100
116
|
*/
|
|
101
117
|
getVoicemailGroupMessages(groupId, opts) {
|
|
102
118
|
opts = opts || {};
|
|
@@ -116,7 +132,8 @@ class VoicemailApi {
|
|
|
116
132
|
null,
|
|
117
133
|
['PureCloud OAuth'],
|
|
118
134
|
['application/json'],
|
|
119
|
-
['application/json']
|
|
135
|
+
['application/json'],
|
|
136
|
+
opts['customHeaders']
|
|
120
137
|
);
|
|
121
138
|
}
|
|
122
139
|
|
|
@@ -124,8 +141,12 @@ class VoicemailApi {
|
|
|
124
141
|
* Get a group's voicemail policy
|
|
125
142
|
*
|
|
126
143
|
* @param {String} groupId Group ID
|
|
144
|
+
* @param {Object} opts Optional parameters
|
|
145
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
127
146
|
*/
|
|
128
|
-
getVoicemailGroupPolicy(groupId) {
|
|
147
|
+
getVoicemailGroupPolicy(groupId, opts) {
|
|
148
|
+
opts = opts || {};
|
|
149
|
+
|
|
129
150
|
// verify the required parameter 'groupId' is set
|
|
130
151
|
if (groupId === undefined || groupId === null || groupId === '') {
|
|
131
152
|
throw 'Missing the required parameter "groupId" when calling getVoicemailGroupPolicy';
|
|
@@ -141,15 +162,20 @@ class VoicemailApi {
|
|
|
141
162
|
null,
|
|
142
163
|
['PureCloud OAuth'],
|
|
143
164
|
['application/json'],
|
|
144
|
-
['application/json']
|
|
165
|
+
['application/json'],
|
|
166
|
+
opts['customHeaders']
|
|
145
167
|
);
|
|
146
168
|
}
|
|
147
169
|
|
|
148
170
|
/**
|
|
149
171
|
* Get the current user's mailbox information
|
|
150
172
|
*
|
|
173
|
+
* @param {Object} opts Optional parameters
|
|
174
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
151
175
|
*/
|
|
152
|
-
getVoicemailMailbox() {
|
|
176
|
+
getVoicemailMailbox(opts) {
|
|
177
|
+
opts = opts || {};
|
|
178
|
+
|
|
153
179
|
|
|
154
180
|
return this.apiClient.callApi(
|
|
155
181
|
'/api/v2/voicemail/mailbox',
|
|
@@ -161,15 +187,20 @@ class VoicemailApi {
|
|
|
161
187
|
null,
|
|
162
188
|
['PureCloud OAuth'],
|
|
163
189
|
['application/json'],
|
|
164
|
-
['application/json']
|
|
190
|
+
['application/json'],
|
|
191
|
+
opts['customHeaders']
|
|
165
192
|
);
|
|
166
193
|
}
|
|
167
194
|
|
|
168
195
|
/**
|
|
169
196
|
* Get the current user's mailbox information
|
|
170
197
|
*
|
|
198
|
+
* @param {Object} opts Optional parameters
|
|
199
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
171
200
|
*/
|
|
172
|
-
getVoicemailMeMailbox() {
|
|
201
|
+
getVoicemailMeMailbox(opts) {
|
|
202
|
+
opts = opts || {};
|
|
203
|
+
|
|
173
204
|
|
|
174
205
|
return this.apiClient.callApi(
|
|
175
206
|
'/api/v2/voicemail/me/mailbox',
|
|
@@ -181,7 +212,8 @@ class VoicemailApi {
|
|
|
181
212
|
null,
|
|
182
213
|
['PureCloud OAuth'],
|
|
183
214
|
['application/json'],
|
|
184
|
-
['application/json']
|
|
215
|
+
['application/json'],
|
|
216
|
+
opts['customHeaders']
|
|
185
217
|
);
|
|
186
218
|
}
|
|
187
219
|
|
|
@@ -191,6 +223,7 @@ class VoicemailApi {
|
|
|
191
223
|
* @param {Object} opts Optional parameters
|
|
192
224
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
193
225
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
226
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
194
227
|
*/
|
|
195
228
|
getVoicemailMeMessages(opts) {
|
|
196
229
|
opts = opts || {};
|
|
@@ -206,15 +239,20 @@ class VoicemailApi {
|
|
|
206
239
|
null,
|
|
207
240
|
['PureCloud OAuth'],
|
|
208
241
|
['application/json'],
|
|
209
|
-
['application/json']
|
|
242
|
+
['application/json'],
|
|
243
|
+
opts['customHeaders']
|
|
210
244
|
);
|
|
211
245
|
}
|
|
212
246
|
|
|
213
247
|
/**
|
|
214
248
|
* Get the current user's voicemail policy
|
|
215
249
|
*
|
|
250
|
+
* @param {Object} opts Optional parameters
|
|
251
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
216
252
|
*/
|
|
217
|
-
getVoicemailMePolicy() {
|
|
253
|
+
getVoicemailMePolicy(opts) {
|
|
254
|
+
opts = opts || {};
|
|
255
|
+
|
|
218
256
|
|
|
219
257
|
return this.apiClient.callApi(
|
|
220
258
|
'/api/v2/voicemail/me/policy',
|
|
@@ -226,7 +264,8 @@ class VoicemailApi {
|
|
|
226
264
|
null,
|
|
227
265
|
['PureCloud OAuth'],
|
|
228
266
|
['application/json'],
|
|
229
|
-
['application/json']
|
|
267
|
+
['application/json'],
|
|
268
|
+
opts['customHeaders']
|
|
230
269
|
);
|
|
231
270
|
}
|
|
232
271
|
|
|
@@ -236,6 +275,7 @@ class VoicemailApi {
|
|
|
236
275
|
* @param {String} messageId Message ID
|
|
237
276
|
* @param {Object} opts Optional parameters
|
|
238
277
|
* @param {Array.<String>} opts.expand If the caller is a known user, which fields, if any, to expand
|
|
278
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
239
279
|
*/
|
|
240
280
|
getVoicemailMessage(messageId, opts) {
|
|
241
281
|
opts = opts || {};
|
|
@@ -255,7 +295,8 @@ class VoicemailApi {
|
|
|
255
295
|
null,
|
|
256
296
|
['PureCloud OAuth'],
|
|
257
297
|
['application/json'],
|
|
258
|
-
['application/json']
|
|
298
|
+
['application/json'],
|
|
299
|
+
opts['customHeaders']
|
|
259
300
|
);
|
|
260
301
|
}
|
|
261
302
|
|
|
@@ -265,6 +306,7 @@ class VoicemailApi {
|
|
|
265
306
|
* @param {String} messageId Message ID
|
|
266
307
|
* @param {Object} opts Optional parameters
|
|
267
308
|
* @param {Object} opts.formatId The desired media format. (default to WEBM)
|
|
309
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
268
310
|
*/
|
|
269
311
|
getVoicemailMessageMedia(messageId, opts) {
|
|
270
312
|
opts = opts || {};
|
|
@@ -284,7 +326,8 @@ class VoicemailApi {
|
|
|
284
326
|
null,
|
|
285
327
|
['PureCloud OAuth'],
|
|
286
328
|
['application/json'],
|
|
287
|
-
['application/json']
|
|
329
|
+
['application/json'],
|
|
330
|
+
opts['customHeaders']
|
|
288
331
|
);
|
|
289
332
|
}
|
|
290
333
|
|
|
@@ -294,6 +337,7 @@ class VoicemailApi {
|
|
|
294
337
|
* @param {Object} opts Optional parameters
|
|
295
338
|
* @param {String} opts.ids An optional comma separated list of VoicemailMessage ids
|
|
296
339
|
* @param {Array.<String>} opts.expand If the caller is a known user, which fields, if any, to expand
|
|
340
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
297
341
|
*/
|
|
298
342
|
getVoicemailMessages(opts) {
|
|
299
343
|
opts = opts || {};
|
|
@@ -309,15 +353,20 @@ class VoicemailApi {
|
|
|
309
353
|
null,
|
|
310
354
|
['PureCloud OAuth'],
|
|
311
355
|
['application/json'],
|
|
312
|
-
['application/json']
|
|
356
|
+
['application/json'],
|
|
357
|
+
opts['customHeaders']
|
|
313
358
|
);
|
|
314
359
|
}
|
|
315
360
|
|
|
316
361
|
/**
|
|
317
362
|
* Get a policy
|
|
318
363
|
*
|
|
364
|
+
* @param {Object} opts Optional parameters
|
|
365
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
319
366
|
*/
|
|
320
|
-
getVoicemailPolicy() {
|
|
367
|
+
getVoicemailPolicy(opts) {
|
|
368
|
+
opts = opts || {};
|
|
369
|
+
|
|
321
370
|
|
|
322
371
|
return this.apiClient.callApi(
|
|
323
372
|
'/api/v2/voicemail/policy',
|
|
@@ -329,7 +378,8 @@ class VoicemailApi {
|
|
|
329
378
|
null,
|
|
330
379
|
['PureCloud OAuth'],
|
|
331
380
|
['application/json'],
|
|
332
|
-
['application/json']
|
|
381
|
+
['application/json'],
|
|
382
|
+
opts['customHeaders']
|
|
333
383
|
);
|
|
334
384
|
}
|
|
335
385
|
|
|
@@ -340,6 +390,7 @@ class VoicemailApi {
|
|
|
340
390
|
* @param {Object} opts Optional parameters
|
|
341
391
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
342
392
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
393
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
343
394
|
*/
|
|
344
395
|
getVoicemailQueueMessages(queueId, opts) {
|
|
345
396
|
opts = opts || {};
|
|
@@ -359,7 +410,8 @@ class VoicemailApi {
|
|
|
359
410
|
null,
|
|
360
411
|
['PureCloud OAuth'],
|
|
361
412
|
['application/json'],
|
|
362
|
-
['application/json']
|
|
413
|
+
['application/json'],
|
|
414
|
+
opts['customHeaders']
|
|
363
415
|
);
|
|
364
416
|
}
|
|
365
417
|
|
|
@@ -369,6 +421,7 @@ class VoicemailApi {
|
|
|
369
421
|
* @param {String} q64 q64
|
|
370
422
|
* @param {Object} opts Optional parameters
|
|
371
423
|
* @param {Array.<String>} opts.expand expand
|
|
424
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
372
425
|
*/
|
|
373
426
|
getVoicemailSearch(q64, opts) {
|
|
374
427
|
opts = opts || {};
|
|
@@ -388,7 +441,8 @@ class VoicemailApi {
|
|
|
388
441
|
null,
|
|
389
442
|
['PureCloud OAuth'],
|
|
390
443
|
['application/json'],
|
|
391
|
-
['application/json']
|
|
444
|
+
['application/json'],
|
|
445
|
+
opts['customHeaders']
|
|
392
446
|
);
|
|
393
447
|
}
|
|
394
448
|
|
|
@@ -396,8 +450,12 @@ class VoicemailApi {
|
|
|
396
450
|
* Get a user's mailbox information
|
|
397
451
|
*
|
|
398
452
|
* @param {String} userId userId
|
|
453
|
+
* @param {Object} opts Optional parameters
|
|
454
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
399
455
|
*/
|
|
400
|
-
getVoicemailUserMailbox(userId) {
|
|
456
|
+
getVoicemailUserMailbox(userId, opts) {
|
|
457
|
+
opts = opts || {};
|
|
458
|
+
|
|
401
459
|
// verify the required parameter 'userId' is set
|
|
402
460
|
if (userId === undefined || userId === null || userId === '') {
|
|
403
461
|
throw 'Missing the required parameter "userId" when calling getVoicemailUserMailbox';
|
|
@@ -413,7 +471,8 @@ class VoicemailApi {
|
|
|
413
471
|
null,
|
|
414
472
|
['PureCloud OAuth'],
|
|
415
473
|
['application/json'],
|
|
416
|
-
['application/json']
|
|
474
|
+
['application/json'],
|
|
475
|
+
opts['customHeaders']
|
|
417
476
|
);
|
|
418
477
|
}
|
|
419
478
|
|
|
@@ -424,6 +483,7 @@ class VoicemailApi {
|
|
|
424
483
|
* @param {Object} opts Optional parameters
|
|
425
484
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
426
485
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
486
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
427
487
|
*/
|
|
428
488
|
getVoicemailUserMessages(userId, opts) {
|
|
429
489
|
opts = opts || {};
|
|
@@ -443,7 +503,8 @@ class VoicemailApi {
|
|
|
443
503
|
null,
|
|
444
504
|
['PureCloud OAuth'],
|
|
445
505
|
['application/json'],
|
|
446
|
-
['application/json']
|
|
506
|
+
['application/json'],
|
|
507
|
+
opts['customHeaders']
|
|
447
508
|
);
|
|
448
509
|
}
|
|
449
510
|
|
|
@@ -451,8 +512,12 @@ class VoicemailApi {
|
|
|
451
512
|
* Get a user's voicemail policy
|
|
452
513
|
*
|
|
453
514
|
* @param {String} userId User ID
|
|
515
|
+
* @param {Object} opts Optional parameters
|
|
516
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
454
517
|
*/
|
|
455
|
-
getVoicemailUserpolicy(userId) {
|
|
518
|
+
getVoicemailUserpolicy(userId, opts) {
|
|
519
|
+
opts = opts || {};
|
|
520
|
+
|
|
456
521
|
// verify the required parameter 'userId' is set
|
|
457
522
|
if (userId === undefined || userId === null || userId === '') {
|
|
458
523
|
throw 'Missing the required parameter "userId" when calling getVoicemailUserpolicy';
|
|
@@ -468,7 +533,8 @@ class VoicemailApi {
|
|
|
468
533
|
null,
|
|
469
534
|
['PureCloud OAuth'],
|
|
470
535
|
['application/json'],
|
|
471
|
-
['application/json']
|
|
536
|
+
['application/json'],
|
|
537
|
+
opts['customHeaders']
|
|
472
538
|
);
|
|
473
539
|
}
|
|
474
540
|
|
|
@@ -477,8 +543,12 @@ class VoicemailApi {
|
|
|
477
543
|
*
|
|
478
544
|
* @param {String} groupId Group ID
|
|
479
545
|
* @param {Object} body The group's voicemail policy
|
|
546
|
+
* @param {Object} opts Optional parameters
|
|
547
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
480
548
|
*/
|
|
481
|
-
patchVoicemailGroupPolicy(groupId, body) {
|
|
549
|
+
patchVoicemailGroupPolicy(groupId, body, opts) {
|
|
550
|
+
opts = opts || {};
|
|
551
|
+
|
|
482
552
|
// verify the required parameter 'groupId' is set
|
|
483
553
|
if (groupId === undefined || groupId === null || groupId === '') {
|
|
484
554
|
throw 'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';
|
|
@@ -498,7 +568,8 @@ class VoicemailApi {
|
|
|
498
568
|
body,
|
|
499
569
|
['PureCloud OAuth'],
|
|
500
570
|
['application/json'],
|
|
501
|
-
['application/json']
|
|
571
|
+
['application/json'],
|
|
572
|
+
opts['customHeaders']
|
|
502
573
|
);
|
|
503
574
|
}
|
|
504
575
|
|
|
@@ -506,8 +577,12 @@ class VoicemailApi {
|
|
|
506
577
|
* Update the current user's voicemail policy
|
|
507
578
|
*
|
|
508
579
|
* @param {Object} body The user's voicemail policy
|
|
580
|
+
* @param {Object} opts Optional parameters
|
|
581
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
509
582
|
*/
|
|
510
|
-
patchVoicemailMePolicy(body) {
|
|
583
|
+
patchVoicemailMePolicy(body, opts) {
|
|
584
|
+
opts = opts || {};
|
|
585
|
+
|
|
511
586
|
// verify the required parameter 'body' is set
|
|
512
587
|
if (body === undefined || body === null) {
|
|
513
588
|
throw 'Missing the required parameter "body" when calling patchVoicemailMePolicy';
|
|
@@ -523,7 +598,8 @@ class VoicemailApi {
|
|
|
523
598
|
body,
|
|
524
599
|
['PureCloud OAuth'],
|
|
525
600
|
['application/json'],
|
|
526
|
-
['application/json']
|
|
601
|
+
['application/json'],
|
|
602
|
+
opts['customHeaders']
|
|
527
603
|
);
|
|
528
604
|
}
|
|
529
605
|
|
|
@@ -532,8 +608,12 @@ class VoicemailApi {
|
|
|
532
608
|
* A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
|
|
533
609
|
* @param {String} messageId Message ID
|
|
534
610
|
* @param {Object} body VoicemailMessage
|
|
611
|
+
* @param {Object} opts Optional parameters
|
|
612
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
535
613
|
*/
|
|
536
|
-
patchVoicemailMessage(messageId, body) {
|
|
614
|
+
patchVoicemailMessage(messageId, body, opts) {
|
|
615
|
+
opts = opts || {};
|
|
616
|
+
|
|
537
617
|
// verify the required parameter 'messageId' is set
|
|
538
618
|
if (messageId === undefined || messageId === null || messageId === '') {
|
|
539
619
|
throw 'Missing the required parameter "messageId" when calling patchVoicemailMessage';
|
|
@@ -553,7 +633,8 @@ class VoicemailApi {
|
|
|
553
633
|
body,
|
|
554
634
|
['PureCloud OAuth'],
|
|
555
635
|
['application/json'],
|
|
556
|
-
['application/json']
|
|
636
|
+
['application/json'],
|
|
637
|
+
opts['customHeaders']
|
|
557
638
|
);
|
|
558
639
|
}
|
|
559
640
|
|
|
@@ -562,8 +643,12 @@ class VoicemailApi {
|
|
|
562
643
|
*
|
|
563
644
|
* @param {String} userId User ID
|
|
564
645
|
* @param {Object} body The user's voicemail policy
|
|
646
|
+
* @param {Object} opts Optional parameters
|
|
647
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
565
648
|
*/
|
|
566
|
-
patchVoicemailUserpolicy(userId, body) {
|
|
649
|
+
patchVoicemailUserpolicy(userId, body, opts) {
|
|
650
|
+
opts = opts || {};
|
|
651
|
+
|
|
567
652
|
// verify the required parameter 'userId' is set
|
|
568
653
|
if (userId === undefined || userId === null || userId === '') {
|
|
569
654
|
throw 'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';
|
|
@@ -583,7 +668,8 @@ class VoicemailApi {
|
|
|
583
668
|
body,
|
|
584
669
|
['PureCloud OAuth'],
|
|
585
670
|
['application/json'],
|
|
586
|
-
['application/json']
|
|
671
|
+
['application/json'],
|
|
672
|
+
opts['customHeaders']
|
|
587
673
|
);
|
|
588
674
|
}
|
|
589
675
|
|
|
@@ -592,6 +678,7 @@ class VoicemailApi {
|
|
|
592
678
|
*
|
|
593
679
|
* @param {Object} opts Optional parameters
|
|
594
680
|
* @param {Object} opts.body
|
|
681
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
595
682
|
*/
|
|
596
683
|
postVoicemailMessages(opts) {
|
|
597
684
|
opts = opts || {};
|
|
@@ -607,7 +694,8 @@ class VoicemailApi {
|
|
|
607
694
|
opts['body'],
|
|
608
695
|
['PureCloud OAuth'],
|
|
609
696
|
['application/json'],
|
|
610
|
-
['application/json']
|
|
697
|
+
['application/json'],
|
|
698
|
+
opts['customHeaders']
|
|
611
699
|
);
|
|
612
700
|
}
|
|
613
701
|
|
|
@@ -615,8 +703,12 @@ class VoicemailApi {
|
|
|
615
703
|
* Search voicemails
|
|
616
704
|
*
|
|
617
705
|
* @param {Object} body Search request options
|
|
706
|
+
* @param {Object} opts Optional parameters
|
|
707
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
618
708
|
*/
|
|
619
|
-
postVoicemailSearch(body) {
|
|
709
|
+
postVoicemailSearch(body, opts) {
|
|
710
|
+
opts = opts || {};
|
|
711
|
+
|
|
620
712
|
// verify the required parameter 'body' is set
|
|
621
713
|
if (body === undefined || body === null) {
|
|
622
714
|
throw 'Missing the required parameter "body" when calling postVoicemailSearch';
|
|
@@ -632,7 +724,8 @@ class VoicemailApi {
|
|
|
632
724
|
body,
|
|
633
725
|
['PureCloud OAuth'],
|
|
634
726
|
['application/json'],
|
|
635
|
-
['application/json']
|
|
727
|
+
['application/json'],
|
|
728
|
+
opts['customHeaders']
|
|
636
729
|
);
|
|
637
730
|
}
|
|
638
731
|
|
|
@@ -641,8 +734,12 @@ class VoicemailApi {
|
|
|
641
734
|
* A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
|
|
642
735
|
* @param {String} messageId Message ID
|
|
643
736
|
* @param {Object} body VoicemailMessage
|
|
737
|
+
* @param {Object} opts Optional parameters
|
|
738
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
644
739
|
*/
|
|
645
|
-
putVoicemailMessage(messageId, body) {
|
|
740
|
+
putVoicemailMessage(messageId, body, opts) {
|
|
741
|
+
opts = opts || {};
|
|
742
|
+
|
|
646
743
|
// verify the required parameter 'messageId' is set
|
|
647
744
|
if (messageId === undefined || messageId === null || messageId === '') {
|
|
648
745
|
throw 'Missing the required parameter "messageId" when calling putVoicemailMessage';
|
|
@@ -662,7 +759,8 @@ class VoicemailApi {
|
|
|
662
759
|
body,
|
|
663
760
|
['PureCloud OAuth'],
|
|
664
761
|
['application/json'],
|
|
665
|
-
['application/json']
|
|
762
|
+
['application/json'],
|
|
763
|
+
opts['customHeaders']
|
|
666
764
|
);
|
|
667
765
|
}
|
|
668
766
|
|
|
@@ -670,8 +768,12 @@ class VoicemailApi {
|
|
|
670
768
|
* Update a policy
|
|
671
769
|
*
|
|
672
770
|
* @param {Object} body Policy
|
|
771
|
+
* @param {Object} opts Optional parameters
|
|
772
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
673
773
|
*/
|
|
674
|
-
putVoicemailPolicy(body) {
|
|
774
|
+
putVoicemailPolicy(body, opts) {
|
|
775
|
+
opts = opts || {};
|
|
776
|
+
|
|
675
777
|
// verify the required parameter 'body' is set
|
|
676
778
|
if (body === undefined || body === null) {
|
|
677
779
|
throw 'Missing the required parameter "body" when calling putVoicemailPolicy';
|
|
@@ -687,7 +789,8 @@ class VoicemailApi {
|
|
|
687
789
|
body,
|
|
688
790
|
['PureCloud OAuth'],
|
|
689
791
|
['application/json'],
|
|
690
|
-
['application/json']
|
|
792
|
+
['application/json'],
|
|
793
|
+
opts['customHeaders']
|
|
691
794
|
);
|
|
692
795
|
}
|
|
693
796
|
|
|
@@ -696,8 +799,12 @@ class VoicemailApi {
|
|
|
696
799
|
*
|
|
697
800
|
* @param {String} userId User ID
|
|
698
801
|
* @param {Object} body The user's voicemail policy
|
|
802
|
+
* @param {Object} opts Optional parameters
|
|
803
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
699
804
|
*/
|
|
700
|
-
putVoicemailUserpolicy(userId, body) {
|
|
805
|
+
putVoicemailUserpolicy(userId, body, opts) {
|
|
806
|
+
opts = opts || {};
|
|
807
|
+
|
|
701
808
|
// verify the required parameter 'userId' is set
|
|
702
809
|
if (userId === undefined || userId === null || userId === '') {
|
|
703
810
|
throw 'Missing the required parameter "userId" when calling putVoicemailUserpolicy';
|
|
@@ -717,7 +824,8 @@ class VoicemailApi {
|
|
|
717
824
|
body,
|
|
718
825
|
['PureCloud OAuth'],
|
|
719
826
|
['application/json'],
|
|
720
|
-
['application/json']
|
|
827
|
+
['application/json'],
|
|
828
|
+
opts['customHeaders']
|
|
721
829
|
);
|
|
722
830
|
}
|
|
723
831
|
|