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
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { default as qs } from 'qs';
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @module purecloud-platform-client-v2/ApiClient
|
|
9
|
-
* @version
|
|
9
|
+
* @version 250.0.0
|
|
10
10
|
*/
|
|
11
11
|
class ApiClient {
|
|
12
12
|
/**
|
|
@@ -1563,9 +1563,10 @@ class ApiClient {
|
|
|
1563
1563
|
* @param {Array.<String>} contentTypes An array of request MIME types.
|
|
1564
1564
|
* @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
|
|
1565
1565
|
* constructor for a complex type.
|
|
1566
|
+
* @param {Object.<string, string>} customHeaders Optional per-request headers to include with the API call.
|
|
1566
1567
|
* @returns {Promise} A Promise object.
|
|
1567
1568
|
*/
|
|
1568
|
-
callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts) {
|
|
1569
|
+
callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, customHeaders) {
|
|
1569
1570
|
return new Promise((resolve, reject) => {
|
|
1570
1571
|
sendRequest(this);
|
|
1571
1572
|
function sendRequest(that) {
|
|
@@ -1580,6 +1581,29 @@ class ApiClient {
|
|
|
1580
1581
|
const normalizedHeaderParams = that.normalizeParams(headerParams);
|
|
1581
1582
|
request.headers = that.addHeaders(request.headers, defaultHeaders, normalizedHeaderParams);
|
|
1582
1583
|
|
|
1584
|
+
if (customHeaders) {
|
|
1585
|
+
if (typeof customHeaders !== 'object') {
|
|
1586
|
+
throw new Error('Per-request headers must be a valid object');
|
|
1587
|
+
}
|
|
1588
|
+
for (const [name, value] of Object.entries(customHeaders)) {
|
|
1589
|
+
if (typeof name !== 'string' || typeof value !== 'string') {
|
|
1590
|
+
throw new Error(`Invalid header: "${name}" must have string name and value`);
|
|
1591
|
+
}
|
|
1592
|
+
// Basic header name validation (RFC 7230)
|
|
1593
|
+
if (!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(name)) {
|
|
1594
|
+
throw new Error(`Invalid header name: "${name}" - must be a valid HTTP token`);
|
|
1595
|
+
}
|
|
1596
|
+
// Basic header value validation
|
|
1597
|
+
for (let i = 0; i < value.length; i++) {
|
|
1598
|
+
const charCode = value.charCodeAt(i);
|
|
1599
|
+
if (!((charCode >= 0x21 && charCode <= 0x7E) || charCode === 0x20 || charCode === 0x09 || (charCode >= 0x80 && charCode <= 0xFF))) {
|
|
1600
|
+
throw new Error(`Invalid header value for "${name}": contains invalid characters`);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
request.headers[name] = value;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1583
1607
|
var contentType = that.jsonPreferredMime(contentTypes);
|
|
1584
1608
|
if (contentType) {
|
|
1585
1609
|
request.headers['Content-Type'] = contentType;
|
|
@@ -5,7 +5,7 @@ class AIStudioApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* AIStudio service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,8 +24,12 @@ class AIStudioApi {
|
|
|
24
24
|
* Delete a summary setting.
|
|
25
25
|
*
|
|
26
26
|
* @param {String} summarySettingId Summary setting id
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
27
29
|
*/
|
|
28
|
-
deleteConversationsSummariesSetting(summarySettingId) {
|
|
30
|
+
deleteConversationsSummariesSetting(summarySettingId, opts) {
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
|
|
29
33
|
// verify the required parameter 'summarySettingId' is set
|
|
30
34
|
if (summarySettingId === undefined || summarySettingId === null || summarySettingId === '') {
|
|
31
35
|
throw 'Missing the required parameter "summarySettingId" when calling deleteConversationsSummariesSetting';
|
|
@@ -41,7 +45,8 @@ class AIStudioApi {
|
|
|
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
|
|
|
@@ -49,8 +54,12 @@ class AIStudioApi {
|
|
|
49
54
|
* Start the deletion of a guide.
|
|
50
55
|
*
|
|
51
56
|
* @param {String} guideId Guide ID
|
|
57
|
+
* @param {Object} opts Optional parameters
|
|
58
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
52
59
|
*/
|
|
53
|
-
deleteGuideJobs(guideId) {
|
|
60
|
+
deleteGuideJobs(guideId, opts) {
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
|
|
54
63
|
// verify the required parameter 'guideId' is set
|
|
55
64
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
56
65
|
throw 'Missing the required parameter "guideId" when calling deleteGuideJobs';
|
|
@@ -66,7 +75,8 @@ class AIStudioApi {
|
|
|
66
75
|
null,
|
|
67
76
|
['PureCloud OAuth'],
|
|
68
77
|
['application/json'],
|
|
69
|
-
['application/json']
|
|
78
|
+
['application/json'],
|
|
79
|
+
opts['customHeaders']
|
|
70
80
|
);
|
|
71
81
|
}
|
|
72
82
|
|
|
@@ -74,8 +84,12 @@ class AIStudioApi {
|
|
|
74
84
|
* Receive a summary setting.
|
|
75
85
|
*
|
|
76
86
|
* @param {String} summarySettingId Summary setting id
|
|
87
|
+
* @param {Object} opts Optional parameters
|
|
88
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
77
89
|
*/
|
|
78
|
-
getConversationsSummariesSetting(summarySettingId) {
|
|
90
|
+
getConversationsSummariesSetting(summarySettingId, opts) {
|
|
91
|
+
opts = opts || {};
|
|
92
|
+
|
|
79
93
|
// verify the required parameter 'summarySettingId' is set
|
|
80
94
|
if (summarySettingId === undefined || summarySettingId === null || summarySettingId === '') {
|
|
81
95
|
throw 'Missing the required parameter "summarySettingId" when calling getConversationsSummariesSetting';
|
|
@@ -91,7 +105,8 @@ class AIStudioApi {
|
|
|
91
105
|
null,
|
|
92
106
|
['PureCloud OAuth'],
|
|
93
107
|
['application/json'],
|
|
94
|
-
['application/json']
|
|
108
|
+
['application/json'],
|
|
109
|
+
opts['customHeaders']
|
|
95
110
|
);
|
|
96
111
|
}
|
|
97
112
|
|
|
@@ -105,6 +120,7 @@ class AIStudioApi {
|
|
|
105
120
|
* @param {Object} opts.sortOrder Sort Order. Default value desc. (default to desc)
|
|
106
121
|
* @param {Number} opts.pageNumber Page number. (default to 1)
|
|
107
122
|
* @param {Number} opts.pageSize Page size. The maximum page size is 100. (default to 25)
|
|
123
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
108
124
|
*/
|
|
109
125
|
getConversationsSummariesSettings(opts) {
|
|
110
126
|
opts = opts || {};
|
|
@@ -120,7 +136,8 @@ class AIStudioApi {
|
|
|
120
136
|
null,
|
|
121
137
|
['PureCloud OAuth'],
|
|
122
138
|
['application/json'],
|
|
123
|
-
['application/json']
|
|
139
|
+
['application/json'],
|
|
140
|
+
opts['customHeaders']
|
|
124
141
|
);
|
|
125
142
|
}
|
|
126
143
|
|
|
@@ -128,8 +145,12 @@ class AIStudioApi {
|
|
|
128
145
|
* Get guide.
|
|
129
146
|
*
|
|
130
147
|
* @param {String} guideId Guide ID
|
|
148
|
+
* @param {Object} opts Optional parameters
|
|
149
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
131
150
|
*/
|
|
132
|
-
getGuide(guideId) {
|
|
151
|
+
getGuide(guideId, opts) {
|
|
152
|
+
opts = opts || {};
|
|
153
|
+
|
|
133
154
|
// verify the required parameter 'guideId' is set
|
|
134
155
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
135
156
|
throw 'Missing the required parameter "guideId" when calling getGuide';
|
|
@@ -145,7 +166,8 @@ class AIStudioApi {
|
|
|
145
166
|
null,
|
|
146
167
|
['PureCloud OAuth'],
|
|
147
168
|
['application/json'],
|
|
148
|
-
['application/json']
|
|
169
|
+
['application/json'],
|
|
170
|
+
opts['customHeaders']
|
|
149
171
|
);
|
|
150
172
|
}
|
|
151
173
|
|
|
@@ -154,8 +176,12 @@ class AIStudioApi {
|
|
|
154
176
|
*
|
|
155
177
|
* @param {String} guideId Guide ID
|
|
156
178
|
* @param {String} jobId jobId
|
|
179
|
+
* @param {Object} opts Optional parameters
|
|
180
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
157
181
|
*/
|
|
158
|
-
getGuideJob(guideId, jobId) {
|
|
182
|
+
getGuideJob(guideId, jobId, opts) {
|
|
183
|
+
opts = opts || {};
|
|
184
|
+
|
|
159
185
|
// verify the required parameter 'guideId' is set
|
|
160
186
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
161
187
|
throw 'Missing the required parameter "guideId" when calling getGuideJob';
|
|
@@ -175,7 +201,8 @@ class AIStudioApi {
|
|
|
175
201
|
null,
|
|
176
202
|
['PureCloud OAuth'],
|
|
177
203
|
['application/json'],
|
|
178
|
-
['application/json']
|
|
204
|
+
['application/json'],
|
|
205
|
+
opts['customHeaders']
|
|
179
206
|
);
|
|
180
207
|
}
|
|
181
208
|
|
|
@@ -184,8 +211,12 @@ class AIStudioApi {
|
|
|
184
211
|
*
|
|
185
212
|
* @param {String} guideId Guide ID
|
|
186
213
|
* @param {String} versionId Version ID
|
|
214
|
+
* @param {Object} opts Optional parameters
|
|
215
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
187
216
|
*/
|
|
188
|
-
getGuideVersion(guideId, versionId) {
|
|
217
|
+
getGuideVersion(guideId, versionId, opts) {
|
|
218
|
+
opts = opts || {};
|
|
219
|
+
|
|
189
220
|
// verify the required parameter 'guideId' is set
|
|
190
221
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
191
222
|
throw 'Missing the required parameter "guideId" when calling getGuideVersion';
|
|
@@ -205,7 +236,8 @@ class AIStudioApi {
|
|
|
205
236
|
null,
|
|
206
237
|
['PureCloud OAuth'],
|
|
207
238
|
['application/json'],
|
|
208
|
-
['application/json']
|
|
239
|
+
['application/json'],
|
|
240
|
+
opts['customHeaders']
|
|
209
241
|
);
|
|
210
242
|
}
|
|
211
243
|
|
|
@@ -215,8 +247,12 @@ class AIStudioApi {
|
|
|
215
247
|
* @param {String} guideId Guide ID
|
|
216
248
|
* @param {String} versionId Version ID
|
|
217
249
|
* @param {String} jobId jobId
|
|
250
|
+
* @param {Object} opts Optional parameters
|
|
251
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
218
252
|
*/
|
|
219
|
-
getGuideVersionJob(guideId, versionId, jobId) {
|
|
253
|
+
getGuideVersionJob(guideId, versionId, jobId, opts) {
|
|
254
|
+
opts = opts || {};
|
|
255
|
+
|
|
220
256
|
// verify the required parameter 'guideId' is set
|
|
221
257
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
222
258
|
throw 'Missing the required parameter "guideId" when calling getGuideVersionJob';
|
|
@@ -240,7 +276,8 @@ class AIStudioApi {
|
|
|
240
276
|
null,
|
|
241
277
|
['PureCloud OAuth'],
|
|
242
278
|
['application/json'],
|
|
243
|
-
['application/json']
|
|
279
|
+
['application/json'],
|
|
280
|
+
opts['customHeaders']
|
|
244
281
|
);
|
|
245
282
|
}
|
|
246
283
|
|
|
@@ -255,6 +292,7 @@ class AIStudioApi {
|
|
|
255
292
|
* @param {Object} opts.sortOrder Sort Order. Default value desc. (default to desc)
|
|
256
293
|
* @param {Number} opts.pageNumber Page number. (default to 1)
|
|
257
294
|
* @param {Number} opts.pageSize Page size. The maximum page size is 100. (default to 25)
|
|
295
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
258
296
|
*/
|
|
259
297
|
getGuides(opts) {
|
|
260
298
|
opts = opts || {};
|
|
@@ -270,7 +308,8 @@ class AIStudioApi {
|
|
|
270
308
|
null,
|
|
271
309
|
['PureCloud OAuth'],
|
|
272
310
|
['application/json'],
|
|
273
|
-
['application/json']
|
|
311
|
+
['application/json'],
|
|
312
|
+
opts['customHeaders']
|
|
274
313
|
);
|
|
275
314
|
}
|
|
276
315
|
|
|
@@ -278,8 +317,12 @@ class AIStudioApi {
|
|
|
278
317
|
* Get the status of the guide content generation job.
|
|
279
318
|
*
|
|
280
319
|
* @param {String} jobId jobId
|
|
320
|
+
* @param {Object} opts Optional parameters
|
|
321
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
281
322
|
*/
|
|
282
|
-
getGuidesJob(jobId) {
|
|
323
|
+
getGuidesJob(jobId, opts) {
|
|
324
|
+
opts = opts || {};
|
|
325
|
+
|
|
283
326
|
// verify the required parameter 'jobId' is set
|
|
284
327
|
if (jobId === undefined || jobId === null || jobId === '') {
|
|
285
328
|
throw 'Missing the required parameter "jobId" when calling getGuidesJob';
|
|
@@ -295,7 +338,8 @@ class AIStudioApi {
|
|
|
295
338
|
null,
|
|
296
339
|
['PureCloud OAuth'],
|
|
297
340
|
['application/json'],
|
|
298
|
-
['application/json']
|
|
341
|
+
['application/json'],
|
|
342
|
+
opts['customHeaders']
|
|
299
343
|
);
|
|
300
344
|
}
|
|
301
345
|
|
|
@@ -304,8 +348,12 @@ class AIStudioApi {
|
|
|
304
348
|
*
|
|
305
349
|
* @param {String} guideId Guide ID
|
|
306
350
|
* @param {Object} body
|
|
351
|
+
* @param {Object} opts Optional parameters
|
|
352
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
307
353
|
*/
|
|
308
|
-
patchGuide(guideId, body) {
|
|
354
|
+
patchGuide(guideId, body, opts) {
|
|
355
|
+
opts = opts || {};
|
|
356
|
+
|
|
309
357
|
// verify the required parameter 'guideId' is set
|
|
310
358
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
311
359
|
throw 'Missing the required parameter "guideId" when calling patchGuide';
|
|
@@ -325,7 +373,8 @@ class AIStudioApi {
|
|
|
325
373
|
body,
|
|
326
374
|
['PureCloud OAuth'],
|
|
327
375
|
['application/json'],
|
|
328
|
-
['application/json']
|
|
376
|
+
['application/json'],
|
|
377
|
+
opts['customHeaders']
|
|
329
378
|
);
|
|
330
379
|
}
|
|
331
380
|
|
|
@@ -335,8 +384,12 @@ class AIStudioApi {
|
|
|
335
384
|
* @param {String} guideId Guide ID
|
|
336
385
|
* @param {String} versionId Version ID
|
|
337
386
|
* @param {Object} body
|
|
387
|
+
* @param {Object} opts Optional parameters
|
|
388
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
338
389
|
*/
|
|
339
|
-
patchGuideVersion(guideId, versionId, body) {
|
|
390
|
+
patchGuideVersion(guideId, versionId, body, opts) {
|
|
391
|
+
opts = opts || {};
|
|
392
|
+
|
|
340
393
|
// verify the required parameter 'guideId' is set
|
|
341
394
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
342
395
|
throw 'Missing the required parameter "guideId" when calling patchGuideVersion';
|
|
@@ -360,7 +413,8 @@ class AIStudioApi {
|
|
|
360
413
|
body,
|
|
361
414
|
['PureCloud OAuth'],
|
|
362
415
|
['application/json'],
|
|
363
|
-
['application/json']
|
|
416
|
+
['application/json'],
|
|
417
|
+
opts['customHeaders']
|
|
364
418
|
);
|
|
365
419
|
}
|
|
366
420
|
|
|
@@ -368,8 +422,12 @@ class AIStudioApi {
|
|
|
368
422
|
* Trigger summary preview event generation.
|
|
369
423
|
*
|
|
370
424
|
* @param {Object} body
|
|
425
|
+
* @param {Object} opts Optional parameters
|
|
426
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
371
427
|
*/
|
|
372
|
-
postConversationsSummariesPreview(body) {
|
|
428
|
+
postConversationsSummariesPreview(body, opts) {
|
|
429
|
+
opts = opts || {};
|
|
430
|
+
|
|
373
431
|
// verify the required parameter 'body' is set
|
|
374
432
|
if (body === undefined || body === null) {
|
|
375
433
|
throw 'Missing the required parameter "body" when calling postConversationsSummariesPreview';
|
|
@@ -385,7 +443,8 @@ class AIStudioApi {
|
|
|
385
443
|
body,
|
|
386
444
|
['PureCloud OAuth'],
|
|
387
445
|
['application/json'],
|
|
388
|
-
['application/json']
|
|
446
|
+
['application/json'],
|
|
447
|
+
opts['customHeaders']
|
|
389
448
|
);
|
|
390
449
|
}
|
|
391
450
|
|
|
@@ -393,8 +452,12 @@ class AIStudioApi {
|
|
|
393
452
|
* Create a summary setting.
|
|
394
453
|
*
|
|
395
454
|
* @param {Object} body
|
|
455
|
+
* @param {Object} opts Optional parameters
|
|
456
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
396
457
|
*/
|
|
397
|
-
postConversationsSummariesSettings(body) {
|
|
458
|
+
postConversationsSummariesSettings(body, opts) {
|
|
459
|
+
opts = opts || {};
|
|
460
|
+
|
|
398
461
|
// verify the required parameter 'body' is set
|
|
399
462
|
if (body === undefined || body === null) {
|
|
400
463
|
throw 'Missing the required parameter "body" when calling postConversationsSummariesSettings';
|
|
@@ -410,7 +473,8 @@ class AIStudioApi {
|
|
|
410
473
|
body,
|
|
411
474
|
['PureCloud OAuth'],
|
|
412
475
|
['application/json'],
|
|
413
|
-
['application/json']
|
|
476
|
+
['application/json'],
|
|
477
|
+
opts['customHeaders']
|
|
414
478
|
);
|
|
415
479
|
}
|
|
416
480
|
|
|
@@ -420,8 +484,12 @@ class AIStudioApi {
|
|
|
420
484
|
* @param {String} guideId Guide ID
|
|
421
485
|
* @param {String} guideSessionId Guide Session ID
|
|
422
486
|
* @param {Object} body
|
|
487
|
+
* @param {Object} opts Optional parameters
|
|
488
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
423
489
|
*/
|
|
424
|
-
postGuideSessionTurns(guideId, guideSessionId, body) {
|
|
490
|
+
postGuideSessionTurns(guideId, guideSessionId, body, opts) {
|
|
491
|
+
opts = opts || {};
|
|
492
|
+
|
|
425
493
|
// verify the required parameter 'guideId' is set
|
|
426
494
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
427
495
|
throw 'Missing the required parameter "guideId" when calling postGuideSessionTurns';
|
|
@@ -445,7 +513,8 @@ class AIStudioApi {
|
|
|
445
513
|
body,
|
|
446
514
|
['PureCloud OAuth'],
|
|
447
515
|
['application/json'],
|
|
448
|
-
['application/json']
|
|
516
|
+
['application/json'],
|
|
517
|
+
opts['customHeaders']
|
|
449
518
|
);
|
|
450
519
|
}
|
|
451
520
|
|
|
@@ -455,8 +524,12 @@ class AIStudioApi {
|
|
|
455
524
|
* @param {String} guideId Guide ID
|
|
456
525
|
* @param {String} versionId Version ID
|
|
457
526
|
* @param {Object} body
|
|
527
|
+
* @param {Object} opts Optional parameters
|
|
528
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
458
529
|
*/
|
|
459
|
-
postGuideVersionJobs(guideId, versionId, body) {
|
|
530
|
+
postGuideVersionJobs(guideId, versionId, body, opts) {
|
|
531
|
+
opts = opts || {};
|
|
532
|
+
|
|
460
533
|
// verify the required parameter 'guideId' is set
|
|
461
534
|
if (guideId === undefined || guideId === null || guideId === '') {
|
|
462
535
|
throw 'Missing the required parameter "guideId" when calling postGuideVersionJobs';
|
|
@@ -480,7 +553,8 @@ class AIStudioApi {
|
|
|
480
553
|
body,
|
|
481
554
|
['PureCloud OAuth'],
|
|
482
555
|
['application/json'],
|
|
483
|
-
['application/json']
|
|
556
|
+
['application/json'],
|
|
557
|
+
opts['customHeaders']
|
|
484
558
|
);
|
|
485
559
|
}
|
|
486
560
|
|
|
@@ -490,6 +564,7 @@ class AIStudioApi {
|
|
|
490
564
|
* @param {String} guideId Guide ID
|
|
491
565
|
* @param {Object} opts Optional parameters
|
|
492
566
|
* @param {Object} opts.body
|
|
567
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
493
568
|
*/
|
|
494
569
|
postGuideVersions(guideId, opts) {
|
|
495
570
|
opts = opts || {};
|
|
@@ -509,7 +584,8 @@ class AIStudioApi {
|
|
|
509
584
|
opts['body'],
|
|
510
585
|
['PureCloud OAuth'],
|
|
511
586
|
['application/json'],
|
|
512
|
-
['application/json']
|
|
587
|
+
['application/json'],
|
|
588
|
+
opts['customHeaders']
|
|
513
589
|
);
|
|
514
590
|
}
|
|
515
591
|
|
|
@@ -517,8 +593,12 @@ class AIStudioApi {
|
|
|
517
593
|
* Create a guide.
|
|
518
594
|
*
|
|
519
595
|
* @param {Object} body
|
|
596
|
+
* @param {Object} opts Optional parameters
|
|
597
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
520
598
|
*/
|
|
521
|
-
postGuides(body) {
|
|
599
|
+
postGuides(body, opts) {
|
|
600
|
+
opts = opts || {};
|
|
601
|
+
|
|
522
602
|
// verify the required parameter 'body' is set
|
|
523
603
|
if (body === undefined || body === null) {
|
|
524
604
|
throw 'Missing the required parameter "body" when calling postGuides';
|
|
@@ -534,7 +614,8 @@ class AIStudioApi {
|
|
|
534
614
|
body,
|
|
535
615
|
['PureCloud OAuth'],
|
|
536
616
|
['application/json'],
|
|
537
|
-
['application/json']
|
|
617
|
+
['application/json'],
|
|
618
|
+
opts['customHeaders']
|
|
538
619
|
);
|
|
539
620
|
}
|
|
540
621
|
|
|
@@ -542,8 +623,12 @@ class AIStudioApi {
|
|
|
542
623
|
* Start a guide content generation job.
|
|
543
624
|
*
|
|
544
625
|
* @param {Object} body
|
|
626
|
+
* @param {Object} opts Optional parameters
|
|
627
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
545
628
|
*/
|
|
546
|
-
postGuidesJobs(body) {
|
|
629
|
+
postGuidesJobs(body, opts) {
|
|
630
|
+
opts = opts || {};
|
|
631
|
+
|
|
547
632
|
// verify the required parameter 'body' is set
|
|
548
633
|
if (body === undefined || body === null) {
|
|
549
634
|
throw 'Missing the required parameter "body" when calling postGuidesJobs';
|
|
@@ -559,7 +644,8 @@ class AIStudioApi {
|
|
|
559
644
|
body,
|
|
560
645
|
['PureCloud OAuth'],
|
|
561
646
|
['application/json'],
|
|
562
|
-
['application/json']
|
|
647
|
+
['application/json'],
|
|
648
|
+
opts['customHeaders']
|
|
563
649
|
);
|
|
564
650
|
}
|
|
565
651
|
|
|
@@ -567,8 +653,12 @@ class AIStudioApi {
|
|
|
567
653
|
* Generate presigned URL for uploading a file content to generate guide
|
|
568
654
|
*
|
|
569
655
|
* @param {Object} body query
|
|
656
|
+
* @param {Object} opts Optional parameters
|
|
657
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
570
658
|
*/
|
|
571
|
-
postGuidesUploads(body) {
|
|
659
|
+
postGuidesUploads(body, opts) {
|
|
660
|
+
opts = opts || {};
|
|
661
|
+
|
|
572
662
|
// verify the required parameter 'body' is set
|
|
573
663
|
if (body === undefined || body === null) {
|
|
574
664
|
throw 'Missing the required parameter "body" when calling postGuidesUploads';
|
|
@@ -584,7 +674,8 @@ class AIStudioApi {
|
|
|
584
674
|
body,
|
|
585
675
|
['PureCloud OAuth'],
|
|
586
676
|
['application/json'],
|
|
587
|
-
['application/json']
|
|
677
|
+
['application/json'],
|
|
678
|
+
opts['customHeaders']
|
|
588
679
|
);
|
|
589
680
|
}
|
|
590
681
|
|
|
@@ -593,8 +684,12 @@ class AIStudioApi {
|
|
|
593
684
|
*
|
|
594
685
|
* @param {String} summarySettingId Summary setting id
|
|
595
686
|
* @param {Object} body
|
|
687
|
+
* @param {Object} opts Optional parameters
|
|
688
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
596
689
|
*/
|
|
597
|
-
putConversationsSummariesSetting(summarySettingId, body) {
|
|
690
|
+
putConversationsSummariesSetting(summarySettingId, body, opts) {
|
|
691
|
+
opts = opts || {};
|
|
692
|
+
|
|
598
693
|
// verify the required parameter 'summarySettingId' is set
|
|
599
694
|
if (summarySettingId === undefined || summarySettingId === null || summarySettingId === '') {
|
|
600
695
|
throw 'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';
|
|
@@ -614,7 +709,8 @@ class AIStudioApi {
|
|
|
614
709
|
body,
|
|
615
710
|
['PureCloud OAuth'],
|
|
616
711
|
['application/json'],
|
|
617
|
-
['application/json']
|
|
712
|
+
['application/json'],
|
|
713
|
+
opts['customHeaders']
|
|
618
714
|
);
|
|
619
715
|
}
|
|
620
716
|
|