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 KnowledgeApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Knowledge service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,8 +24,12 @@ class KnowledgeApi {
|
|
|
24
24
|
* Delete connection
|
|
25
25
|
*
|
|
26
26
|
* @param {String} connectionId Connection ID
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
27
29
|
*/
|
|
28
|
-
deleteKnowledgeConnection(connectionId) {
|
|
30
|
+
deleteKnowledgeConnection(connectionId, opts) {
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
|
|
29
33
|
// verify the required parameter 'connectionId' is set
|
|
30
34
|
if (connectionId === undefined || connectionId === null || connectionId === '') {
|
|
31
35
|
throw 'Missing the required parameter "connectionId" when calling deleteKnowledgeConnection';
|
|
@@ -41,7 +45,8 @@ class KnowledgeApi {
|
|
|
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 KnowledgeApi {
|
|
|
49
54
|
* Delete knowledge base
|
|
50
55
|
*
|
|
51
56
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
57
|
+
* @param {Object} opts Optional parameters
|
|
58
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
52
59
|
*/
|
|
53
|
-
deleteKnowledgeKnowledgebase(knowledgeBaseId) {
|
|
60
|
+
deleteKnowledgeKnowledgebase(knowledgeBaseId, opts) {
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
|
|
54
63
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
55
64
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
56
65
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebase';
|
|
@@ -66,7 +75,8 @@ class KnowledgeApi {
|
|
|
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
|
|
|
@@ -75,8 +85,12 @@ class KnowledgeApi {
|
|
|
75
85
|
*
|
|
76
86
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
77
87
|
* @param {String} categoryId Category ID
|
|
88
|
+
* @param {Object} opts Optional parameters
|
|
89
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
78
90
|
*/
|
|
79
|
-
deleteKnowledgeKnowledgebaseCategory(knowledgeBaseId, categoryId) {
|
|
91
|
+
deleteKnowledgeKnowledgebaseCategory(knowledgeBaseId, categoryId, opts) {
|
|
92
|
+
opts = opts || {};
|
|
93
|
+
|
|
80
94
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
81
95
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
82
96
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';
|
|
@@ -96,7 +110,8 @@ class KnowledgeApi {
|
|
|
96
110
|
null,
|
|
97
111
|
['PureCloud OAuth'],
|
|
98
112
|
['application/json'],
|
|
99
|
-
['application/json']
|
|
113
|
+
['application/json'],
|
|
114
|
+
opts['customHeaders']
|
|
100
115
|
);
|
|
101
116
|
}
|
|
102
117
|
|
|
@@ -105,8 +120,12 @@ class KnowledgeApi {
|
|
|
105
120
|
*
|
|
106
121
|
* @param {String} knowledgeBaseId Knowledge base ID.
|
|
107
122
|
* @param {String} documentId Document ID.
|
|
123
|
+
* @param {Object} opts Optional parameters
|
|
124
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
108
125
|
*/
|
|
109
|
-
deleteKnowledgeKnowledgebaseDocument(knowledgeBaseId, documentId) {
|
|
126
|
+
deleteKnowledgeKnowledgebaseDocument(knowledgeBaseId, documentId, opts) {
|
|
127
|
+
opts = opts || {};
|
|
128
|
+
|
|
110
129
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
111
130
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
112
131
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';
|
|
@@ -126,7 +145,8 @@ class KnowledgeApi {
|
|
|
126
145
|
null,
|
|
127
146
|
['PureCloud OAuth'],
|
|
128
147
|
['application/json'],
|
|
129
|
-
['application/json']
|
|
148
|
+
['application/json'],
|
|
149
|
+
opts['customHeaders']
|
|
130
150
|
);
|
|
131
151
|
}
|
|
132
152
|
|
|
@@ -136,8 +156,12 @@ class KnowledgeApi {
|
|
|
136
156
|
* @param {String} documentVariationId Globally unique identifier for a document variation.
|
|
137
157
|
* @param {String} documentId Globally unique identifier for a document.
|
|
138
158
|
* @param {String} knowledgeBaseId Globally unique identifier for a knowledge base.
|
|
159
|
+
* @param {Object} opts Optional parameters
|
|
160
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
139
161
|
*/
|
|
140
|
-
deleteKnowledgeKnowledgebaseDocumentVariation(documentVariationId, documentId, knowledgeBaseId) {
|
|
162
|
+
deleteKnowledgeKnowledgebaseDocumentVariation(documentVariationId, documentId, knowledgeBaseId, opts) {
|
|
163
|
+
opts = opts || {};
|
|
164
|
+
|
|
141
165
|
// verify the required parameter 'documentVariationId' is set
|
|
142
166
|
if (documentVariationId === undefined || documentVariationId === null || documentVariationId === '') {
|
|
143
167
|
throw 'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';
|
|
@@ -161,7 +185,8 @@ class KnowledgeApi {
|
|
|
161
185
|
null,
|
|
162
186
|
['PureCloud OAuth'],
|
|
163
187
|
['application/json'],
|
|
164
|
-
['application/json']
|
|
188
|
+
['application/json'],
|
|
189
|
+
opts['customHeaders']
|
|
165
190
|
);
|
|
166
191
|
}
|
|
167
192
|
|
|
@@ -170,8 +195,12 @@ class KnowledgeApi {
|
|
|
170
195
|
*
|
|
171
196
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
172
197
|
* @param {String} exportJobId Export job ID
|
|
198
|
+
* @param {Object} opts Optional parameters
|
|
199
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
173
200
|
*/
|
|
174
|
-
deleteKnowledgeKnowledgebaseExportJob(knowledgeBaseId, exportJobId) {
|
|
201
|
+
deleteKnowledgeKnowledgebaseExportJob(knowledgeBaseId, exportJobId, opts) {
|
|
202
|
+
opts = opts || {};
|
|
203
|
+
|
|
175
204
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
176
205
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
177
206
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';
|
|
@@ -191,7 +220,8 @@ class KnowledgeApi {
|
|
|
191
220
|
null,
|
|
192
221
|
['PureCloud OAuth'],
|
|
193
222
|
['application/json'],
|
|
194
|
-
['application/json']
|
|
223
|
+
['application/json'],
|
|
224
|
+
opts['customHeaders']
|
|
195
225
|
);
|
|
196
226
|
}
|
|
197
227
|
|
|
@@ -200,8 +230,12 @@ class KnowledgeApi {
|
|
|
200
230
|
*
|
|
201
231
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
202
232
|
* @param {String} importJobId Import job ID
|
|
233
|
+
* @param {Object} opts Optional parameters
|
|
234
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
203
235
|
*/
|
|
204
|
-
deleteKnowledgeKnowledgebaseImportJob(knowledgeBaseId, importJobId) {
|
|
236
|
+
deleteKnowledgeKnowledgebaseImportJob(knowledgeBaseId, importJobId, opts) {
|
|
237
|
+
opts = opts || {};
|
|
238
|
+
|
|
205
239
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
206
240
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
207
241
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';
|
|
@@ -221,7 +255,8 @@ class KnowledgeApi {
|
|
|
221
255
|
null,
|
|
222
256
|
['PureCloud OAuth'],
|
|
223
257
|
['application/json'],
|
|
224
|
-
['application/json']
|
|
258
|
+
['application/json'],
|
|
259
|
+
opts['customHeaders']
|
|
225
260
|
);
|
|
226
261
|
}
|
|
227
262
|
|
|
@@ -230,8 +265,12 @@ class KnowledgeApi {
|
|
|
230
265
|
*
|
|
231
266
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
232
267
|
* @param {String} labelId Label ID
|
|
268
|
+
* @param {Object} opts Optional parameters
|
|
269
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
233
270
|
*/
|
|
234
|
-
deleteKnowledgeKnowledgebaseLabel(knowledgeBaseId, labelId) {
|
|
271
|
+
deleteKnowledgeKnowledgebaseLabel(knowledgeBaseId, labelId, opts) {
|
|
272
|
+
opts = opts || {};
|
|
273
|
+
|
|
235
274
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
236
275
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
237
276
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';
|
|
@@ -251,7 +290,8 @@ class KnowledgeApi {
|
|
|
251
290
|
null,
|
|
252
291
|
['PureCloud OAuth'],
|
|
253
292
|
['application/json'],
|
|
254
|
-
['application/json']
|
|
293
|
+
['application/json'],
|
|
294
|
+
opts['customHeaders']
|
|
255
295
|
);
|
|
256
296
|
}
|
|
257
297
|
|
|
@@ -260,8 +300,12 @@ class KnowledgeApi {
|
|
|
260
300
|
*
|
|
261
301
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
262
302
|
* @param {String} sourceId Source ID
|
|
303
|
+
* @param {Object} opts Optional parameters
|
|
304
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
263
305
|
*/
|
|
264
|
-
deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId) {
|
|
306
|
+
deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId, opts) {
|
|
307
|
+
opts = opts || {};
|
|
308
|
+
|
|
265
309
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
266
310
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
267
311
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';
|
|
@@ -281,7 +325,8 @@ class KnowledgeApi {
|
|
|
281
325
|
null,
|
|
282
326
|
['PureCloud OAuth'],
|
|
283
327
|
['application/json'],
|
|
284
|
-
['application/json']
|
|
328
|
+
['application/json'],
|
|
329
|
+
opts['customHeaders']
|
|
285
330
|
);
|
|
286
331
|
}
|
|
287
332
|
|
|
@@ -290,8 +335,12 @@ class KnowledgeApi {
|
|
|
290
335
|
*
|
|
291
336
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
292
337
|
* @param {String} sourceId Source ID
|
|
338
|
+
* @param {Object} opts Optional parameters
|
|
339
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
293
340
|
*/
|
|
294
|
-
deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId) {
|
|
341
|
+
deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId, opts) {
|
|
342
|
+
opts = opts || {};
|
|
343
|
+
|
|
295
344
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
296
345
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
297
346
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';
|
|
@@ -311,7 +360,8 @@ class KnowledgeApi {
|
|
|
311
360
|
null,
|
|
312
361
|
['PureCloud OAuth'],
|
|
313
362
|
['application/json'],
|
|
314
|
-
['application/json']
|
|
363
|
+
['application/json'],
|
|
364
|
+
opts['customHeaders']
|
|
315
365
|
);
|
|
316
366
|
}
|
|
317
367
|
|
|
@@ -320,8 +370,12 @@ class KnowledgeApi {
|
|
|
320
370
|
*
|
|
321
371
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
322
372
|
* @param {String} syncJobId Synchronization job ID
|
|
373
|
+
* @param {Object} opts Optional parameters
|
|
374
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
323
375
|
*/
|
|
324
|
-
deleteKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId) {
|
|
376
|
+
deleteKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId, opts) {
|
|
377
|
+
opts = opts || {};
|
|
378
|
+
|
|
325
379
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
326
380
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
327
381
|
throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';
|
|
@@ -341,7 +395,8 @@ class KnowledgeApi {
|
|
|
341
395
|
null,
|
|
342
396
|
['PureCloud OAuth'],
|
|
343
397
|
['application/json'],
|
|
344
|
-
['application/json']
|
|
398
|
+
['application/json'],
|
|
399
|
+
opts['customHeaders']
|
|
345
400
|
);
|
|
346
401
|
}
|
|
347
402
|
|
|
@@ -349,8 +404,12 @@ class KnowledgeApi {
|
|
|
349
404
|
* Delete Knowledge setting.
|
|
350
405
|
*
|
|
351
406
|
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
407
|
+
* @param {Object} opts Optional parameters
|
|
408
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
352
409
|
*/
|
|
353
|
-
deleteKnowledgeSetting(knowledgeSettingId) {
|
|
410
|
+
deleteKnowledgeSetting(knowledgeSettingId, opts) {
|
|
411
|
+
opts = opts || {};
|
|
412
|
+
|
|
354
413
|
// verify the required parameter 'knowledgeSettingId' is set
|
|
355
414
|
if (knowledgeSettingId === undefined || knowledgeSettingId === null || knowledgeSettingId === '') {
|
|
356
415
|
throw 'Missing the required parameter "knowledgeSettingId" when calling deleteKnowledgeSetting';
|
|
@@ -366,7 +425,8 @@ class KnowledgeApi {
|
|
|
366
425
|
null,
|
|
367
426
|
['PureCloud OAuth'],
|
|
368
427
|
['application/json'],
|
|
369
|
-
['application/json']
|
|
428
|
+
['application/json'],
|
|
429
|
+
opts['customHeaders']
|
|
370
430
|
);
|
|
371
431
|
}
|
|
372
432
|
|
|
@@ -374,8 +434,12 @@ class KnowledgeApi {
|
|
|
374
434
|
* Delete source
|
|
375
435
|
*
|
|
376
436
|
* @param {String} sourceId Source ID
|
|
437
|
+
* @param {Object} opts Optional parameters
|
|
438
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
377
439
|
*/
|
|
378
|
-
deleteKnowledgeSource(sourceId) {
|
|
440
|
+
deleteKnowledgeSource(sourceId, opts) {
|
|
441
|
+
opts = opts || {};
|
|
442
|
+
|
|
379
443
|
// verify the required parameter 'sourceId' is set
|
|
380
444
|
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
381
445
|
throw 'Missing the required parameter "sourceId" when calling deleteKnowledgeSource';
|
|
@@ -391,7 +455,8 @@ class KnowledgeApi {
|
|
|
391
455
|
null,
|
|
392
456
|
['PureCloud OAuth'],
|
|
393
457
|
['application/json'],
|
|
394
|
-
['application/json']
|
|
458
|
+
['application/json'],
|
|
459
|
+
opts['customHeaders']
|
|
395
460
|
);
|
|
396
461
|
}
|
|
397
462
|
|
|
@@ -401,6 +466,7 @@ class KnowledgeApi {
|
|
|
401
466
|
* @param {String} connectionId Connection ID
|
|
402
467
|
* @param {Object} opts Optional parameters
|
|
403
468
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
469
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
404
470
|
*/
|
|
405
471
|
getKnowledgeConnection(connectionId, opts) {
|
|
406
472
|
opts = opts || {};
|
|
@@ -420,7 +486,8 @@ class KnowledgeApi {
|
|
|
420
486
|
null,
|
|
421
487
|
['PureCloud OAuth'],
|
|
422
488
|
['application/json'],
|
|
423
|
-
['application/json']
|
|
489
|
+
['application/json'],
|
|
490
|
+
opts['customHeaders']
|
|
424
491
|
);
|
|
425
492
|
}
|
|
426
493
|
|
|
@@ -430,6 +497,7 @@ class KnowledgeApi {
|
|
|
430
497
|
* @param {String} connectionId Connection ID
|
|
431
498
|
* @param {Object} opts Optional parameters
|
|
432
499
|
* @param {String} opts.parentId The id of the parent option whose children to be listed.
|
|
500
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
433
501
|
*/
|
|
434
502
|
getKnowledgeConnectionOptions(connectionId, opts) {
|
|
435
503
|
opts = opts || {};
|
|
@@ -449,15 +517,20 @@ class KnowledgeApi {
|
|
|
449
517
|
null,
|
|
450
518
|
['PureCloud OAuth'],
|
|
451
519
|
['application/json'],
|
|
452
|
-
['application/json']
|
|
520
|
+
['application/json'],
|
|
521
|
+
opts['customHeaders']
|
|
453
522
|
);
|
|
454
523
|
}
|
|
455
524
|
|
|
456
525
|
/**
|
|
457
526
|
* Get connections
|
|
458
527
|
*
|
|
528
|
+
* @param {Object} opts Optional parameters
|
|
529
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
459
530
|
*/
|
|
460
|
-
getKnowledgeConnections() {
|
|
531
|
+
getKnowledgeConnections(opts) {
|
|
532
|
+
opts = opts || {};
|
|
533
|
+
|
|
461
534
|
|
|
462
535
|
return this.apiClient.callApi(
|
|
463
536
|
'/api/v2/knowledge/connections',
|
|
@@ -469,7 +542,8 @@ class KnowledgeApi {
|
|
|
469
542
|
null,
|
|
470
543
|
['PureCloud OAuth'],
|
|
471
544
|
['application/json'],
|
|
472
|
-
['application/json']
|
|
545
|
+
['application/json'],
|
|
546
|
+
opts['customHeaders']
|
|
473
547
|
);
|
|
474
548
|
}
|
|
475
549
|
|
|
@@ -487,6 +561,7 @@ class KnowledgeApi {
|
|
|
487
561
|
* @param {Object} opts.sortBy Name: sort by category names alphabetically; Hierarchy: sort by the full path of hierarchical category names alphabetically (default to Name)
|
|
488
562
|
* @param {String} opts.expand The specified entity attribute will be filled. Supported value:Ancestors: every ancestors will be filled via the parent attribute recursively,but only the id, name, parentId will be present for the ancestors.
|
|
489
563
|
* @param {Boolean} opts.includeDocumentCount If specified, retrieves the number of documents related to category.
|
|
564
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
490
565
|
*/
|
|
491
566
|
getKnowledgeGuestSessionCategories(sessionId, opts) {
|
|
492
567
|
opts = opts || {};
|
|
@@ -506,7 +581,8 @@ class KnowledgeApi {
|
|
|
506
581
|
null,
|
|
507
582
|
['PureCloud OAuth'],
|
|
508
583
|
['application/json'],
|
|
509
|
-
['application/json']
|
|
584
|
+
['application/json'],
|
|
585
|
+
opts['customHeaders']
|
|
510
586
|
);
|
|
511
587
|
}
|
|
512
588
|
|
|
@@ -515,8 +591,12 @@ class KnowledgeApi {
|
|
|
515
591
|
*
|
|
516
592
|
* @param {String} sessionId Knowledge guest session ID.
|
|
517
593
|
* @param {String} documentId Document ID
|
|
594
|
+
* @param {Object} opts Optional parameters
|
|
595
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
518
596
|
*/
|
|
519
|
-
getKnowledgeGuestSessionDocument(sessionId, documentId) {
|
|
597
|
+
getKnowledgeGuestSessionDocument(sessionId, documentId, opts) {
|
|
598
|
+
opts = opts || {};
|
|
599
|
+
|
|
520
600
|
// verify the required parameter 'sessionId' is set
|
|
521
601
|
if (sessionId === undefined || sessionId === null || sessionId === '') {
|
|
522
602
|
throw 'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';
|
|
@@ -536,7 +616,8 @@ class KnowledgeApi {
|
|
|
536
616
|
null,
|
|
537
617
|
['PureCloud OAuth'],
|
|
538
618
|
['application/json'],
|
|
539
|
-
['application/json']
|
|
619
|
+
['application/json'],
|
|
620
|
+
opts['customHeaders']
|
|
540
621
|
);
|
|
541
622
|
}
|
|
542
623
|
|
|
@@ -547,6 +628,7 @@ class KnowledgeApi {
|
|
|
547
628
|
* @param {Object} opts Optional parameters
|
|
548
629
|
* @param {Array.<String>} opts.categoryId If specified, retrieves documents associated with category ids, comma separated values expected.
|
|
549
630
|
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200.
|
|
631
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
550
632
|
*/
|
|
551
633
|
getKnowledgeGuestSessionDocuments(sessionId, opts) {
|
|
552
634
|
opts = opts || {};
|
|
@@ -566,7 +648,8 @@ class KnowledgeApi {
|
|
|
566
648
|
null,
|
|
567
649
|
['PureCloud OAuth'],
|
|
568
650
|
['application/json'],
|
|
569
|
-
['application/json']
|
|
651
|
+
['application/json'],
|
|
652
|
+
opts['customHeaders']
|
|
570
653
|
);
|
|
571
654
|
}
|
|
572
655
|
|
|
@@ -576,6 +659,7 @@ class KnowledgeApi {
|
|
|
576
659
|
* @param {String} integrationId Integration ID
|
|
577
660
|
* @param {Object} opts Optional parameters
|
|
578
661
|
* @param {Array.<String>} opts.knowledgeBaseIds Narrowing down filtering option results by knowledge base.
|
|
662
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
579
663
|
*/
|
|
580
664
|
getKnowledgeIntegrationOptions(integrationId, opts) {
|
|
581
665
|
opts = opts || {};
|
|
@@ -595,7 +679,8 @@ class KnowledgeApi {
|
|
|
595
679
|
null,
|
|
596
680
|
['PureCloud OAuth'],
|
|
597
681
|
['application/json'],
|
|
598
|
-
['application/json']
|
|
682
|
+
['application/json'],
|
|
683
|
+
opts['customHeaders']
|
|
599
684
|
);
|
|
600
685
|
}
|
|
601
686
|
|
|
@@ -603,8 +688,12 @@ class KnowledgeApi {
|
|
|
603
688
|
* Get knowledge base
|
|
604
689
|
*
|
|
605
690
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
691
|
+
* @param {Object} opts Optional parameters
|
|
692
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
606
693
|
*/
|
|
607
|
-
getKnowledgeKnowledgebase(knowledgeBaseId) {
|
|
694
|
+
getKnowledgeKnowledgebase(knowledgeBaseId, opts) {
|
|
695
|
+
opts = opts || {};
|
|
696
|
+
|
|
608
697
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
609
698
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
610
699
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebase';
|
|
@@ -620,7 +709,8 @@ class KnowledgeApi {
|
|
|
620
709
|
null,
|
|
621
710
|
['PureCloud OAuth'],
|
|
622
711
|
['application/json'],
|
|
623
|
-
['application/json']
|
|
712
|
+
['application/json'],
|
|
713
|
+
opts['customHeaders']
|
|
624
714
|
);
|
|
625
715
|
}
|
|
626
716
|
|
|
@@ -638,6 +728,7 @@ class KnowledgeApi {
|
|
|
638
728
|
* @param {Object} opts.sortBy Name: sort by category names alphabetically; Hierarchy: sort by the full path of hierarchical category names alphabetically (default to Name)
|
|
639
729
|
* @param {String} opts.expand The specified entity attribute will be filled. Supported value:Ancestors: every ancestors will be filled via the parent attribute recursively,but only the id, name, parentId will be present for the ancestors.
|
|
640
730
|
* @param {Boolean} opts.includeDocumentCount If specified, retrieves the number of documents related to category.
|
|
731
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
641
732
|
*/
|
|
642
733
|
getKnowledgeKnowledgebaseCategories(knowledgeBaseId, opts) {
|
|
643
734
|
opts = opts || {};
|
|
@@ -657,7 +748,8 @@ class KnowledgeApi {
|
|
|
657
748
|
null,
|
|
658
749
|
['PureCloud OAuth'],
|
|
659
750
|
['application/json'],
|
|
660
|
-
['application/json']
|
|
751
|
+
['application/json'],
|
|
752
|
+
opts['customHeaders']
|
|
661
753
|
);
|
|
662
754
|
}
|
|
663
755
|
|
|
@@ -666,8 +758,12 @@ class KnowledgeApi {
|
|
|
666
758
|
*
|
|
667
759
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
668
760
|
* @param {String} categoryId Category ID
|
|
761
|
+
* @param {Object} opts Optional parameters
|
|
762
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
669
763
|
*/
|
|
670
|
-
getKnowledgeKnowledgebaseCategory(knowledgeBaseId, categoryId) {
|
|
764
|
+
getKnowledgeKnowledgebaseCategory(knowledgeBaseId, categoryId, opts) {
|
|
765
|
+
opts = opts || {};
|
|
766
|
+
|
|
671
767
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
672
768
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
673
769
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';
|
|
@@ -687,7 +783,8 @@ class KnowledgeApi {
|
|
|
687
783
|
null,
|
|
688
784
|
['PureCloud OAuth'],
|
|
689
785
|
['application/json'],
|
|
690
|
-
['application/json']
|
|
786
|
+
['application/json'],
|
|
787
|
+
opts['customHeaders']
|
|
691
788
|
);
|
|
692
789
|
}
|
|
693
790
|
|
|
@@ -699,6 +796,7 @@ class KnowledgeApi {
|
|
|
699
796
|
* @param {Object} opts Optional parameters
|
|
700
797
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected. Max No. of variations that can be returned on expand is 20.
|
|
701
798
|
* @param {Object} opts.state when state is Draft, draft version of the document is returned,otherwise by default published version is returned in the response.
|
|
799
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
702
800
|
*/
|
|
703
801
|
getKnowledgeKnowledgebaseDocument(knowledgeBaseId, documentId, opts) {
|
|
704
802
|
opts = opts || {};
|
|
@@ -722,7 +820,8 @@ class KnowledgeApi {
|
|
|
722
820
|
null,
|
|
723
821
|
['PureCloud OAuth'],
|
|
724
822
|
['application/json'],
|
|
725
|
-
['application/json']
|
|
823
|
+
['application/json'],
|
|
824
|
+
opts['customHeaders']
|
|
726
825
|
);
|
|
727
826
|
}
|
|
728
827
|
|
|
@@ -743,6 +842,7 @@ class KnowledgeApi {
|
|
|
743
842
|
* @param {String} opts.userId The ID of the user, who created the feedback, to filter by. Supported only if onlyCommented=true is set.
|
|
744
843
|
* @param {String} opts.queueId Queue ID to filter by. Supported only if onlyCommented=true is set.
|
|
745
844
|
* @param {Object} opts.state State to filter by. Supported only if onlyCommented=true is set. Default: Final
|
|
845
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
746
846
|
*/
|
|
747
847
|
getKnowledgeKnowledgebaseDocumentFeedback(knowledgeBaseId, documentId, opts) {
|
|
748
848
|
opts = opts || {};
|
|
@@ -766,7 +866,8 @@ class KnowledgeApi {
|
|
|
766
866
|
null,
|
|
767
867
|
['PureCloud OAuth'],
|
|
768
868
|
['application/json'],
|
|
769
|
-
['application/json']
|
|
869
|
+
['application/json'],
|
|
870
|
+
opts['customHeaders']
|
|
770
871
|
);
|
|
771
872
|
}
|
|
772
873
|
|
|
@@ -776,8 +877,12 @@ class KnowledgeApi {
|
|
|
776
877
|
* @param {String} knowledgeBaseId Knowledge base ID.
|
|
777
878
|
* @param {String} documentId Document ID.
|
|
778
879
|
* @param {String} feedbackId Feedback ID.
|
|
880
|
+
* @param {Object} opts Optional parameters
|
|
881
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
779
882
|
*/
|
|
780
|
-
getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(knowledgeBaseId, documentId, feedbackId) {
|
|
883
|
+
getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(knowledgeBaseId, documentId, feedbackId, opts) {
|
|
884
|
+
opts = opts || {};
|
|
885
|
+
|
|
781
886
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
782
887
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
783
888
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';
|
|
@@ -801,7 +906,8 @@ class KnowledgeApi {
|
|
|
801
906
|
null,
|
|
802
907
|
['PureCloud OAuth'],
|
|
803
908
|
['application/json'],
|
|
804
|
-
['application/json']
|
|
909
|
+
['application/json'],
|
|
910
|
+
opts['customHeaders']
|
|
805
911
|
);
|
|
806
912
|
}
|
|
807
913
|
|
|
@@ -814,6 +920,7 @@ class KnowledgeApi {
|
|
|
814
920
|
* @param {Object} opts Optional parameters
|
|
815
921
|
* @param {Object} opts.documentState The state of the document.
|
|
816
922
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
923
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
817
924
|
*/
|
|
818
925
|
getKnowledgeKnowledgebaseDocumentVariation(documentVariationId, documentId, knowledgeBaseId, opts) {
|
|
819
926
|
opts = opts || {};
|
|
@@ -841,7 +948,8 @@ class KnowledgeApi {
|
|
|
841
948
|
null,
|
|
842
949
|
['PureCloud OAuth'],
|
|
843
950
|
['application/json'],
|
|
844
|
-
['application/json']
|
|
951
|
+
['application/json'],
|
|
952
|
+
opts['customHeaders']
|
|
845
953
|
);
|
|
846
954
|
}
|
|
847
955
|
|
|
@@ -856,6 +964,7 @@ class KnowledgeApi {
|
|
|
856
964
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
857
965
|
* @param {Object} opts.documentState The state of the document.
|
|
858
966
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
967
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
859
968
|
*/
|
|
860
969
|
getKnowledgeKnowledgebaseDocumentVariations(knowledgeBaseId, documentId, opts) {
|
|
861
970
|
opts = opts || {};
|
|
@@ -879,7 +988,8 @@ class KnowledgeApi {
|
|
|
879
988
|
null,
|
|
880
989
|
['PureCloud OAuth'],
|
|
881
990
|
['application/json'],
|
|
882
|
-
['application/json']
|
|
991
|
+
['application/json'],
|
|
992
|
+
opts['customHeaders']
|
|
883
993
|
);
|
|
884
994
|
}
|
|
885
995
|
|
|
@@ -891,6 +1001,7 @@ class KnowledgeApi {
|
|
|
891
1001
|
* @param {String} versionId Globally unique identifier for the document version.
|
|
892
1002
|
* @param {Object} opts Optional parameters
|
|
893
1003
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
1004
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
894
1005
|
*/
|
|
895
1006
|
getKnowledgeKnowledgebaseDocumentVersion(knowledgeBaseId, documentId, versionId, opts) {
|
|
896
1007
|
opts = opts || {};
|
|
@@ -918,7 +1029,8 @@ class KnowledgeApi {
|
|
|
918
1029
|
null,
|
|
919
1030
|
['PureCloud OAuth'],
|
|
920
1031
|
['application/json'],
|
|
921
|
-
['application/json']
|
|
1032
|
+
['application/json'],
|
|
1033
|
+
opts['customHeaders']
|
|
922
1034
|
);
|
|
923
1035
|
}
|
|
924
1036
|
|
|
@@ -929,8 +1041,12 @@ class KnowledgeApi {
|
|
|
929
1041
|
* @param {String} documentId Globally unique identifier for the document.
|
|
930
1042
|
* @param {String} versionId Globally unique identifier for the document version.
|
|
931
1043
|
* @param {String} variationId Globally unique identifier for the document version variation.
|
|
1044
|
+
* @param {Object} opts Optional parameters
|
|
1045
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
932
1046
|
*/
|
|
933
|
-
getKnowledgeKnowledgebaseDocumentVersionVariation(knowledgeBaseId, documentId, versionId, variationId) {
|
|
1047
|
+
getKnowledgeKnowledgebaseDocumentVersionVariation(knowledgeBaseId, documentId, versionId, variationId, opts) {
|
|
1048
|
+
opts = opts || {};
|
|
1049
|
+
|
|
934
1050
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
935
1051
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
936
1052
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';
|
|
@@ -958,7 +1074,8 @@ class KnowledgeApi {
|
|
|
958
1074
|
null,
|
|
959
1075
|
['PureCloud OAuth'],
|
|
960
1076
|
['application/json'],
|
|
961
|
-
['application/json']
|
|
1077
|
+
['application/json'],
|
|
1078
|
+
opts['customHeaders']
|
|
962
1079
|
);
|
|
963
1080
|
}
|
|
964
1081
|
|
|
@@ -972,6 +1089,7 @@ class KnowledgeApi {
|
|
|
972
1089
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
973
1090
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
974
1091
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1092
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
975
1093
|
*/
|
|
976
1094
|
getKnowledgeKnowledgebaseDocumentVersionVariations(knowledgeBaseId, documentId, versionId, opts) {
|
|
977
1095
|
opts = opts || {};
|
|
@@ -999,7 +1117,8 @@ class KnowledgeApi {
|
|
|
999
1117
|
null,
|
|
1000
1118
|
['PureCloud OAuth'],
|
|
1001
1119
|
['application/json'],
|
|
1002
|
-
['application/json']
|
|
1120
|
+
['application/json'],
|
|
1121
|
+
opts['customHeaders']
|
|
1003
1122
|
);
|
|
1004
1123
|
}
|
|
1005
1124
|
|
|
@@ -1013,6 +1132,7 @@ class KnowledgeApi {
|
|
|
1013
1132
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
1014
1133
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1015
1134
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
1135
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1016
1136
|
*/
|
|
1017
1137
|
getKnowledgeKnowledgebaseDocumentVersions(knowledgeBaseId, documentId, opts) {
|
|
1018
1138
|
opts = opts || {};
|
|
@@ -1036,7 +1156,8 @@ class KnowledgeApi {
|
|
|
1036
1156
|
null,
|
|
1037
1157
|
['PureCloud OAuth'],
|
|
1038
1158
|
['application/json'],
|
|
1039
|
-
['application/json']
|
|
1159
|
+
['application/json'],
|
|
1160
|
+
opts['customHeaders']
|
|
1040
1161
|
);
|
|
1041
1162
|
}
|
|
1042
1163
|
|
|
@@ -1056,6 +1177,7 @@ class KnowledgeApi {
|
|
|
1056
1177
|
* @param {Array.<String>} opts.labelIds If specified, retrieves documents associated with label ids, comma separated values expected.
|
|
1057
1178
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
1058
1179
|
* @param {Array.<String>} opts.externalIds If specified, retrieves documents associated with external ids, comma separated values expected.
|
|
1180
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1059
1181
|
*/
|
|
1060
1182
|
getKnowledgeKnowledgebaseDocuments(knowledgeBaseId, opts) {
|
|
1061
1183
|
opts = opts || {};
|
|
@@ -1075,7 +1197,8 @@ class KnowledgeApi {
|
|
|
1075
1197
|
null,
|
|
1076
1198
|
['PureCloud OAuth'],
|
|
1077
1199
|
['application/json'],
|
|
1078
|
-
['application/json']
|
|
1200
|
+
['application/json'],
|
|
1201
|
+
opts['customHeaders']
|
|
1079
1202
|
);
|
|
1080
1203
|
}
|
|
1081
1204
|
|
|
@@ -1084,8 +1207,12 @@ class KnowledgeApi {
|
|
|
1084
1207
|
*
|
|
1085
1208
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
1086
1209
|
* @param {String} exportJobId Export job ID
|
|
1210
|
+
* @param {Object} opts Optional parameters
|
|
1211
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1087
1212
|
*/
|
|
1088
|
-
getKnowledgeKnowledgebaseExportJob(knowledgeBaseId, exportJobId) {
|
|
1213
|
+
getKnowledgeKnowledgebaseExportJob(knowledgeBaseId, exportJobId, opts) {
|
|
1214
|
+
opts = opts || {};
|
|
1215
|
+
|
|
1089
1216
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1090
1217
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1091
1218
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';
|
|
@@ -1105,7 +1232,8 @@ class KnowledgeApi {
|
|
|
1105
1232
|
null,
|
|
1106
1233
|
['PureCloud OAuth'],
|
|
1107
1234
|
['application/json'],
|
|
1108
|
-
['application/json']
|
|
1235
|
+
['application/json'],
|
|
1236
|
+
opts['customHeaders']
|
|
1109
1237
|
);
|
|
1110
1238
|
}
|
|
1111
1239
|
|
|
@@ -1116,6 +1244,7 @@ class KnowledgeApi {
|
|
|
1116
1244
|
* @param {String} importJobId Import job ID
|
|
1117
1245
|
* @param {Object} opts Optional parameters
|
|
1118
1246
|
* @param {Array.<String>} opts.expand If expand contains 'urls' downloadURL and failedEntitiesURL will be filled.
|
|
1247
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1119
1248
|
*/
|
|
1120
1249
|
getKnowledgeKnowledgebaseImportJob(knowledgeBaseId, importJobId, opts) {
|
|
1121
1250
|
opts = opts || {};
|
|
@@ -1139,7 +1268,8 @@ class KnowledgeApi {
|
|
|
1139
1268
|
null,
|
|
1140
1269
|
['PureCloud OAuth'],
|
|
1141
1270
|
['application/json'],
|
|
1142
|
-
['application/json']
|
|
1271
|
+
['application/json'],
|
|
1272
|
+
opts['customHeaders']
|
|
1143
1273
|
);
|
|
1144
1274
|
}
|
|
1145
1275
|
|
|
@@ -1148,8 +1278,12 @@ class KnowledgeApi {
|
|
|
1148
1278
|
*
|
|
1149
1279
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
1150
1280
|
* @param {String} labelId Label ID
|
|
1281
|
+
* @param {Object} opts Optional parameters
|
|
1282
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1151
1283
|
*/
|
|
1152
|
-
getKnowledgeKnowledgebaseLabel(knowledgeBaseId, labelId) {
|
|
1284
|
+
getKnowledgeKnowledgebaseLabel(knowledgeBaseId, labelId, opts) {
|
|
1285
|
+
opts = opts || {};
|
|
1286
|
+
|
|
1153
1287
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1154
1288
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1155
1289
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';
|
|
@@ -1169,7 +1303,8 @@ class KnowledgeApi {
|
|
|
1169
1303
|
null,
|
|
1170
1304
|
['PureCloud OAuth'],
|
|
1171
1305
|
['application/json'],
|
|
1172
|
-
['application/json']
|
|
1306
|
+
['application/json'],
|
|
1307
|
+
opts['customHeaders']
|
|
1173
1308
|
);
|
|
1174
1309
|
}
|
|
1175
1310
|
|
|
@@ -1183,6 +1318,7 @@ class KnowledgeApi {
|
|
|
1183
1318
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1184
1319
|
* @param {String} opts.name Filter to return the labels that contains the given phrase in the name.
|
|
1185
1320
|
* @param {Boolean} opts.includeDocumentCount If specified, retrieves the number of documents related to label.
|
|
1321
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1186
1322
|
*/
|
|
1187
1323
|
getKnowledgeKnowledgebaseLabels(knowledgeBaseId, opts) {
|
|
1188
1324
|
opts = opts || {};
|
|
@@ -1202,7 +1338,8 @@ class KnowledgeApi {
|
|
|
1202
1338
|
null,
|
|
1203
1339
|
['PureCloud OAuth'],
|
|
1204
1340
|
['application/json'],
|
|
1205
|
-
['application/json']
|
|
1341
|
+
['application/json'],
|
|
1342
|
+
opts['customHeaders']
|
|
1206
1343
|
);
|
|
1207
1344
|
}
|
|
1208
1345
|
|
|
@@ -1219,6 +1356,7 @@ class KnowledgeApi {
|
|
|
1219
1356
|
* @param {Array.<String>} opts.status If specified, retrieves operations with specified operation status, comma separated values expected.
|
|
1220
1357
|
* @param {String} opts.interval Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
|
|
1221
1358
|
* @param {Array.<String>} opts.sourceId If specified, retrieves operations associated with source ids, comma separated values expected.
|
|
1359
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1222
1360
|
*/
|
|
1223
1361
|
getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts) {
|
|
1224
1362
|
opts = opts || {};
|
|
@@ -1238,7 +1376,8 @@ class KnowledgeApi {
|
|
|
1238
1376
|
null,
|
|
1239
1377
|
['PureCloud OAuth'],
|
|
1240
1378
|
['application/json'],
|
|
1241
|
-
['application/json']
|
|
1379
|
+
['application/json'],
|
|
1380
|
+
opts['customHeaders']
|
|
1242
1381
|
);
|
|
1243
1382
|
}
|
|
1244
1383
|
|
|
@@ -1246,8 +1385,12 @@ class KnowledgeApi {
|
|
|
1246
1385
|
* Get ids of operation creator users and oauth clients
|
|
1247
1386
|
*
|
|
1248
1387
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
1388
|
+
* @param {Object} opts Optional parameters
|
|
1389
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1249
1390
|
*/
|
|
1250
|
-
getKnowledgeKnowledgebaseOperationsUsersQuery(knowledgeBaseId) {
|
|
1391
|
+
getKnowledgeKnowledgebaseOperationsUsersQuery(knowledgeBaseId, opts) {
|
|
1392
|
+
opts = opts || {};
|
|
1393
|
+
|
|
1251
1394
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1252
1395
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1253
1396
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperationsUsersQuery';
|
|
@@ -1263,7 +1406,8 @@ class KnowledgeApi {
|
|
|
1263
1406
|
null,
|
|
1264
1407
|
['PureCloud OAuth'],
|
|
1265
1408
|
['application/json'],
|
|
1266
|
-
['application/json']
|
|
1409
|
+
['application/json'],
|
|
1410
|
+
opts['customHeaders']
|
|
1267
1411
|
);
|
|
1268
1412
|
}
|
|
1269
1413
|
|
|
@@ -1274,6 +1418,7 @@ class KnowledgeApi {
|
|
|
1274
1418
|
* @param {String} parseJobId Parse job ID
|
|
1275
1419
|
* @param {Object} opts Optional parameters
|
|
1276
1420
|
* @param {Array.<String>} opts.expand If expand contains 'urls' downloadURL and failedEntitiesURL will be filled.
|
|
1421
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1277
1422
|
*/
|
|
1278
1423
|
getKnowledgeKnowledgebaseParseJob(knowledgeBaseId, parseJobId, opts) {
|
|
1279
1424
|
opts = opts || {};
|
|
@@ -1297,7 +1442,8 @@ class KnowledgeApi {
|
|
|
1297
1442
|
null,
|
|
1298
1443
|
['PureCloud OAuth'],
|
|
1299
1444
|
['application/json'],
|
|
1300
|
-
['application/json']
|
|
1445
|
+
['application/json'],
|
|
1446
|
+
opts['customHeaders']
|
|
1301
1447
|
);
|
|
1302
1448
|
}
|
|
1303
1449
|
|
|
@@ -1309,6 +1455,7 @@ class KnowledgeApi {
|
|
|
1309
1455
|
* @param {Object} opts.type If specified, retrieves integration sources with specified integration type.
|
|
1310
1456
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
1311
1457
|
* @param {Array.<String>} opts.ids If specified, retrieves integration sources with specified IDs.
|
|
1458
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1312
1459
|
*/
|
|
1313
1460
|
getKnowledgeKnowledgebaseSources(knowledgeBaseId, opts) {
|
|
1314
1461
|
opts = opts || {};
|
|
@@ -1328,7 +1475,8 @@ class KnowledgeApi {
|
|
|
1328
1475
|
null,
|
|
1329
1476
|
['PureCloud OAuth'],
|
|
1330
1477
|
['application/json'],
|
|
1331
|
-
['application/json']
|
|
1478
|
+
['application/json'],
|
|
1479
|
+
opts['customHeaders']
|
|
1332
1480
|
);
|
|
1333
1481
|
}
|
|
1334
1482
|
|
|
@@ -1339,6 +1487,7 @@ class KnowledgeApi {
|
|
|
1339
1487
|
* @param {String} sourceId Source ID
|
|
1340
1488
|
* @param {Object} opts Optional parameters
|
|
1341
1489
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
1490
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1342
1491
|
*/
|
|
1343
1492
|
getKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId, opts) {
|
|
1344
1493
|
opts = opts || {};
|
|
@@ -1362,7 +1511,8 @@ class KnowledgeApi {
|
|
|
1362
1511
|
null,
|
|
1363
1512
|
['PureCloud OAuth'],
|
|
1364
1513
|
['application/json'],
|
|
1365
|
-
['application/json']
|
|
1514
|
+
['application/json'],
|
|
1515
|
+
opts['customHeaders']
|
|
1366
1516
|
);
|
|
1367
1517
|
}
|
|
1368
1518
|
|
|
@@ -1373,6 +1523,7 @@ class KnowledgeApi {
|
|
|
1373
1523
|
* @param {String} sourceId Source ID
|
|
1374
1524
|
* @param {Object} opts Optional parameters
|
|
1375
1525
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
1526
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1376
1527
|
*/
|
|
1377
1528
|
getKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId, opts) {
|
|
1378
1529
|
opts = opts || {};
|
|
@@ -1396,7 +1547,8 @@ class KnowledgeApi {
|
|
|
1396
1547
|
null,
|
|
1397
1548
|
['PureCloud OAuth'],
|
|
1398
1549
|
['application/json'],
|
|
1399
|
-
['application/json']
|
|
1550
|
+
['application/json'],
|
|
1551
|
+
opts['customHeaders']
|
|
1400
1552
|
);
|
|
1401
1553
|
}
|
|
1402
1554
|
|
|
@@ -1405,8 +1557,12 @@ class KnowledgeApi {
|
|
|
1405
1557
|
*
|
|
1406
1558
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
1407
1559
|
* @param {String} syncJobId Synchronization job ID
|
|
1560
|
+
* @param {Object} opts Optional parameters
|
|
1561
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1408
1562
|
*/
|
|
1409
|
-
getKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId) {
|
|
1563
|
+
getKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId, opts) {
|
|
1564
|
+
opts = opts || {};
|
|
1565
|
+
|
|
1410
1566
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1411
1567
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1412
1568
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';
|
|
@@ -1426,7 +1582,8 @@ class KnowledgeApi {
|
|
|
1426
1582
|
null,
|
|
1427
1583
|
['PureCloud OAuth'],
|
|
1428
1584
|
['application/json'],
|
|
1429
|
-
['application/json']
|
|
1585
|
+
['application/json'],
|
|
1586
|
+
opts['customHeaders']
|
|
1430
1587
|
);
|
|
1431
1588
|
}
|
|
1432
1589
|
|
|
@@ -1439,6 +1596,7 @@ class KnowledgeApi {
|
|
|
1439
1596
|
* @param {Object} opts.app The app value to be used for filtering phrases.
|
|
1440
1597
|
* @param {String} opts.dateStart The start date to be used for filtering phrases. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
1441
1598
|
* @param {String} opts.dateEnd The end date to be used for filtering phrases. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
1599
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1442
1600
|
*/
|
|
1443
1601
|
getKnowledgeKnowledgebaseUnansweredGroup(knowledgeBaseId, groupId, opts) {
|
|
1444
1602
|
opts = opts || {};
|
|
@@ -1462,7 +1620,8 @@ class KnowledgeApi {
|
|
|
1462
1620
|
null,
|
|
1463
1621
|
['PureCloud OAuth'],
|
|
1464
1622
|
['application/json'],
|
|
1465
|
-
['application/json']
|
|
1623
|
+
['application/json'],
|
|
1624
|
+
opts['customHeaders']
|
|
1466
1625
|
);
|
|
1467
1626
|
}
|
|
1468
1627
|
|
|
@@ -1476,6 +1635,7 @@ class KnowledgeApi {
|
|
|
1476
1635
|
* @param {Object} opts.app The app value to be used for filtering phrases.
|
|
1477
1636
|
* @param {String} opts.dateStart The start date to be used for filtering phrases. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
1478
1637
|
* @param {String} opts.dateEnd The end date to be used for filtering phrases. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
1638
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1479
1639
|
*/
|
|
1480
1640
|
getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(knowledgeBaseId, groupId, phraseGroupId, opts) {
|
|
1481
1641
|
opts = opts || {};
|
|
@@ -1503,7 +1663,8 @@ class KnowledgeApi {
|
|
|
1503
1663
|
null,
|
|
1504
1664
|
['PureCloud OAuth'],
|
|
1505
1665
|
['application/json'],
|
|
1506
|
-
['application/json']
|
|
1666
|
+
['application/json'],
|
|
1667
|
+
opts['customHeaders']
|
|
1507
1668
|
);
|
|
1508
1669
|
}
|
|
1509
1670
|
|
|
@@ -1515,6 +1676,7 @@ class KnowledgeApi {
|
|
|
1515
1676
|
* @param {Object} opts.app The app value to be used for filtering phrases.
|
|
1516
1677
|
* @param {String} opts.dateStart The start date to be used for filtering phrases. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
1517
1678
|
* @param {String} opts.dateEnd The end date to be used for filtering phrases. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
1679
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1518
1680
|
*/
|
|
1519
1681
|
getKnowledgeKnowledgebaseUnansweredGroups(knowledgeBaseId, opts) {
|
|
1520
1682
|
opts = opts || {};
|
|
@@ -1534,7 +1696,8 @@ class KnowledgeApi {
|
|
|
1534
1696
|
null,
|
|
1535
1697
|
['PureCloud OAuth'],
|
|
1536
1698
|
['application/json'],
|
|
1537
|
-
['application/json']
|
|
1699
|
+
['application/json'],
|
|
1700
|
+
opts['customHeaders']
|
|
1538
1701
|
);
|
|
1539
1702
|
}
|
|
1540
1703
|
|
|
@@ -1543,8 +1706,12 @@ class KnowledgeApi {
|
|
|
1543
1706
|
*
|
|
1544
1707
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
1545
1708
|
* @param {String} jobId Upload job ID
|
|
1709
|
+
* @param {Object} opts Optional parameters
|
|
1710
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1546
1711
|
*/
|
|
1547
|
-
getKnowledgeKnowledgebaseUploadsUrlsJob(knowledgeBaseId, jobId) {
|
|
1712
|
+
getKnowledgeKnowledgebaseUploadsUrlsJob(knowledgeBaseId, jobId, opts) {
|
|
1713
|
+
opts = opts || {};
|
|
1714
|
+
|
|
1548
1715
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1549
1716
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1550
1717
|
throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';
|
|
@@ -1564,7 +1731,8 @@ class KnowledgeApi {
|
|
|
1564
1731
|
null,
|
|
1565
1732
|
['PureCloud OAuth'],
|
|
1566
1733
|
['application/json'],
|
|
1567
|
-
['application/json']
|
|
1734
|
+
['application/json'],
|
|
1735
|
+
opts['customHeaders']
|
|
1568
1736
|
);
|
|
1569
1737
|
}
|
|
1570
1738
|
|
|
@@ -1581,6 +1749,7 @@ class KnowledgeApi {
|
|
|
1581
1749
|
* @param {Boolean} opts.published Filter by published status.
|
|
1582
1750
|
* @param {Object} opts.sortBy Sort by.
|
|
1583
1751
|
* @param {Object} opts.sortOrder Sort Order.
|
|
1752
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1584
1753
|
*/
|
|
1585
1754
|
getKnowledgeKnowledgebases(opts) {
|
|
1586
1755
|
opts = opts || {};
|
|
@@ -1596,7 +1765,8 @@ class KnowledgeApi {
|
|
|
1596
1765
|
null,
|
|
1597
1766
|
['PureCloud OAuth'],
|
|
1598
1767
|
['application/json'],
|
|
1599
|
-
['application/json']
|
|
1768
|
+
['application/json'],
|
|
1769
|
+
opts['customHeaders']
|
|
1600
1770
|
);
|
|
1601
1771
|
}
|
|
1602
1772
|
|
|
@@ -1604,8 +1774,12 @@ class KnowledgeApi {
|
|
|
1604
1774
|
* Get Knowledge setting.
|
|
1605
1775
|
*
|
|
1606
1776
|
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
1777
|
+
* @param {Object} opts Optional parameters
|
|
1778
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1607
1779
|
*/
|
|
1608
|
-
getKnowledgeSetting(knowledgeSettingId) {
|
|
1780
|
+
getKnowledgeSetting(knowledgeSettingId, opts) {
|
|
1781
|
+
opts = opts || {};
|
|
1782
|
+
|
|
1609
1783
|
// verify the required parameter 'knowledgeSettingId' is set
|
|
1610
1784
|
if (knowledgeSettingId === undefined || knowledgeSettingId === null || knowledgeSettingId === '') {
|
|
1611
1785
|
throw 'Missing the required parameter "knowledgeSettingId" when calling getKnowledgeSetting';
|
|
@@ -1621,7 +1795,8 @@ class KnowledgeApi {
|
|
|
1621
1795
|
null,
|
|
1622
1796
|
['PureCloud OAuth'],
|
|
1623
1797
|
['application/json'],
|
|
1624
|
-
['application/json']
|
|
1798
|
+
['application/json'],
|
|
1799
|
+
opts['customHeaders']
|
|
1625
1800
|
);
|
|
1626
1801
|
}
|
|
1627
1802
|
|
|
@@ -1636,6 +1811,7 @@ class KnowledgeApi {
|
|
|
1636
1811
|
* @param {String} opts.sourceId Source ID to filter knowledge settings by.
|
|
1637
1812
|
* @param {Object} opts.sortBy Field to sort the knowledge settings on.
|
|
1638
1813
|
* @param {Object} opts.sortOrder Sorting order for knowledge settings.
|
|
1814
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1639
1815
|
*/
|
|
1640
1816
|
getKnowledgeSettings(opts) {
|
|
1641
1817
|
opts = opts || {};
|
|
@@ -1651,7 +1827,8 @@ class KnowledgeApi {
|
|
|
1651
1827
|
null,
|
|
1652
1828
|
['PureCloud OAuth'],
|
|
1653
1829
|
['application/json'],
|
|
1654
|
-
['application/json']
|
|
1830
|
+
['application/json'],
|
|
1831
|
+
opts['customHeaders']
|
|
1655
1832
|
);
|
|
1656
1833
|
}
|
|
1657
1834
|
|
|
@@ -1661,6 +1838,7 @@ class KnowledgeApi {
|
|
|
1661
1838
|
* @param {String} sourceId Source ID
|
|
1662
1839
|
* @param {Object} opts Optional parameters
|
|
1663
1840
|
* @param {Array.<String>} opts.expand Optional fields to expand for the Source.
|
|
1841
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1664
1842
|
*/
|
|
1665
1843
|
getKnowledgeSource(sourceId, opts) {
|
|
1666
1844
|
opts = opts || {};
|
|
@@ -1680,7 +1858,8 @@ class KnowledgeApi {
|
|
|
1680
1858
|
null,
|
|
1681
1859
|
['PureCloud OAuth'],
|
|
1682
1860
|
['application/json'],
|
|
1683
|
-
['application/json']
|
|
1861
|
+
['application/json'],
|
|
1862
|
+
opts['customHeaders']
|
|
1684
1863
|
);
|
|
1685
1864
|
}
|
|
1686
1865
|
|
|
@@ -1689,8 +1868,12 @@ class KnowledgeApi {
|
|
|
1689
1868
|
*
|
|
1690
1869
|
* @param {String} sourceId Source ID
|
|
1691
1870
|
* @param {String} synchronizationId Synchronization ID
|
|
1871
|
+
* @param {Object} opts Optional parameters
|
|
1872
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1692
1873
|
*/
|
|
1693
|
-
getKnowledgeSourceSynchronization(sourceId, synchronizationId) {
|
|
1874
|
+
getKnowledgeSourceSynchronization(sourceId, synchronizationId, opts) {
|
|
1875
|
+
opts = opts || {};
|
|
1876
|
+
|
|
1694
1877
|
// verify the required parameter 'sourceId' is set
|
|
1695
1878
|
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
1696
1879
|
throw 'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';
|
|
@@ -1710,7 +1893,8 @@ class KnowledgeApi {
|
|
|
1710
1893
|
null,
|
|
1711
1894
|
['PureCloud OAuth'],
|
|
1712
1895
|
['application/json'],
|
|
1713
|
-
['application/json']
|
|
1896
|
+
['application/json'],
|
|
1897
|
+
opts['customHeaders']
|
|
1714
1898
|
);
|
|
1715
1899
|
}
|
|
1716
1900
|
|
|
@@ -1722,6 +1906,7 @@ class KnowledgeApi {
|
|
|
1722
1906
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
1723
1907
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
1724
1908
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1909
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1725
1910
|
*/
|
|
1726
1911
|
getKnowledgeSourceSynchronizations(sourceId, opts) {
|
|
1727
1912
|
opts = opts || {};
|
|
@@ -1741,7 +1926,8 @@ class KnowledgeApi {
|
|
|
1741
1926
|
null,
|
|
1742
1927
|
['PureCloud OAuth'],
|
|
1743
1928
|
['application/json'],
|
|
1744
|
-
['application/json']
|
|
1929
|
+
['application/json'],
|
|
1930
|
+
opts['customHeaders']
|
|
1745
1931
|
);
|
|
1746
1932
|
}
|
|
1747
1933
|
|
|
@@ -1750,6 +1936,7 @@ class KnowledgeApi {
|
|
|
1750
1936
|
*
|
|
1751
1937
|
* @param {Object} opts Optional parameters
|
|
1752
1938
|
* @param {Array.<String>} opts.expand Optional fields to expand for the Source.
|
|
1939
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1753
1940
|
*/
|
|
1754
1941
|
getKnowledgeSources(opts) {
|
|
1755
1942
|
opts = opts || {};
|
|
@@ -1765,7 +1952,8 @@ class KnowledgeApi {
|
|
|
1765
1952
|
null,
|
|
1766
1953
|
['PureCloud OAuth'],
|
|
1767
1954
|
['application/json'],
|
|
1768
|
-
['application/json']
|
|
1955
|
+
['application/json'],
|
|
1956
|
+
opts['customHeaders']
|
|
1769
1957
|
);
|
|
1770
1958
|
}
|
|
1771
1959
|
|
|
@@ -1776,6 +1964,7 @@ class KnowledgeApi {
|
|
|
1776
1964
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
1777
1965
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
1778
1966
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1967
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1779
1968
|
*/
|
|
1780
1969
|
getKnowledgeSourcesSynchronizations(opts) {
|
|
1781
1970
|
opts = opts || {};
|
|
@@ -1791,7 +1980,8 @@ class KnowledgeApi {
|
|
|
1791
1980
|
null,
|
|
1792
1981
|
['PureCloud OAuth'],
|
|
1793
1982
|
['application/json'],
|
|
1794
|
-
['application/json']
|
|
1983
|
+
['application/json'],
|
|
1984
|
+
opts['customHeaders']
|
|
1795
1985
|
);
|
|
1796
1986
|
}
|
|
1797
1987
|
|
|
@@ -1801,6 +1991,7 @@ class KnowledgeApi {
|
|
|
1801
1991
|
* @param {String} connectionId Connection ID
|
|
1802
1992
|
* @param {Object} opts Optional parameters
|
|
1803
1993
|
* @param {Object} opts.body
|
|
1994
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1804
1995
|
*/
|
|
1805
1996
|
patchKnowledgeConnection(connectionId, opts) {
|
|
1806
1997
|
opts = opts || {};
|
|
@@ -1820,7 +2011,8 @@ class KnowledgeApi {
|
|
|
1820
2011
|
opts['body'],
|
|
1821
2012
|
['PureCloud OAuth'],
|
|
1822
2013
|
['application/json'],
|
|
1823
|
-
['application/json']
|
|
2014
|
+
['application/json'],
|
|
2015
|
+
opts['customHeaders']
|
|
1824
2016
|
);
|
|
1825
2017
|
}
|
|
1826
2018
|
|
|
@@ -1830,8 +2022,12 @@ class KnowledgeApi {
|
|
|
1830
2022
|
* @param {String} sessionId Knowledge guest session ID.
|
|
1831
2023
|
* @param {String} searchId Search Result ID
|
|
1832
2024
|
* @param {Object} body
|
|
2025
|
+
* @param {Object} opts Optional parameters
|
|
2026
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1833
2027
|
*/
|
|
1834
|
-
patchKnowledgeGuestSessionDocumentsSearchSearchId(sessionId, searchId, body) {
|
|
2028
|
+
patchKnowledgeGuestSessionDocumentsSearchSearchId(sessionId, searchId, body, opts) {
|
|
2029
|
+
opts = opts || {};
|
|
2030
|
+
|
|
1835
2031
|
// verify the required parameter 'sessionId' is set
|
|
1836
2032
|
if (sessionId === undefined || sessionId === null || sessionId === '') {
|
|
1837
2033
|
throw 'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';
|
|
@@ -1855,7 +2051,8 @@ class KnowledgeApi {
|
|
|
1855
2051
|
body,
|
|
1856
2052
|
['PureCloud OAuth'],
|
|
1857
2053
|
['application/json'],
|
|
1858
|
-
['application/json']
|
|
2054
|
+
['application/json'],
|
|
2055
|
+
opts['customHeaders']
|
|
1859
2056
|
);
|
|
1860
2057
|
}
|
|
1861
2058
|
|
|
@@ -1864,8 +2061,12 @@ class KnowledgeApi {
|
|
|
1864
2061
|
*
|
|
1865
2062
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
1866
2063
|
* @param {Object} body
|
|
2064
|
+
* @param {Object} opts Optional parameters
|
|
2065
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1867
2066
|
*/
|
|
1868
|
-
patchKnowledgeKnowledgebase(knowledgeBaseId, body) {
|
|
2067
|
+
patchKnowledgeKnowledgebase(knowledgeBaseId, body, opts) {
|
|
2068
|
+
opts = opts || {};
|
|
2069
|
+
|
|
1869
2070
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1870
2071
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1871
2072
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';
|
|
@@ -1885,7 +2086,8 @@ class KnowledgeApi {
|
|
|
1885
2086
|
body,
|
|
1886
2087
|
['PureCloud OAuth'],
|
|
1887
2088
|
['application/json'],
|
|
1888
|
-
['application/json']
|
|
2089
|
+
['application/json'],
|
|
2090
|
+
opts['customHeaders']
|
|
1889
2091
|
);
|
|
1890
2092
|
}
|
|
1891
2093
|
|
|
@@ -1895,8 +2097,12 @@ class KnowledgeApi {
|
|
|
1895
2097
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
1896
2098
|
* @param {String} categoryId Category ID
|
|
1897
2099
|
* @param {Object} body
|
|
2100
|
+
* @param {Object} opts Optional parameters
|
|
2101
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1898
2102
|
*/
|
|
1899
|
-
patchKnowledgeKnowledgebaseCategory(knowledgeBaseId, categoryId, body) {
|
|
2103
|
+
patchKnowledgeKnowledgebaseCategory(knowledgeBaseId, categoryId, body, opts) {
|
|
2104
|
+
opts = opts || {};
|
|
2105
|
+
|
|
1900
2106
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1901
2107
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1902
2108
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';
|
|
@@ -1920,7 +2126,8 @@ class KnowledgeApi {
|
|
|
1920
2126
|
body,
|
|
1921
2127
|
['PureCloud OAuth'],
|
|
1922
2128
|
['application/json'],
|
|
1923
|
-
['application/json']
|
|
2129
|
+
['application/json'],
|
|
2130
|
+
opts['customHeaders']
|
|
1924
2131
|
);
|
|
1925
2132
|
}
|
|
1926
2133
|
|
|
@@ -1931,6 +2138,7 @@ class KnowledgeApi {
|
|
|
1931
2138
|
* @param {String} searchId Unique identifier of search request
|
|
1932
2139
|
* @param {Object} opts Optional parameters
|
|
1933
2140
|
* @param {Object} opts.body
|
|
2141
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1934
2142
|
*/
|
|
1935
2143
|
patchKnowledgeKnowledgebaseChunksSearchSearchId(knowledgeBaseId, searchId, opts) {
|
|
1936
2144
|
opts = opts || {};
|
|
@@ -1954,7 +2162,8 @@ class KnowledgeApi {
|
|
|
1954
2162
|
opts['body'],
|
|
1955
2163
|
['PureCloud OAuth'],
|
|
1956
2164
|
['application/json'],
|
|
1957
|
-
['application/json']
|
|
2165
|
+
['application/json'],
|
|
2166
|
+
opts['customHeaders']
|
|
1958
2167
|
);
|
|
1959
2168
|
}
|
|
1960
2169
|
|
|
@@ -1964,8 +2173,12 @@ class KnowledgeApi {
|
|
|
1964
2173
|
* @param {String} knowledgeBaseId Knowledge base ID.
|
|
1965
2174
|
* @param {String} documentId Document ID.
|
|
1966
2175
|
* @param {Object} body
|
|
2176
|
+
* @param {Object} opts Optional parameters
|
|
2177
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1967
2178
|
*/
|
|
1968
|
-
patchKnowledgeKnowledgebaseDocument(knowledgeBaseId, documentId, body) {
|
|
2179
|
+
patchKnowledgeKnowledgebaseDocument(knowledgeBaseId, documentId, body, opts) {
|
|
2180
|
+
opts = opts || {};
|
|
2181
|
+
|
|
1969
2182
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
1970
2183
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
1971
2184
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';
|
|
@@ -1989,7 +2202,8 @@ class KnowledgeApi {
|
|
|
1989
2202
|
body,
|
|
1990
2203
|
['PureCloud OAuth'],
|
|
1991
2204
|
['application/json'],
|
|
1992
|
-
['application/json']
|
|
2205
|
+
['application/json'],
|
|
2206
|
+
opts['customHeaders']
|
|
1993
2207
|
);
|
|
1994
2208
|
}
|
|
1995
2209
|
|
|
@@ -2001,6 +2215,7 @@ class KnowledgeApi {
|
|
|
2001
2215
|
* @param {String} feedbackId Feedback ID.
|
|
2002
2216
|
* @param {Object} opts Optional parameters
|
|
2003
2217
|
* @param {Object} opts.body
|
|
2218
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2004
2219
|
*/
|
|
2005
2220
|
patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(knowledgeBaseId, documentId, feedbackId, opts) {
|
|
2006
2221
|
opts = opts || {};
|
|
@@ -2028,7 +2243,8 @@ class KnowledgeApi {
|
|
|
2028
2243
|
opts['body'],
|
|
2029
2244
|
['PureCloud OAuth'],
|
|
2030
2245
|
['application/json'],
|
|
2031
|
-
['application/json']
|
|
2246
|
+
['application/json'],
|
|
2247
|
+
opts['customHeaders']
|
|
2032
2248
|
);
|
|
2033
2249
|
}
|
|
2034
2250
|
|
|
@@ -2039,8 +2255,12 @@ class KnowledgeApi {
|
|
|
2039
2255
|
* @param {String} documentId Globally unique identifier for a document.
|
|
2040
2256
|
* @param {String} knowledgeBaseId Globally unique identifier for a knowledge base.
|
|
2041
2257
|
* @param {Object} body
|
|
2258
|
+
* @param {Object} opts Optional parameters
|
|
2259
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2042
2260
|
*/
|
|
2043
|
-
patchKnowledgeKnowledgebaseDocumentVariation(documentVariationId, documentId, knowledgeBaseId, body) {
|
|
2261
|
+
patchKnowledgeKnowledgebaseDocumentVariation(documentVariationId, documentId, knowledgeBaseId, body, opts) {
|
|
2262
|
+
opts = opts || {};
|
|
2263
|
+
|
|
2044
2264
|
// verify the required parameter 'documentVariationId' is set
|
|
2045
2265
|
if (documentVariationId === undefined || documentVariationId === null || documentVariationId === '') {
|
|
2046
2266
|
throw 'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';
|
|
@@ -2068,7 +2288,8 @@ class KnowledgeApi {
|
|
|
2068
2288
|
body,
|
|
2069
2289
|
['PureCloud OAuth'],
|
|
2070
2290
|
['application/json'],
|
|
2071
|
-
['application/json']
|
|
2291
|
+
['application/json'],
|
|
2292
|
+
opts['customHeaders']
|
|
2072
2293
|
);
|
|
2073
2294
|
}
|
|
2074
2295
|
|
|
@@ -2079,6 +2300,7 @@ class KnowledgeApi {
|
|
|
2079
2300
|
* @param {String} searchId Search Result ID
|
|
2080
2301
|
* @param {Object} opts Optional parameters
|
|
2081
2302
|
* @param {Object} opts.body
|
|
2303
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2082
2304
|
*/
|
|
2083
2305
|
patchKnowledgeKnowledgebaseDocumentsSearchSearchId(knowledgeBaseId, searchId, opts) {
|
|
2084
2306
|
opts = opts || {};
|
|
@@ -2102,7 +2324,8 @@ class KnowledgeApi {
|
|
|
2102
2324
|
opts['body'],
|
|
2103
2325
|
['PureCloud OAuth'],
|
|
2104
2326
|
['application/json'],
|
|
2105
|
-
['application/json']
|
|
2327
|
+
['application/json'],
|
|
2328
|
+
opts['customHeaders']
|
|
2106
2329
|
);
|
|
2107
2330
|
}
|
|
2108
2331
|
|
|
@@ -2112,8 +2335,12 @@ class KnowledgeApi {
|
|
|
2112
2335
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2113
2336
|
* @param {String} importJobId Import job ID
|
|
2114
2337
|
* @param {Object} body
|
|
2338
|
+
* @param {Object} opts Optional parameters
|
|
2339
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2115
2340
|
*/
|
|
2116
|
-
patchKnowledgeKnowledgebaseImportJob(knowledgeBaseId, importJobId, body) {
|
|
2341
|
+
patchKnowledgeKnowledgebaseImportJob(knowledgeBaseId, importJobId, body, opts) {
|
|
2342
|
+
opts = opts || {};
|
|
2343
|
+
|
|
2117
2344
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2118
2345
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2119
2346
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';
|
|
@@ -2137,7 +2364,8 @@ class KnowledgeApi {
|
|
|
2137
2364
|
body,
|
|
2138
2365
|
['PureCloud OAuth'],
|
|
2139
2366
|
['application/json'],
|
|
2140
|
-
['application/json']
|
|
2367
|
+
['application/json'],
|
|
2368
|
+
opts['customHeaders']
|
|
2141
2369
|
);
|
|
2142
2370
|
}
|
|
2143
2371
|
|
|
@@ -2147,8 +2375,12 @@ class KnowledgeApi {
|
|
|
2147
2375
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2148
2376
|
* @param {String} labelId Label ID
|
|
2149
2377
|
* @param {Object} body
|
|
2378
|
+
* @param {Object} opts Optional parameters
|
|
2379
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2150
2380
|
*/
|
|
2151
|
-
patchKnowledgeKnowledgebaseLabel(knowledgeBaseId, labelId, body) {
|
|
2381
|
+
patchKnowledgeKnowledgebaseLabel(knowledgeBaseId, labelId, body, opts) {
|
|
2382
|
+
opts = opts || {};
|
|
2383
|
+
|
|
2152
2384
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2153
2385
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2154
2386
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';
|
|
@@ -2172,7 +2404,8 @@ class KnowledgeApi {
|
|
|
2172
2404
|
body,
|
|
2173
2405
|
['PureCloud OAuth'],
|
|
2174
2406
|
['application/json'],
|
|
2175
|
-
['application/json']
|
|
2407
|
+
['application/json'],
|
|
2408
|
+
opts['customHeaders']
|
|
2176
2409
|
);
|
|
2177
2410
|
}
|
|
2178
2411
|
|
|
@@ -2182,8 +2415,12 @@ class KnowledgeApi {
|
|
|
2182
2415
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2183
2416
|
* @param {String} parseJobId Parse job ID
|
|
2184
2417
|
* @param {Object} body
|
|
2418
|
+
* @param {Object} opts Optional parameters
|
|
2419
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2185
2420
|
*/
|
|
2186
|
-
patchKnowledgeKnowledgebaseParseJob(knowledgeBaseId, parseJobId, body) {
|
|
2421
|
+
patchKnowledgeKnowledgebaseParseJob(knowledgeBaseId, parseJobId, body, opts) {
|
|
2422
|
+
opts = opts || {};
|
|
2423
|
+
|
|
2187
2424
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2188
2425
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2189
2426
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';
|
|
@@ -2207,7 +2444,8 @@ class KnowledgeApi {
|
|
|
2207
2444
|
body,
|
|
2208
2445
|
['PureCloud OAuth'],
|
|
2209
2446
|
['application/json'],
|
|
2210
|
-
['application/json']
|
|
2447
|
+
['application/json'],
|
|
2448
|
+
opts['customHeaders']
|
|
2211
2449
|
);
|
|
2212
2450
|
}
|
|
2213
2451
|
|
|
@@ -2217,8 +2455,12 @@ class KnowledgeApi {
|
|
|
2217
2455
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2218
2456
|
* @param {String} syncJobId Synchronization job ID
|
|
2219
2457
|
* @param {Object} body
|
|
2458
|
+
* @param {Object} opts Optional parameters
|
|
2459
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2220
2460
|
*/
|
|
2221
|
-
patchKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId, body) {
|
|
2461
|
+
patchKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId, body, opts) {
|
|
2462
|
+
opts = opts || {};
|
|
2463
|
+
|
|
2222
2464
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2223
2465
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2224
2466
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';
|
|
@@ -2242,7 +2484,8 @@ class KnowledgeApi {
|
|
|
2242
2484
|
body,
|
|
2243
2485
|
['PureCloud OAuth'],
|
|
2244
2486
|
['application/json'],
|
|
2245
|
-
['application/json']
|
|
2487
|
+
['application/json'],
|
|
2488
|
+
opts['customHeaders']
|
|
2246
2489
|
);
|
|
2247
2490
|
}
|
|
2248
2491
|
|
|
@@ -2253,8 +2496,12 @@ class KnowledgeApi {
|
|
|
2253
2496
|
* @param {String} groupId The ID of the group to be updated.
|
|
2254
2497
|
* @param {String} phraseGroupId The ID of the phraseGroup to be updated.
|
|
2255
2498
|
* @param {Object} body Request body of the update unanswered group endpoint.
|
|
2499
|
+
* @param {Object} opts Optional parameters
|
|
2500
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2256
2501
|
*/
|
|
2257
|
-
patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(knowledgeBaseId, groupId, phraseGroupId, body) {
|
|
2502
|
+
patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(knowledgeBaseId, groupId, phraseGroupId, body, opts) {
|
|
2503
|
+
opts = opts || {};
|
|
2504
|
+
|
|
2258
2505
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2259
2506
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2260
2507
|
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';
|
|
@@ -2282,7 +2529,8 @@ class KnowledgeApi {
|
|
|
2282
2529
|
body,
|
|
2283
2530
|
['PureCloud OAuth'],
|
|
2284
2531
|
['application/json'],
|
|
2285
|
-
['application/json']
|
|
2532
|
+
['application/json'],
|
|
2533
|
+
opts['customHeaders']
|
|
2286
2534
|
);
|
|
2287
2535
|
}
|
|
2288
2536
|
|
|
@@ -2291,8 +2539,12 @@ class KnowledgeApi {
|
|
|
2291
2539
|
*
|
|
2292
2540
|
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
2293
2541
|
* @param {Object} body
|
|
2542
|
+
* @param {Object} opts Optional parameters
|
|
2543
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2294
2544
|
*/
|
|
2295
|
-
patchKnowledgeSetting(knowledgeSettingId, body) {
|
|
2545
|
+
patchKnowledgeSetting(knowledgeSettingId, body, opts) {
|
|
2546
|
+
opts = opts || {};
|
|
2547
|
+
|
|
2296
2548
|
// verify the required parameter 'knowledgeSettingId' is set
|
|
2297
2549
|
if (knowledgeSettingId === undefined || knowledgeSettingId === null || knowledgeSettingId === '') {
|
|
2298
2550
|
throw 'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';
|
|
@@ -2312,7 +2564,8 @@ class KnowledgeApi {
|
|
|
2312
2564
|
body,
|
|
2313
2565
|
['PureCloud OAuth'],
|
|
2314
2566
|
['application/json'],
|
|
2315
|
-
['application/json']
|
|
2567
|
+
['application/json'],
|
|
2568
|
+
opts['customHeaders']
|
|
2316
2569
|
);
|
|
2317
2570
|
}
|
|
2318
2571
|
|
|
@@ -2322,8 +2575,12 @@ class KnowledgeApi {
|
|
|
2322
2575
|
* @param {String} sourceId Source ID
|
|
2323
2576
|
* @param {String} synchronizationId Synchronization ID
|
|
2324
2577
|
* @param {Object} body
|
|
2578
|
+
* @param {Object} opts Optional parameters
|
|
2579
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2325
2580
|
*/
|
|
2326
|
-
patchKnowledgeSourceSynchronization(sourceId, synchronizationId, body) {
|
|
2581
|
+
patchKnowledgeSourceSynchronization(sourceId, synchronizationId, body, opts) {
|
|
2582
|
+
opts = opts || {};
|
|
2583
|
+
|
|
2327
2584
|
// verify the required parameter 'sourceId' is set
|
|
2328
2585
|
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
2329
2586
|
throw 'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';
|
|
@@ -2347,7 +2604,8 @@ class KnowledgeApi {
|
|
|
2347
2604
|
body,
|
|
2348
2605
|
['PureCloud OAuth'],
|
|
2349
2606
|
['application/json'],
|
|
2350
|
-
['application/json']
|
|
2607
|
+
['application/json'],
|
|
2608
|
+
opts['customHeaders']
|
|
2351
2609
|
);
|
|
2352
2610
|
}
|
|
2353
2611
|
|
|
@@ -2355,8 +2613,12 @@ class KnowledgeApi {
|
|
|
2355
2613
|
* Create new connection
|
|
2356
2614
|
*
|
|
2357
2615
|
* @param {Object} body
|
|
2616
|
+
* @param {Object} opts Optional parameters
|
|
2617
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2358
2618
|
*/
|
|
2359
|
-
postKnowledgeConnections(body) {
|
|
2619
|
+
postKnowledgeConnections(body, opts) {
|
|
2620
|
+
opts = opts || {};
|
|
2621
|
+
|
|
2360
2622
|
// verify the required parameter 'body' is set
|
|
2361
2623
|
if (body === undefined || body === null) {
|
|
2362
2624
|
throw 'Missing the required parameter "body" when calling postKnowledgeConnections';
|
|
@@ -2372,7 +2634,8 @@ class KnowledgeApi {
|
|
|
2372
2634
|
body,
|
|
2373
2635
|
['PureCloud OAuth'],
|
|
2374
2636
|
['application/json'],
|
|
2375
|
-
['application/json']
|
|
2637
|
+
['application/json'],
|
|
2638
|
+
opts['customHeaders']
|
|
2376
2639
|
);
|
|
2377
2640
|
}
|
|
2378
2641
|
|
|
@@ -2380,8 +2643,12 @@ class KnowledgeApi {
|
|
|
2380
2643
|
* Creates a presigned URL for uploading a knowledge import file with a set of documents
|
|
2381
2644
|
*
|
|
2382
2645
|
* @param {Object} body query
|
|
2646
|
+
* @param {Object} opts Optional parameters
|
|
2647
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2383
2648
|
*/
|
|
2384
|
-
postKnowledgeDocumentuploads(body) {
|
|
2649
|
+
postKnowledgeDocumentuploads(body, opts) {
|
|
2650
|
+
opts = opts || {};
|
|
2651
|
+
|
|
2385
2652
|
// verify the required parameter 'body' is set
|
|
2386
2653
|
if (body === undefined || body === null) {
|
|
2387
2654
|
throw 'Missing the required parameter "body" when calling postKnowledgeDocumentuploads';
|
|
@@ -2397,7 +2664,8 @@ class KnowledgeApi {
|
|
|
2397
2664
|
body,
|
|
2398
2665
|
['PureCloud OAuth'],
|
|
2399
2666
|
['application/json'],
|
|
2400
|
-
['application/json']
|
|
2667
|
+
['application/json'],
|
|
2668
|
+
opts['customHeaders']
|
|
2401
2669
|
);
|
|
2402
2670
|
}
|
|
2403
2671
|
|
|
@@ -2408,6 +2676,7 @@ class KnowledgeApi {
|
|
|
2408
2676
|
* @param {String} documentId Document ID
|
|
2409
2677
|
* @param {Object} opts Optional parameters
|
|
2410
2678
|
* @param {Object} opts.body
|
|
2679
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2411
2680
|
*/
|
|
2412
2681
|
postKnowledgeGuestSessionDocumentCopies(sessionId, documentId, opts) {
|
|
2413
2682
|
opts = opts || {};
|
|
@@ -2431,7 +2700,8 @@ class KnowledgeApi {
|
|
|
2431
2700
|
opts['body'],
|
|
2432
2701
|
['PureCloud OAuth'],
|
|
2433
2702
|
['application/json'],
|
|
2434
|
-
['application/json']
|
|
2703
|
+
['application/json'],
|
|
2704
|
+
opts['customHeaders']
|
|
2435
2705
|
);
|
|
2436
2706
|
}
|
|
2437
2707
|
|
|
@@ -2442,6 +2712,7 @@ class KnowledgeApi {
|
|
|
2442
2712
|
* @param {String} documentId Document ID.
|
|
2443
2713
|
* @param {Object} opts Optional parameters
|
|
2444
2714
|
* @param {Object} opts.body
|
|
2715
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2445
2716
|
*/
|
|
2446
2717
|
postKnowledgeGuestSessionDocumentFeedback(sessionId, documentId, opts) {
|
|
2447
2718
|
opts = opts || {};
|
|
@@ -2465,7 +2736,8 @@ class KnowledgeApi {
|
|
|
2465
2736
|
opts['body'],
|
|
2466
2737
|
['PureCloud OAuth'],
|
|
2467
2738
|
['application/json'],
|
|
2468
|
-
['application/json']
|
|
2739
|
+
['application/json'],
|
|
2740
|
+
opts['customHeaders']
|
|
2469
2741
|
);
|
|
2470
2742
|
}
|
|
2471
2743
|
|
|
@@ -2476,6 +2748,7 @@ class KnowledgeApi {
|
|
|
2476
2748
|
* @param {String} documentId Document ID
|
|
2477
2749
|
* @param {Object} opts Optional parameters
|
|
2478
2750
|
* @param {Object} opts.body
|
|
2751
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2479
2752
|
*/
|
|
2480
2753
|
postKnowledgeGuestSessionDocumentViews(sessionId, documentId, opts) {
|
|
2481
2754
|
opts = opts || {};
|
|
@@ -2499,7 +2772,8 @@ class KnowledgeApi {
|
|
|
2499
2772
|
opts['body'],
|
|
2500
2773
|
['PureCloud OAuth'],
|
|
2501
2774
|
['application/json'],
|
|
2502
|
-
['application/json']
|
|
2775
|
+
['application/json'],
|
|
2776
|
+
opts['customHeaders']
|
|
2503
2777
|
);
|
|
2504
2778
|
}
|
|
2505
2779
|
|
|
@@ -2508,8 +2782,12 @@ class KnowledgeApi {
|
|
|
2508
2782
|
*
|
|
2509
2783
|
* @param {String} sessionId Knowledge guest session ID.
|
|
2510
2784
|
* @param {Object} body
|
|
2785
|
+
* @param {Object} opts Optional parameters
|
|
2786
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2511
2787
|
*/
|
|
2512
|
-
postKnowledgeGuestSessionDocumentsAnswers(sessionId, body) {
|
|
2788
|
+
postKnowledgeGuestSessionDocumentsAnswers(sessionId, body, opts) {
|
|
2789
|
+
opts = opts || {};
|
|
2790
|
+
|
|
2513
2791
|
// verify the required parameter 'sessionId' is set
|
|
2514
2792
|
if (sessionId === undefined || sessionId === null || sessionId === '') {
|
|
2515
2793
|
throw 'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';
|
|
@@ -2529,7 +2807,8 @@ class KnowledgeApi {
|
|
|
2529
2807
|
body,
|
|
2530
2808
|
['PureCloud OAuth'],
|
|
2531
2809
|
['application/json'],
|
|
2532
|
-
['application/json']
|
|
2810
|
+
['application/json'],
|
|
2811
|
+
opts['customHeaders']
|
|
2533
2812
|
);
|
|
2534
2813
|
}
|
|
2535
2814
|
|
|
@@ -2539,6 +2818,7 @@ class KnowledgeApi {
|
|
|
2539
2818
|
* @param {String} sessionId Knowledge guest session ID.
|
|
2540
2819
|
* @param {Object} opts Optional parameters
|
|
2541
2820
|
* @param {Object} opts.body
|
|
2821
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2542
2822
|
*/
|
|
2543
2823
|
postKnowledgeGuestSessionDocumentsPresentations(sessionId, opts) {
|
|
2544
2824
|
opts = opts || {};
|
|
@@ -2558,7 +2838,8 @@ class KnowledgeApi {
|
|
|
2558
2838
|
opts['body'],
|
|
2559
2839
|
['PureCloud OAuth'],
|
|
2560
2840
|
['application/json'],
|
|
2561
|
-
['application/json']
|
|
2841
|
+
['application/json'],
|
|
2842
|
+
opts['customHeaders']
|
|
2562
2843
|
);
|
|
2563
2844
|
}
|
|
2564
2845
|
|
|
@@ -2569,6 +2850,7 @@ class KnowledgeApi {
|
|
|
2569
2850
|
* @param {Object} opts Optional parameters
|
|
2570
2851
|
* @param {Array.<String>} opts.expand Fields, if any, to expand for each document in the search result matching the query.
|
|
2571
2852
|
* @param {Object} opts.body
|
|
2853
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2572
2854
|
*/
|
|
2573
2855
|
postKnowledgeGuestSessionDocumentsSearch(sessionId, opts) {
|
|
2574
2856
|
opts = opts || {};
|
|
@@ -2588,7 +2870,8 @@ class KnowledgeApi {
|
|
|
2588
2870
|
opts['body'],
|
|
2589
2871
|
['PureCloud OAuth'],
|
|
2590
2872
|
['application/json'],
|
|
2591
|
-
['application/json']
|
|
2873
|
+
['application/json'],
|
|
2874
|
+
opts['customHeaders']
|
|
2592
2875
|
);
|
|
2593
2876
|
}
|
|
2594
2877
|
|
|
@@ -2598,6 +2881,7 @@ class KnowledgeApi {
|
|
|
2598
2881
|
* @param {String} sessionId Knowledge guest session ID.
|
|
2599
2882
|
* @param {Object} opts Optional parameters
|
|
2600
2883
|
* @param {Object} opts.body
|
|
2884
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2601
2885
|
*/
|
|
2602
2886
|
postKnowledgeGuestSessionDocumentsSearchSuggestions(sessionId, opts) {
|
|
2603
2887
|
opts = opts || {};
|
|
@@ -2617,7 +2901,8 @@ class KnowledgeApi {
|
|
|
2617
2901
|
opts['body'],
|
|
2618
2902
|
['PureCloud OAuth'],
|
|
2619
2903
|
['application/json'],
|
|
2620
|
-
['application/json']
|
|
2904
|
+
['application/json'],
|
|
2905
|
+
opts['customHeaders']
|
|
2621
2906
|
);
|
|
2622
2907
|
}
|
|
2623
2908
|
|
|
@@ -2625,8 +2910,12 @@ class KnowledgeApi {
|
|
|
2625
2910
|
* Create guest session
|
|
2626
2911
|
*
|
|
2627
2912
|
* @param {Object} body
|
|
2913
|
+
* @param {Object} opts Optional parameters
|
|
2914
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2628
2915
|
*/
|
|
2629
|
-
postKnowledgeGuestSessions(body) {
|
|
2916
|
+
postKnowledgeGuestSessions(body, opts) {
|
|
2917
|
+
opts = opts || {};
|
|
2918
|
+
|
|
2630
2919
|
// verify the required parameter 'body' is set
|
|
2631
2920
|
if (body === undefined || body === null) {
|
|
2632
2921
|
throw 'Missing the required parameter "body" when calling postKnowledgeGuestSessions';
|
|
@@ -2642,7 +2931,8 @@ class KnowledgeApi {
|
|
|
2642
2931
|
body,
|
|
2643
2932
|
['PureCloud OAuth'],
|
|
2644
2933
|
['application/json'],
|
|
2645
|
-
['application/json']
|
|
2934
|
+
['application/json'],
|
|
2935
|
+
opts['customHeaders']
|
|
2646
2936
|
);
|
|
2647
2937
|
}
|
|
2648
2938
|
|
|
@@ -2651,8 +2941,12 @@ class KnowledgeApi {
|
|
|
2651
2941
|
*
|
|
2652
2942
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2653
2943
|
* @param {Object} body
|
|
2944
|
+
* @param {Object} opts Optional parameters
|
|
2945
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2654
2946
|
*/
|
|
2655
|
-
postKnowledgeKnowledgebaseCategories(knowledgeBaseId, body) {
|
|
2947
|
+
postKnowledgeKnowledgebaseCategories(knowledgeBaseId, body, opts) {
|
|
2948
|
+
opts = opts || {};
|
|
2949
|
+
|
|
2656
2950
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2657
2951
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2658
2952
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';
|
|
@@ -2672,7 +2966,8 @@ class KnowledgeApi {
|
|
|
2672
2966
|
body,
|
|
2673
2967
|
['PureCloud OAuth'],
|
|
2674
2968
|
['application/json'],
|
|
2675
|
-
['application/json']
|
|
2969
|
+
['application/json'],
|
|
2970
|
+
opts['customHeaders']
|
|
2676
2971
|
);
|
|
2677
2972
|
}
|
|
2678
2973
|
|
|
@@ -2682,6 +2977,7 @@ class KnowledgeApi {
|
|
|
2682
2977
|
* @param {String} knowledgeBaseId Knowledge Base ID
|
|
2683
2978
|
* @param {Object} opts Optional parameters
|
|
2684
2979
|
* @param {Object} opts.body
|
|
2980
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2685
2981
|
*/
|
|
2686
2982
|
postKnowledgeKnowledgebaseChunksSearch(knowledgeBaseId, opts) {
|
|
2687
2983
|
opts = opts || {};
|
|
@@ -2701,7 +2997,8 @@ class KnowledgeApi {
|
|
|
2701
2997
|
opts['body'],
|
|
2702
2998
|
['PureCloud OAuth'],
|
|
2703
2999
|
['application/json'],
|
|
2704
|
-
['application/json']
|
|
3000
|
+
['application/json'],
|
|
3001
|
+
opts['customHeaders']
|
|
2705
3002
|
);
|
|
2706
3003
|
}
|
|
2707
3004
|
|
|
@@ -2712,6 +3009,7 @@ class KnowledgeApi {
|
|
|
2712
3009
|
* @param {String} documentId Document ID.
|
|
2713
3010
|
* @param {Object} opts Optional parameters
|
|
2714
3011
|
* @param {Object} opts.body
|
|
3012
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2715
3013
|
*/
|
|
2716
3014
|
postKnowledgeKnowledgebaseDocumentCopies(knowledgeBaseId, documentId, opts) {
|
|
2717
3015
|
opts = opts || {};
|
|
@@ -2735,7 +3033,8 @@ class KnowledgeApi {
|
|
|
2735
3033
|
opts['body'],
|
|
2736
3034
|
['PureCloud OAuth'],
|
|
2737
3035
|
['application/json'],
|
|
2738
|
-
['application/json']
|
|
3036
|
+
['application/json'],
|
|
3037
|
+
opts['customHeaders']
|
|
2739
3038
|
);
|
|
2740
3039
|
}
|
|
2741
3040
|
|
|
@@ -2746,6 +3045,7 @@ class KnowledgeApi {
|
|
|
2746
3045
|
* @param {String} documentId Document ID.
|
|
2747
3046
|
* @param {Object} opts Optional parameters
|
|
2748
3047
|
* @param {Object} opts.body
|
|
3048
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2749
3049
|
*/
|
|
2750
3050
|
postKnowledgeKnowledgebaseDocumentFeedback(knowledgeBaseId, documentId, opts) {
|
|
2751
3051
|
opts = opts || {};
|
|
@@ -2769,7 +3069,8 @@ class KnowledgeApi {
|
|
|
2769
3069
|
opts['body'],
|
|
2770
3070
|
['PureCloud OAuth'],
|
|
2771
3071
|
['application/json'],
|
|
2772
|
-
['application/json']
|
|
3072
|
+
['application/json'],
|
|
3073
|
+
opts['customHeaders']
|
|
2773
3074
|
);
|
|
2774
3075
|
}
|
|
2775
3076
|
|
|
@@ -2779,8 +3080,12 @@ class KnowledgeApi {
|
|
|
2779
3080
|
* @param {String} knowledgeBaseId Globally unique identifier for the knowledge base.
|
|
2780
3081
|
* @param {String} documentId Globally unique identifier for the document.
|
|
2781
3082
|
* @param {Object} body
|
|
3083
|
+
* @param {Object} opts Optional parameters
|
|
3084
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2782
3085
|
*/
|
|
2783
|
-
postKnowledgeKnowledgebaseDocumentVariations(knowledgeBaseId, documentId, body) {
|
|
3086
|
+
postKnowledgeKnowledgebaseDocumentVariations(knowledgeBaseId, documentId, body, opts) {
|
|
3087
|
+
opts = opts || {};
|
|
3088
|
+
|
|
2784
3089
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2785
3090
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2786
3091
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';
|
|
@@ -2804,7 +3109,8 @@ class KnowledgeApi {
|
|
|
2804
3109
|
body,
|
|
2805
3110
|
['PureCloud OAuth'],
|
|
2806
3111
|
['application/json'],
|
|
2807
|
-
['application/json']
|
|
3112
|
+
['application/json'],
|
|
3113
|
+
opts['customHeaders']
|
|
2808
3114
|
);
|
|
2809
3115
|
}
|
|
2810
3116
|
|
|
@@ -2814,8 +3120,12 @@ class KnowledgeApi {
|
|
|
2814
3120
|
* @param {String} knowledgeBaseId Globally unique identifier for the knowledge base.
|
|
2815
3121
|
* @param {String} documentId Globally unique identifier for the document.
|
|
2816
3122
|
* @param {Object} body
|
|
3123
|
+
* @param {Object} opts Optional parameters
|
|
3124
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2817
3125
|
*/
|
|
2818
|
-
postKnowledgeKnowledgebaseDocumentVersions(knowledgeBaseId, documentId, body) {
|
|
3126
|
+
postKnowledgeKnowledgebaseDocumentVersions(knowledgeBaseId, documentId, body, opts) {
|
|
3127
|
+
opts = opts || {};
|
|
3128
|
+
|
|
2819
3129
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2820
3130
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2821
3131
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';
|
|
@@ -2839,7 +3149,8 @@ class KnowledgeApi {
|
|
|
2839
3149
|
body,
|
|
2840
3150
|
['PureCloud OAuth'],
|
|
2841
3151
|
['application/json'],
|
|
2842
|
-
['application/json']
|
|
3152
|
+
['application/json'],
|
|
3153
|
+
opts['customHeaders']
|
|
2843
3154
|
);
|
|
2844
3155
|
}
|
|
2845
3156
|
|
|
@@ -2850,6 +3161,7 @@ class KnowledgeApi {
|
|
|
2850
3161
|
* @param {String} documentId Document ID.
|
|
2851
3162
|
* @param {Object} opts Optional parameters
|
|
2852
3163
|
* @param {Object} opts.body
|
|
3164
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2853
3165
|
*/
|
|
2854
3166
|
postKnowledgeKnowledgebaseDocumentViews(knowledgeBaseId, documentId, opts) {
|
|
2855
3167
|
opts = opts || {};
|
|
@@ -2873,7 +3185,8 @@ class KnowledgeApi {
|
|
|
2873
3185
|
opts['body'],
|
|
2874
3186
|
['PureCloud OAuth'],
|
|
2875
3187
|
['application/json'],
|
|
2876
|
-
['application/json']
|
|
3188
|
+
['application/json'],
|
|
3189
|
+
opts['customHeaders']
|
|
2877
3190
|
);
|
|
2878
3191
|
}
|
|
2879
3192
|
|
|
@@ -2882,8 +3195,12 @@ class KnowledgeApi {
|
|
|
2882
3195
|
*
|
|
2883
3196
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2884
3197
|
* @param {Object} body
|
|
3198
|
+
* @param {Object} opts Optional parameters
|
|
3199
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2885
3200
|
*/
|
|
2886
|
-
postKnowledgeKnowledgebaseDocuments(knowledgeBaseId, body) {
|
|
3201
|
+
postKnowledgeKnowledgebaseDocuments(knowledgeBaseId, body, opts) {
|
|
3202
|
+
opts = opts || {};
|
|
3203
|
+
|
|
2887
3204
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2888
3205
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2889
3206
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';
|
|
@@ -2903,7 +3220,8 @@ class KnowledgeApi {
|
|
|
2903
3220
|
body,
|
|
2904
3221
|
['PureCloud OAuth'],
|
|
2905
3222
|
['application/json'],
|
|
2906
|
-
['application/json']
|
|
3223
|
+
['application/json'],
|
|
3224
|
+
opts['customHeaders']
|
|
2907
3225
|
);
|
|
2908
3226
|
}
|
|
2909
3227
|
|
|
@@ -2912,8 +3230,12 @@ class KnowledgeApi {
|
|
|
2912
3230
|
*
|
|
2913
3231
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2914
3232
|
* @param {Object} body
|
|
3233
|
+
* @param {Object} opts Optional parameters
|
|
3234
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2915
3235
|
*/
|
|
2916
|
-
postKnowledgeKnowledgebaseDocumentsAnswers(knowledgeBaseId, body) {
|
|
3236
|
+
postKnowledgeKnowledgebaseDocumentsAnswers(knowledgeBaseId, body, opts) {
|
|
3237
|
+
opts = opts || {};
|
|
3238
|
+
|
|
2917
3239
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2918
3240
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2919
3241
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';
|
|
@@ -2933,7 +3255,8 @@ class KnowledgeApi {
|
|
|
2933
3255
|
body,
|
|
2934
3256
|
['PureCloud OAuth'],
|
|
2935
3257
|
['application/json'],
|
|
2936
|
-
['application/json']
|
|
3258
|
+
['application/json'],
|
|
3259
|
+
opts['customHeaders']
|
|
2937
3260
|
);
|
|
2938
3261
|
}
|
|
2939
3262
|
|
|
@@ -2942,8 +3265,12 @@ class KnowledgeApi {
|
|
|
2942
3265
|
*
|
|
2943
3266
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2944
3267
|
* @param {Object} body
|
|
3268
|
+
* @param {Object} opts Optional parameters
|
|
3269
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2945
3270
|
*/
|
|
2946
|
-
postKnowledgeKnowledgebaseDocumentsBulkRemove(knowledgeBaseId, body) {
|
|
3271
|
+
postKnowledgeKnowledgebaseDocumentsBulkRemove(knowledgeBaseId, body, opts) {
|
|
3272
|
+
opts = opts || {};
|
|
3273
|
+
|
|
2947
3274
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2948
3275
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2949
3276
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';
|
|
@@ -2963,7 +3290,8 @@ class KnowledgeApi {
|
|
|
2963
3290
|
body,
|
|
2964
3291
|
['PureCloud OAuth'],
|
|
2965
3292
|
['application/json'],
|
|
2966
|
-
['application/json']
|
|
3293
|
+
['application/json'],
|
|
3294
|
+
opts['customHeaders']
|
|
2967
3295
|
);
|
|
2968
3296
|
}
|
|
2969
3297
|
|
|
@@ -2972,8 +3300,12 @@ class KnowledgeApi {
|
|
|
2972
3300
|
*
|
|
2973
3301
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2974
3302
|
* @param {Object} body
|
|
3303
|
+
* @param {Object} opts Optional parameters
|
|
3304
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2975
3305
|
*/
|
|
2976
|
-
postKnowledgeKnowledgebaseDocumentsBulkUpdate(knowledgeBaseId, body) {
|
|
3306
|
+
postKnowledgeKnowledgebaseDocumentsBulkUpdate(knowledgeBaseId, body, opts) {
|
|
3307
|
+
opts = opts || {};
|
|
3308
|
+
|
|
2977
3309
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
2978
3310
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
2979
3311
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';
|
|
@@ -2993,7 +3325,8 @@ class KnowledgeApi {
|
|
|
2993
3325
|
body,
|
|
2994
3326
|
['PureCloud OAuth'],
|
|
2995
3327
|
['application/json'],
|
|
2996
|
-
['application/json']
|
|
3328
|
+
['application/json'],
|
|
3329
|
+
opts['customHeaders']
|
|
2997
3330
|
);
|
|
2998
3331
|
}
|
|
2999
3332
|
|
|
@@ -3003,6 +3336,7 @@ class KnowledgeApi {
|
|
|
3003
3336
|
* @param {String} knowledgeBaseId Knowledge base ID.
|
|
3004
3337
|
* @param {Object} opts Optional parameters
|
|
3005
3338
|
* @param {Object} opts.body
|
|
3339
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3006
3340
|
*/
|
|
3007
3341
|
postKnowledgeKnowledgebaseDocumentsPresentations(knowledgeBaseId, opts) {
|
|
3008
3342
|
opts = opts || {};
|
|
@@ -3022,7 +3356,8 @@ class KnowledgeApi {
|
|
|
3022
3356
|
opts['body'],
|
|
3023
3357
|
['PureCloud OAuth'],
|
|
3024
3358
|
['application/json'],
|
|
3025
|
-
['application/json']
|
|
3359
|
+
['application/json'],
|
|
3360
|
+
opts['customHeaders']
|
|
3026
3361
|
);
|
|
3027
3362
|
}
|
|
3028
3363
|
|
|
@@ -3033,6 +3368,7 @@ class KnowledgeApi {
|
|
|
3033
3368
|
* @param {Object} opts Optional parameters
|
|
3034
3369
|
* @param {Array.<String>} opts.expand Fields, if any, to expand for each document in the search result matching the query.
|
|
3035
3370
|
* @param {Object} opts.body
|
|
3371
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3036
3372
|
*/
|
|
3037
3373
|
postKnowledgeKnowledgebaseDocumentsQuery(knowledgeBaseId, opts) {
|
|
3038
3374
|
opts = opts || {};
|
|
@@ -3052,7 +3388,8 @@ class KnowledgeApi {
|
|
|
3052
3388
|
opts['body'],
|
|
3053
3389
|
['PureCloud OAuth'],
|
|
3054
3390
|
['application/json'],
|
|
3055
|
-
['application/json']
|
|
3391
|
+
['application/json'],
|
|
3392
|
+
opts['customHeaders']
|
|
3056
3393
|
);
|
|
3057
3394
|
}
|
|
3058
3395
|
|
|
@@ -3063,6 +3400,7 @@ class KnowledgeApi {
|
|
|
3063
3400
|
* @param {Object} opts Optional parameters
|
|
3064
3401
|
* @param {Array.<String>} opts.expand Fields, if any, to expand for each document in the search result matching the query.
|
|
3065
3402
|
* @param {Object} opts.body
|
|
3403
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3066
3404
|
*/
|
|
3067
3405
|
postKnowledgeKnowledgebaseDocumentsSearch(knowledgeBaseId, opts) {
|
|
3068
3406
|
opts = opts || {};
|
|
@@ -3082,7 +3420,8 @@ class KnowledgeApi {
|
|
|
3082
3420
|
opts['body'],
|
|
3083
3421
|
['PureCloud OAuth'],
|
|
3084
3422
|
['application/json'],
|
|
3085
|
-
['application/json']
|
|
3423
|
+
['application/json'],
|
|
3424
|
+
opts['customHeaders']
|
|
3086
3425
|
);
|
|
3087
3426
|
}
|
|
3088
3427
|
|
|
@@ -3092,6 +3431,7 @@ class KnowledgeApi {
|
|
|
3092
3431
|
* @param {String} knowledgeBaseId The ID of knowledge base containing the documents to query.
|
|
3093
3432
|
* @param {Object} opts Optional parameters
|
|
3094
3433
|
* @param {Object} opts.body
|
|
3434
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3095
3435
|
*/
|
|
3096
3436
|
postKnowledgeKnowledgebaseDocumentsSearchSuggestions(knowledgeBaseId, opts) {
|
|
3097
3437
|
opts = opts || {};
|
|
@@ -3111,7 +3451,8 @@ class KnowledgeApi {
|
|
|
3111
3451
|
opts['body'],
|
|
3112
3452
|
['PureCloud OAuth'],
|
|
3113
3453
|
['application/json'],
|
|
3114
|
-
['application/json']
|
|
3454
|
+
['application/json'],
|
|
3455
|
+
opts['customHeaders']
|
|
3115
3456
|
);
|
|
3116
3457
|
}
|
|
3117
3458
|
|
|
@@ -3120,8 +3461,12 @@ class KnowledgeApi {
|
|
|
3120
3461
|
*
|
|
3121
3462
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3122
3463
|
* @param {Object} body
|
|
3464
|
+
* @param {Object} opts Optional parameters
|
|
3465
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3123
3466
|
*/
|
|
3124
|
-
postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(knowledgeBaseId, body) {
|
|
3467
|
+
postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(knowledgeBaseId, body, opts) {
|
|
3468
|
+
opts = opts || {};
|
|
3469
|
+
|
|
3125
3470
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3126
3471
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3127
3472
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';
|
|
@@ -3141,7 +3486,8 @@ class KnowledgeApi {
|
|
|
3141
3486
|
body,
|
|
3142
3487
|
['PureCloud OAuth'],
|
|
3143
3488
|
['application/json'],
|
|
3144
|
-
['application/json']
|
|
3489
|
+
['application/json'],
|
|
3490
|
+
opts['customHeaders']
|
|
3145
3491
|
);
|
|
3146
3492
|
}
|
|
3147
3493
|
|
|
@@ -3150,8 +3496,12 @@ class KnowledgeApi {
|
|
|
3150
3496
|
*
|
|
3151
3497
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3152
3498
|
* @param {Object} body
|
|
3499
|
+
* @param {Object} opts Optional parameters
|
|
3500
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3153
3501
|
*/
|
|
3154
|
-
postKnowledgeKnowledgebaseExportJobs(knowledgeBaseId, body) {
|
|
3502
|
+
postKnowledgeKnowledgebaseExportJobs(knowledgeBaseId, body, opts) {
|
|
3503
|
+
opts = opts || {};
|
|
3504
|
+
|
|
3155
3505
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3156
3506
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3157
3507
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';
|
|
@@ -3171,7 +3521,8 @@ class KnowledgeApi {
|
|
|
3171
3521
|
body,
|
|
3172
3522
|
['PureCloud OAuth'],
|
|
3173
3523
|
['application/json'],
|
|
3174
|
-
['application/json']
|
|
3524
|
+
['application/json'],
|
|
3525
|
+
opts['customHeaders']
|
|
3175
3526
|
);
|
|
3176
3527
|
}
|
|
3177
3528
|
|
|
@@ -3180,8 +3531,12 @@ class KnowledgeApi {
|
|
|
3180
3531
|
*
|
|
3181
3532
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3182
3533
|
* @param {Object} body
|
|
3534
|
+
* @param {Object} opts Optional parameters
|
|
3535
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3183
3536
|
*/
|
|
3184
|
-
postKnowledgeKnowledgebaseImportJobs(knowledgeBaseId, body) {
|
|
3537
|
+
postKnowledgeKnowledgebaseImportJobs(knowledgeBaseId, body, opts) {
|
|
3538
|
+
opts = opts || {};
|
|
3539
|
+
|
|
3185
3540
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3186
3541
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3187
3542
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';
|
|
@@ -3201,7 +3556,8 @@ class KnowledgeApi {
|
|
|
3201
3556
|
body,
|
|
3202
3557
|
['PureCloud OAuth'],
|
|
3203
3558
|
['application/json'],
|
|
3204
|
-
['application/json']
|
|
3559
|
+
['application/json'],
|
|
3560
|
+
opts['customHeaders']
|
|
3205
3561
|
);
|
|
3206
3562
|
}
|
|
3207
3563
|
|
|
@@ -3210,8 +3566,12 @@ class KnowledgeApi {
|
|
|
3210
3566
|
*
|
|
3211
3567
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3212
3568
|
* @param {Object} body
|
|
3569
|
+
* @param {Object} opts Optional parameters
|
|
3570
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3213
3571
|
*/
|
|
3214
|
-
postKnowledgeKnowledgebaseLabels(knowledgeBaseId, body) {
|
|
3572
|
+
postKnowledgeKnowledgebaseLabels(knowledgeBaseId, body, opts) {
|
|
3573
|
+
opts = opts || {};
|
|
3574
|
+
|
|
3215
3575
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3216
3576
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3217
3577
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';
|
|
@@ -3231,7 +3591,8 @@ class KnowledgeApi {
|
|
|
3231
3591
|
body,
|
|
3232
3592
|
['PureCloud OAuth'],
|
|
3233
3593
|
['application/json'],
|
|
3234
|
-
['application/json']
|
|
3594
|
+
['application/json'],
|
|
3595
|
+
opts['customHeaders']
|
|
3235
3596
|
);
|
|
3236
3597
|
}
|
|
3237
3598
|
|
|
@@ -3241,8 +3602,12 @@ class KnowledgeApi {
|
|
|
3241
3602
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3242
3603
|
* @param {String} parseJobId Parse job ID
|
|
3243
3604
|
* @param {Object} body
|
|
3605
|
+
* @param {Object} opts Optional parameters
|
|
3606
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3244
3607
|
*/
|
|
3245
|
-
postKnowledgeKnowledgebaseParseJobImport(knowledgeBaseId, parseJobId, body) {
|
|
3608
|
+
postKnowledgeKnowledgebaseParseJobImport(knowledgeBaseId, parseJobId, body, opts) {
|
|
3609
|
+
opts = opts || {};
|
|
3610
|
+
|
|
3246
3611
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3247
3612
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3248
3613
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';
|
|
@@ -3266,7 +3631,8 @@ class KnowledgeApi {
|
|
|
3266
3631
|
body,
|
|
3267
3632
|
['PureCloud OAuth'],
|
|
3268
3633
|
['application/json'],
|
|
3269
|
-
['application/json']
|
|
3634
|
+
['application/json'],
|
|
3635
|
+
opts['customHeaders']
|
|
3270
3636
|
);
|
|
3271
3637
|
}
|
|
3272
3638
|
|
|
@@ -3275,8 +3641,12 @@ class KnowledgeApi {
|
|
|
3275
3641
|
*
|
|
3276
3642
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3277
3643
|
* @param {Object} body
|
|
3644
|
+
* @param {Object} opts Optional parameters
|
|
3645
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3278
3646
|
*/
|
|
3279
|
-
postKnowledgeKnowledgebaseParseJobs(knowledgeBaseId, body) {
|
|
3647
|
+
postKnowledgeKnowledgebaseParseJobs(knowledgeBaseId, body, opts) {
|
|
3648
|
+
opts = opts || {};
|
|
3649
|
+
|
|
3280
3650
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3281
3651
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3282
3652
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';
|
|
@@ -3296,7 +3666,8 @@ class KnowledgeApi {
|
|
|
3296
3666
|
body,
|
|
3297
3667
|
['PureCloud OAuth'],
|
|
3298
3668
|
['application/json'],
|
|
3299
|
-
['application/json']
|
|
3669
|
+
['application/json'],
|
|
3670
|
+
opts['customHeaders']
|
|
3300
3671
|
);
|
|
3301
3672
|
}
|
|
3302
3673
|
|
|
@@ -3305,8 +3676,12 @@ class KnowledgeApi {
|
|
|
3305
3676
|
*
|
|
3306
3677
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3307
3678
|
* @param {Object} body
|
|
3679
|
+
* @param {Object} opts Optional parameters
|
|
3680
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3308
3681
|
*/
|
|
3309
|
-
postKnowledgeKnowledgebaseSourcesSalesforce(knowledgeBaseId, body) {
|
|
3682
|
+
postKnowledgeKnowledgebaseSourcesSalesforce(knowledgeBaseId, body, opts) {
|
|
3683
|
+
opts = opts || {};
|
|
3684
|
+
|
|
3310
3685
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3311
3686
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3312
3687
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';
|
|
@@ -3326,7 +3701,8 @@ class KnowledgeApi {
|
|
|
3326
3701
|
body,
|
|
3327
3702
|
['PureCloud OAuth'],
|
|
3328
3703
|
['application/json'],
|
|
3329
|
-
['application/json']
|
|
3704
|
+
['application/json'],
|
|
3705
|
+
opts['customHeaders']
|
|
3330
3706
|
);
|
|
3331
3707
|
}
|
|
3332
3708
|
|
|
@@ -3337,6 +3713,7 @@ class KnowledgeApi {
|
|
|
3337
3713
|
* @param {String} sourceId Source ID
|
|
3338
3714
|
* @param {Object} opts Optional parameters
|
|
3339
3715
|
* @param {Object} opts.body
|
|
3716
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3340
3717
|
*/
|
|
3341
3718
|
postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(knowledgeBaseId, sourceId, opts) {
|
|
3342
3719
|
opts = opts || {};
|
|
@@ -3360,7 +3737,8 @@ class KnowledgeApi {
|
|
|
3360
3737
|
opts['body'],
|
|
3361
3738
|
['PureCloud OAuth'],
|
|
3362
3739
|
['application/json'],
|
|
3363
|
-
['application/json']
|
|
3740
|
+
['application/json'],
|
|
3741
|
+
opts['customHeaders']
|
|
3364
3742
|
);
|
|
3365
3743
|
}
|
|
3366
3744
|
|
|
@@ -3369,8 +3747,12 @@ class KnowledgeApi {
|
|
|
3369
3747
|
*
|
|
3370
3748
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3371
3749
|
* @param {Object} body
|
|
3750
|
+
* @param {Object} opts Optional parameters
|
|
3751
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3372
3752
|
*/
|
|
3373
|
-
postKnowledgeKnowledgebaseSourcesServicenow(knowledgeBaseId, body) {
|
|
3753
|
+
postKnowledgeKnowledgebaseSourcesServicenow(knowledgeBaseId, body, opts) {
|
|
3754
|
+
opts = opts || {};
|
|
3755
|
+
|
|
3374
3756
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3375
3757
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3376
3758
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';
|
|
@@ -3390,7 +3772,8 @@ class KnowledgeApi {
|
|
|
3390
3772
|
body,
|
|
3391
3773
|
['PureCloud OAuth'],
|
|
3392
3774
|
['application/json'],
|
|
3393
|
-
['application/json']
|
|
3775
|
+
['application/json'],
|
|
3776
|
+
opts['customHeaders']
|
|
3394
3777
|
);
|
|
3395
3778
|
}
|
|
3396
3779
|
|
|
@@ -3401,6 +3784,7 @@ class KnowledgeApi {
|
|
|
3401
3784
|
* @param {String} sourceId Source ID
|
|
3402
3785
|
* @param {Object} opts Optional parameters
|
|
3403
3786
|
* @param {Object} opts.body
|
|
3787
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3404
3788
|
*/
|
|
3405
3789
|
postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(knowledgeBaseId, sourceId, opts) {
|
|
3406
3790
|
opts = opts || {};
|
|
@@ -3424,7 +3808,8 @@ class KnowledgeApi {
|
|
|
3424
3808
|
opts['body'],
|
|
3425
3809
|
['PureCloud OAuth'],
|
|
3426
3810
|
['application/json'],
|
|
3427
|
-
['application/json']
|
|
3811
|
+
['application/json'],
|
|
3812
|
+
opts['customHeaders']
|
|
3428
3813
|
);
|
|
3429
3814
|
}
|
|
3430
3815
|
|
|
@@ -3433,8 +3818,12 @@ class KnowledgeApi {
|
|
|
3433
3818
|
*
|
|
3434
3819
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3435
3820
|
* @param {Object} body
|
|
3821
|
+
* @param {Object} opts Optional parameters
|
|
3822
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3436
3823
|
*/
|
|
3437
|
-
postKnowledgeKnowledgebaseSynchronizeJobs(knowledgeBaseId, body) {
|
|
3824
|
+
postKnowledgeKnowledgebaseSynchronizeJobs(knowledgeBaseId, body, opts) {
|
|
3825
|
+
opts = opts || {};
|
|
3826
|
+
|
|
3438
3827
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3439
3828
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3440
3829
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';
|
|
@@ -3454,7 +3843,8 @@ class KnowledgeApi {
|
|
|
3454
3843
|
body,
|
|
3455
3844
|
['PureCloud OAuth'],
|
|
3456
3845
|
['application/json'],
|
|
3457
|
-
['application/json']
|
|
3846
|
+
['application/json'],
|
|
3847
|
+
opts['customHeaders']
|
|
3458
3848
|
);
|
|
3459
3849
|
}
|
|
3460
3850
|
|
|
@@ -3463,8 +3853,12 @@ class KnowledgeApi {
|
|
|
3463
3853
|
*
|
|
3464
3854
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3465
3855
|
* @param {Object} body uploadRequest
|
|
3856
|
+
* @param {Object} opts Optional parameters
|
|
3857
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3466
3858
|
*/
|
|
3467
|
-
postKnowledgeKnowledgebaseUploadsUrlsJobs(knowledgeBaseId, body) {
|
|
3859
|
+
postKnowledgeKnowledgebaseUploadsUrlsJobs(knowledgeBaseId, body, opts) {
|
|
3860
|
+
opts = opts || {};
|
|
3861
|
+
|
|
3468
3862
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3469
3863
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3470
3864
|
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';
|
|
@@ -3484,7 +3878,8 @@ class KnowledgeApi {
|
|
|
3484
3878
|
body,
|
|
3485
3879
|
['PureCloud OAuth'],
|
|
3486
3880
|
['application/json'],
|
|
3487
|
-
['application/json']
|
|
3881
|
+
['application/json'],
|
|
3882
|
+
opts['customHeaders']
|
|
3488
3883
|
);
|
|
3489
3884
|
}
|
|
3490
3885
|
|
|
@@ -3492,8 +3887,12 @@ class KnowledgeApi {
|
|
|
3492
3887
|
* Create new knowledge base
|
|
3493
3888
|
*
|
|
3494
3889
|
* @param {Object} body
|
|
3890
|
+
* @param {Object} opts Optional parameters
|
|
3891
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3495
3892
|
*/
|
|
3496
|
-
postKnowledgeKnowledgebases(body) {
|
|
3893
|
+
postKnowledgeKnowledgebases(body, opts) {
|
|
3894
|
+
opts = opts || {};
|
|
3895
|
+
|
|
3497
3896
|
// verify the required parameter 'body' is set
|
|
3498
3897
|
if (body === undefined || body === null) {
|
|
3499
3898
|
throw 'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';
|
|
@@ -3509,7 +3908,8 @@ class KnowledgeApi {
|
|
|
3509
3908
|
body,
|
|
3510
3909
|
['PureCloud OAuth'],
|
|
3511
3910
|
['application/json'],
|
|
3512
|
-
['application/json']
|
|
3911
|
+
['application/json'],
|
|
3912
|
+
opts['customHeaders']
|
|
3513
3913
|
);
|
|
3514
3914
|
}
|
|
3515
3915
|
|
|
@@ -3518,6 +3918,7 @@ class KnowledgeApi {
|
|
|
3518
3918
|
*
|
|
3519
3919
|
* @param {Object} opts Optional parameters
|
|
3520
3920
|
* @param {Object} opts.body
|
|
3921
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3521
3922
|
*/
|
|
3522
3923
|
postKnowledgeSearch(opts) {
|
|
3523
3924
|
opts = opts || {};
|
|
@@ -3533,7 +3934,8 @@ class KnowledgeApi {
|
|
|
3533
3934
|
opts['body'],
|
|
3534
3935
|
['PureCloud OAuth'],
|
|
3535
3936
|
['application/json'],
|
|
3536
|
-
['application/json']
|
|
3937
|
+
['application/json'],
|
|
3938
|
+
opts['customHeaders']
|
|
3537
3939
|
);
|
|
3538
3940
|
}
|
|
3539
3941
|
|
|
@@ -3542,6 +3944,7 @@ class KnowledgeApi {
|
|
|
3542
3944
|
*
|
|
3543
3945
|
* @param {Object} opts Optional parameters
|
|
3544
3946
|
* @param {Object} opts.body
|
|
3947
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3545
3948
|
*/
|
|
3546
3949
|
postKnowledgeSearchPreview(opts) {
|
|
3547
3950
|
opts = opts || {};
|
|
@@ -3557,7 +3960,8 @@ class KnowledgeApi {
|
|
|
3557
3960
|
opts['body'],
|
|
3558
3961
|
['PureCloud OAuth'],
|
|
3559
3962
|
['application/json'],
|
|
3560
|
-
['application/json']
|
|
3963
|
+
['application/json'],
|
|
3964
|
+
opts['customHeaders']
|
|
3561
3965
|
);
|
|
3562
3966
|
}
|
|
3563
3967
|
|
|
@@ -3566,6 +3970,7 @@ class KnowledgeApi {
|
|
|
3566
3970
|
*
|
|
3567
3971
|
* @param {Object} opts Optional parameters
|
|
3568
3972
|
* @param {Object} opts.body
|
|
3973
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3569
3974
|
*/
|
|
3570
3975
|
postKnowledgeSettings(opts) {
|
|
3571
3976
|
opts = opts || {};
|
|
@@ -3581,7 +3986,8 @@ class KnowledgeApi {
|
|
|
3581
3986
|
opts['body'],
|
|
3582
3987
|
['PureCloud OAuth'],
|
|
3583
3988
|
['application/json'],
|
|
3584
|
-
['application/json']
|
|
3989
|
+
['application/json'],
|
|
3990
|
+
opts['customHeaders']
|
|
3585
3991
|
);
|
|
3586
3992
|
}
|
|
3587
3993
|
|
|
@@ -3591,8 +3997,12 @@ class KnowledgeApi {
|
|
|
3591
3997
|
* @param {String} sourceId Source ID
|
|
3592
3998
|
* @param {String} synchronizationId Synchronization ID
|
|
3593
3999
|
* @param {Object} body
|
|
4000
|
+
* @param {Object} opts Optional parameters
|
|
4001
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3594
4002
|
*/
|
|
3595
|
-
postKnowledgeSourceSynchronizationUploads(sourceId, synchronizationId, body) {
|
|
4003
|
+
postKnowledgeSourceSynchronizationUploads(sourceId, synchronizationId, body, opts) {
|
|
4004
|
+
opts = opts || {};
|
|
4005
|
+
|
|
3596
4006
|
// verify the required parameter 'sourceId' is set
|
|
3597
4007
|
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
3598
4008
|
throw 'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';
|
|
@@ -3616,7 +4026,8 @@ class KnowledgeApi {
|
|
|
3616
4026
|
body,
|
|
3617
4027
|
['PureCloud OAuth'],
|
|
3618
4028
|
['application/json'],
|
|
3619
|
-
['application/json']
|
|
4029
|
+
['application/json'],
|
|
4030
|
+
opts['customHeaders']
|
|
3620
4031
|
);
|
|
3621
4032
|
}
|
|
3622
4033
|
|
|
@@ -3626,6 +4037,7 @@ class KnowledgeApi {
|
|
|
3626
4037
|
* @param {String} sourceId Source ID
|
|
3627
4038
|
* @param {Object} opts Optional parameters
|
|
3628
4039
|
* @param {Object} opts.body
|
|
4040
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3629
4041
|
*/
|
|
3630
4042
|
postKnowledgeSourceSynchronizations(sourceId, opts) {
|
|
3631
4043
|
opts = opts || {};
|
|
@@ -3645,7 +4057,8 @@ class KnowledgeApi {
|
|
|
3645
4057
|
opts['body'],
|
|
3646
4058
|
['PureCloud OAuth'],
|
|
3647
4059
|
['application/json'],
|
|
3648
|
-
['application/json']
|
|
4060
|
+
['application/json'],
|
|
4061
|
+
opts['customHeaders']
|
|
3649
4062
|
);
|
|
3650
4063
|
}
|
|
3651
4064
|
|
|
@@ -3653,8 +4066,12 @@ class KnowledgeApi {
|
|
|
3653
4066
|
* Create a new source
|
|
3654
4067
|
*
|
|
3655
4068
|
* @param {Object} body
|
|
4069
|
+
* @param {Object} opts Optional parameters
|
|
4070
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3656
4071
|
*/
|
|
3657
|
-
postKnowledgeSources(body) {
|
|
4072
|
+
postKnowledgeSources(body, opts) {
|
|
4073
|
+
opts = opts || {};
|
|
4074
|
+
|
|
3658
4075
|
// verify the required parameter 'body' is set
|
|
3659
4076
|
if (body === undefined || body === null) {
|
|
3660
4077
|
throw 'Missing the required parameter "body" when calling postKnowledgeSources';
|
|
@@ -3670,7 +4087,8 @@ class KnowledgeApi {
|
|
|
3670
4087
|
body,
|
|
3671
4088
|
['PureCloud OAuth'],
|
|
3672
4089
|
['application/json'],
|
|
3673
|
-
['application/json']
|
|
4090
|
+
['application/json'],
|
|
4091
|
+
opts['customHeaders']
|
|
3674
4092
|
);
|
|
3675
4093
|
}
|
|
3676
4094
|
|
|
@@ -3680,8 +4098,12 @@ class KnowledgeApi {
|
|
|
3680
4098
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3681
4099
|
* @param {String} sourceId Source ID
|
|
3682
4100
|
* @param {Object} body
|
|
4101
|
+
* @param {Object} opts Optional parameters
|
|
4102
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3683
4103
|
*/
|
|
3684
|
-
putKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId, body) {
|
|
4104
|
+
putKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId, body, opts) {
|
|
4105
|
+
opts = opts || {};
|
|
4106
|
+
|
|
3685
4107
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3686
4108
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3687
4109
|
throw 'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';
|
|
@@ -3705,7 +4127,8 @@ class KnowledgeApi {
|
|
|
3705
4127
|
body,
|
|
3706
4128
|
['PureCloud OAuth'],
|
|
3707
4129
|
['application/json'],
|
|
3708
|
-
['application/json']
|
|
4130
|
+
['application/json'],
|
|
4131
|
+
opts['customHeaders']
|
|
3709
4132
|
);
|
|
3710
4133
|
}
|
|
3711
4134
|
|
|
@@ -3715,8 +4138,12 @@ class KnowledgeApi {
|
|
|
3715
4138
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3716
4139
|
* @param {String} sourceId Source ID
|
|
3717
4140
|
* @param {Object} body
|
|
4141
|
+
* @param {Object} opts Optional parameters
|
|
4142
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3718
4143
|
*/
|
|
3719
|
-
putKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId, body) {
|
|
4144
|
+
putKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId, body, opts) {
|
|
4145
|
+
opts = opts || {};
|
|
4146
|
+
|
|
3720
4147
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
3721
4148
|
if (knowledgeBaseId === undefined || knowledgeBaseId === null || knowledgeBaseId === '') {
|
|
3722
4149
|
throw 'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';
|
|
@@ -3740,7 +4167,8 @@ class KnowledgeApi {
|
|
|
3740
4167
|
body,
|
|
3741
4168
|
['PureCloud OAuth'],
|
|
3742
4169
|
['application/json'],
|
|
3743
|
-
['application/json']
|
|
4170
|
+
['application/json'],
|
|
4171
|
+
opts['customHeaders']
|
|
3744
4172
|
);
|
|
3745
4173
|
}
|
|
3746
4174
|
|
|
@@ -3749,8 +4177,12 @@ class KnowledgeApi {
|
|
|
3749
4177
|
*
|
|
3750
4178
|
* @param {String} sourceId Source ID
|
|
3751
4179
|
* @param {Object} body
|
|
4180
|
+
* @param {Object} opts Optional parameters
|
|
4181
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3752
4182
|
*/
|
|
3753
|
-
putKnowledgeSource(sourceId, body) {
|
|
4183
|
+
putKnowledgeSource(sourceId, body, opts) {
|
|
4184
|
+
opts = opts || {};
|
|
4185
|
+
|
|
3754
4186
|
// verify the required parameter 'sourceId' is set
|
|
3755
4187
|
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
3756
4188
|
throw 'Missing the required parameter "sourceId" when calling putKnowledgeSource';
|
|
@@ -3770,7 +4202,8 @@ class KnowledgeApi {
|
|
|
3770
4202
|
body,
|
|
3771
4203
|
['PureCloud OAuth'],
|
|
3772
4204
|
['application/json'],
|
|
3773
|
-
['application/json']
|
|
4205
|
+
['application/json'],
|
|
4206
|
+
opts['customHeaders']
|
|
3774
4207
|
);
|
|
3775
4208
|
}
|
|
3776
4209
|
|