purecloud-platform-client-v2 202.1.0 → 204.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +885 -106
- package/dist/web-amd/purecloud-platform-client-v2.js +885 -106
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +452 -261
- package/dist/web-cjs/purecloud-platform-client-v2.js +452 -261
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +589 -224
- package/package.json +2 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +381 -0
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +81 -0
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -12
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +46 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +139 -2
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +3 -13
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +130 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +30 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -3
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +13 -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 204.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1751,6 +1751,45 @@ class KnowledgeApi {
|
|
|
1751
1751
|
);
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
|
+
/**
|
|
1755
|
+
* Update feedback on a document
|
|
1756
|
+
*
|
|
1757
|
+
* @param {String} knowledgeBaseId Knowledge base ID.
|
|
1758
|
+
* @param {String} documentId Document ID.
|
|
1759
|
+
* @param {String} feedbackId Feedback ID.
|
|
1760
|
+
* @param {Object} opts Optional parameters
|
|
1761
|
+
* @param {Object} opts.body
|
|
1762
|
+
*/
|
|
1763
|
+
patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(knowledgeBaseId, documentId, feedbackId, opts) {
|
|
1764
|
+
opts = opts || {};
|
|
1765
|
+
|
|
1766
|
+
// verify the required parameter 'knowledgeBaseId' is set
|
|
1767
|
+
if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
|
|
1768
|
+
throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';
|
|
1769
|
+
}
|
|
1770
|
+
// verify the required parameter 'documentId' is set
|
|
1771
|
+
if (documentId === undefined || documentId === null) {
|
|
1772
|
+
throw 'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';
|
|
1773
|
+
}
|
|
1774
|
+
// verify the required parameter 'feedbackId' is set
|
|
1775
|
+
if (feedbackId === undefined || feedbackId === null) {
|
|
1776
|
+
throw 'Missing the required parameter "feedbackId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
return this.apiClient.callApi(
|
|
1780
|
+
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}',
|
|
1781
|
+
'PATCH',
|
|
1782
|
+
{ 'knowledgeBaseId': knowledgeBaseId,'documentId': documentId,'feedbackId': feedbackId },
|
|
1783
|
+
{ },
|
|
1784
|
+
{ },
|
|
1785
|
+
{ },
|
|
1786
|
+
opts['body'],
|
|
1787
|
+
['PureCloud OAuth'],
|
|
1788
|
+
['application/json'],
|
|
1789
|
+
['application/json']
|
|
1790
|
+
);
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1754
1793
|
/**
|
|
1755
1794
|
* Update a variation for a document.
|
|
1756
1795
|
*
|
|
@@ -2257,6 +2296,36 @@ class KnowledgeApi {
|
|
|
2257
2296
|
);
|
|
2258
2297
|
}
|
|
2259
2298
|
|
|
2299
|
+
/**
|
|
2300
|
+
* Answer documents.
|
|
2301
|
+
*
|
|
2302
|
+
* @param {String} sessionId Knowledge guest session ID.
|
|
2303
|
+
* @param {Object} body
|
|
2304
|
+
*/
|
|
2305
|
+
postKnowledgeGuestSessionDocumentsAnswers(sessionId, body) {
|
|
2306
|
+
// verify the required parameter 'sessionId' is set
|
|
2307
|
+
if (sessionId === undefined || sessionId === null) {
|
|
2308
|
+
throw 'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';
|
|
2309
|
+
}
|
|
2310
|
+
// verify the required parameter 'body' is set
|
|
2311
|
+
if (body === undefined || body === null) {
|
|
2312
|
+
throw 'Missing the required parameter "body" when calling postKnowledgeGuestSessionDocumentsAnswers';
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
return this.apiClient.callApi(
|
|
2316
|
+
'/api/v2/knowledge/guest/sessions/{sessionId}/documents/answers',
|
|
2317
|
+
'POST',
|
|
2318
|
+
{ 'sessionId': sessionId },
|
|
2319
|
+
{ },
|
|
2320
|
+
{ },
|
|
2321
|
+
{ },
|
|
2322
|
+
body,
|
|
2323
|
+
['PureCloud OAuth'],
|
|
2324
|
+
['application/json'],
|
|
2325
|
+
['application/json']
|
|
2326
|
+
);
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2260
2329
|
/**
|
|
2261
2330
|
* Indicate that documents were presented to the user.
|
|
2262
2331
|
*
|
|
@@ -2602,6 +2671,36 @@ class KnowledgeApi {
|
|
|
2602
2671
|
);
|
|
2603
2672
|
}
|
|
2604
2673
|
|
|
2674
|
+
/**
|
|
2675
|
+
* Answer documents.
|
|
2676
|
+
*
|
|
2677
|
+
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2678
|
+
* @param {Object} body
|
|
2679
|
+
*/
|
|
2680
|
+
postKnowledgeKnowledgebaseDocumentsAnswers(knowledgeBaseId, body) {
|
|
2681
|
+
// verify the required parameter 'knowledgeBaseId' is set
|
|
2682
|
+
if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
|
|
2683
|
+
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';
|
|
2684
|
+
}
|
|
2685
|
+
// verify the required parameter 'body' is set
|
|
2686
|
+
if (body === undefined || body === null) {
|
|
2687
|
+
throw 'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
return this.apiClient.callApi(
|
|
2691
|
+
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers',
|
|
2692
|
+
'POST',
|
|
2693
|
+
{ 'knowledgeBaseId': knowledgeBaseId },
|
|
2694
|
+
{ },
|
|
2695
|
+
{ },
|
|
2696
|
+
{ },
|
|
2697
|
+
body,
|
|
2698
|
+
['PureCloud OAuth'],
|
|
2699
|
+
['application/json'],
|
|
2700
|
+
['application/json']
|
|
2701
|
+
);
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2605
2704
|
/**
|
|
2606
2705
|
* Bulk remove documents.
|
|
2607
2706
|
*
|
|
@@ -2693,6 +2792,36 @@ class KnowledgeApi {
|
|
|
2693
2792
|
);
|
|
2694
2793
|
}
|
|
2695
2794
|
|
|
2795
|
+
/**
|
|
2796
|
+
* Query for knowledge documents.
|
|
2797
|
+
*
|
|
2798
|
+
* @param {String} knowledgeBaseId Knowledge Base ID
|
|
2799
|
+
* @param {Object} opts Optional parameters
|
|
2800
|
+
* @param {Array.<String>} opts.expand Fields, if any, to expand for each document in the search result matching the query.
|
|
2801
|
+
* @param {Object} opts.body
|
|
2802
|
+
*/
|
|
2803
|
+
postKnowledgeKnowledgebaseDocumentsQuery(knowledgeBaseId, opts) {
|
|
2804
|
+
opts = opts || {};
|
|
2805
|
+
|
|
2806
|
+
// verify the required parameter 'knowledgeBaseId' is set
|
|
2807
|
+
if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
|
|
2808
|
+
throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsQuery';
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
return this.apiClient.callApi(
|
|
2812
|
+
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/query',
|
|
2813
|
+
'POST',
|
|
2814
|
+
{ 'knowledgeBaseId': knowledgeBaseId },
|
|
2815
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
2816
|
+
{ },
|
|
2817
|
+
{ },
|
|
2818
|
+
opts['body'],
|
|
2819
|
+
['PureCloud OAuth'],
|
|
2820
|
+
['application/json'],
|
|
2821
|
+
['application/json']
|
|
2822
|
+
);
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2696
2825
|
/**
|
|
2697
2826
|
* Search the documents in a knowledge base.
|
|
2698
2827
|
*
|
|
@@ -5,7 +5,7 @@ class RoutingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Routing service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 204.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1286,6 +1286,35 @@ class RoutingApi {
|
|
|
1286
1286
|
);
|
|
1287
1287
|
}
|
|
1288
1288
|
|
|
1289
|
+
/**
|
|
1290
|
+
* Get an assistant associated with a queue.
|
|
1291
|
+
*
|
|
1292
|
+
* @param {String} queueId Queue ID
|
|
1293
|
+
* @param {Object} opts Optional parameters
|
|
1294
|
+
* @param {Object} opts.expand Which fields, if any, to expand.
|
|
1295
|
+
*/
|
|
1296
|
+
getRoutingQueueAssistant(queueId, opts) {
|
|
1297
|
+
opts = opts || {};
|
|
1298
|
+
|
|
1299
|
+
// verify the required parameter 'queueId' is set
|
|
1300
|
+
if (queueId === undefined || queueId === null) {
|
|
1301
|
+
throw 'Missing the required parameter "queueId" when calling getRoutingQueueAssistant';
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
return this.apiClient.callApi(
|
|
1305
|
+
'/api/v2/routing/queues/{queueId}/assistant',
|
|
1306
|
+
'GET',
|
|
1307
|
+
{ 'queueId': queueId },
|
|
1308
|
+
{ 'expand': opts['expand'] },
|
|
1309
|
+
{ },
|
|
1310
|
+
{ },
|
|
1311
|
+
null,
|
|
1312
|
+
['PureCloud OAuth'],
|
|
1313
|
+
['application/json'],
|
|
1314
|
+
['application/json']
|
|
1315
|
+
);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1289
1318
|
/**
|
|
1290
1319
|
* Get a Comparison Period.
|
|
1291
1320
|
*
|
|
@@ -5,7 +5,7 @@ class SettingsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Settings service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 204.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -68,7 +68,6 @@ class SettingsApi {
|
|
|
68
68
|
/**
|
|
69
69
|
* Get the execution history enabled setting.
|
|
70
70
|
* Get the execution history enabled setting.
|
|
71
|
-
* getSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
72
71
|
*/
|
|
73
72
|
getSettingsExecutiondata() {
|
|
74
73
|
|
|
@@ -139,7 +138,6 @@ class SettingsApi {
|
|
|
139
138
|
* Edit the execution history on off setting.
|
|
140
139
|
* Edit the execution history on off setting.
|
|
141
140
|
* @param {Object} body New Execution Data Setting
|
|
142
|
-
* patchSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
143
141
|
*/
|
|
144
142
|
patchSettingsExecutiondata(body) {
|
|
145
143
|
// verify the required parameter 'body' is set
|