purecloud-platform-client-v2 168.2.0 → 169.1.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 -35
- package/dist/node/purecloud-platform-client-v2.js +24925 -20106
- package/dist/web-amd/purecloud-platform-client-v2.js +24925 -20106
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +24925 -20106
- package/dist/web-cjs/purecloud-platform-client-v2.js +24925 -20106
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +2457 -16
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1418 -227
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +142 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +3 -3
- 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 +4 -4
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +172 -2
- 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/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +114 -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 +114 -4
- 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 +333 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +260 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +200 -3
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +5 -5
- 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/MessagingApi.js +11 -6
- 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/OrganizationApi.js +59 -10
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +53 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +136 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +174 -10
- 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 +199 -6
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +80 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +25 -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 +1282 -0
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +32 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +33 -2
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +47 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +51 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +172 -7
- 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 +6 -6
- 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 +6 -6
- package/src/purecloud-platform-client-v2/index.js +7 -1
|
@@ -5,7 +5,7 @@ class GroupsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Groups service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -45,6 +45,32 @@ class GroupsApi {
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Remove dynamic group definition
|
|
50
|
+
*
|
|
51
|
+
* @param {String} groupId Group ID
|
|
52
|
+
* Preview Endpoint
|
|
53
|
+
*/
|
|
54
|
+
deleteGroupDynamicsettings(groupId) {
|
|
55
|
+
// verify the required parameter 'groupId' is set
|
|
56
|
+
if (groupId === undefined || groupId === null) {
|
|
57
|
+
throw 'Missing the required parameter "groupId" when calling deleteGroupDynamicsettings';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return this.apiClient.callApi(
|
|
61
|
+
'/api/v2/groups/{groupId}/dynamicsettings',
|
|
62
|
+
'DELETE',
|
|
63
|
+
{ 'groupId': groupId },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
|
+
{ },
|
|
67
|
+
null,
|
|
68
|
+
['PureCloud OAuth'],
|
|
69
|
+
['application/json'],
|
|
70
|
+
['application/json']
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
48
74
|
/**
|
|
49
75
|
* Remove members
|
|
50
76
|
*
|
|
@@ -79,7 +105,7 @@ class GroupsApi {
|
|
|
79
105
|
* Fetch field config for an entity type
|
|
80
106
|
*
|
|
81
107
|
* @param {Object} type Field type
|
|
82
|
-
|
|
108
|
+
* @deprecated
|
|
83
109
|
*/
|
|
84
110
|
getFieldconfig(type) {
|
|
85
111
|
// verify the required parameter 'type' is set
|
|
@@ -126,6 +152,32 @@ class GroupsApi {
|
|
|
126
152
|
);
|
|
127
153
|
}
|
|
128
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Get dynamic group definition
|
|
157
|
+
*
|
|
158
|
+
* @param {String} groupId Group ID
|
|
159
|
+
* Preview Endpoint
|
|
160
|
+
*/
|
|
161
|
+
getGroupDynamicsettings(groupId) {
|
|
162
|
+
// verify the required parameter 'groupId' is set
|
|
163
|
+
if (groupId === undefined || groupId === null) {
|
|
164
|
+
throw 'Missing the required parameter "groupId" when calling getGroupDynamicsettings';
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return this.apiClient.callApi(
|
|
168
|
+
'/api/v2/groups/{groupId}/dynamicsettings',
|
|
169
|
+
'GET',
|
|
170
|
+
{ 'groupId': groupId },
|
|
171
|
+
{ },
|
|
172
|
+
{ },
|
|
173
|
+
{ },
|
|
174
|
+
null,
|
|
175
|
+
['PureCloud OAuth'],
|
|
176
|
+
['application/json'],
|
|
177
|
+
['application/json']
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
129
181
|
/**
|
|
130
182
|
* Get all individuals associated with the group
|
|
131
183
|
*
|
|
@@ -189,7 +241,7 @@ class GroupsApi {
|
|
|
189
241
|
* @param {String} groupId groupId
|
|
190
242
|
* @param {Object} opts Optional parameters
|
|
191
243
|
* @param {String} opts.fields Comma separated fields to return. Allowable values can be found by querying /api/v2/fieldconfig?type=group and using the key for the elements returned by the fieldList
|
|
192
|
-
|
|
244
|
+
* @deprecated
|
|
193
245
|
*/
|
|
194
246
|
getGroupProfile(groupId, opts) {
|
|
195
247
|
opts = opts || {};
|
|
@@ -279,7 +331,7 @@ class GroupsApi {
|
|
|
279
331
|
* @param {Array.<String>} opts.id id
|
|
280
332
|
* @param {Array.<String>} opts.jabberId A list of jabberIds to fetch by bulk (cannot be used with the id parameter)
|
|
281
333
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
|
|
282
|
-
|
|
334
|
+
* @deprecated
|
|
283
335
|
*/
|
|
284
336
|
getProfilesGroups(opts) {
|
|
285
337
|
opts = opts || {};
|
|
@@ -354,6 +406,33 @@ class GroupsApi {
|
|
|
354
406
|
);
|
|
355
407
|
}
|
|
356
408
|
|
|
409
|
+
/**
|
|
410
|
+
* Preview the number of users selected for a dynamic group definition query
|
|
411
|
+
*
|
|
412
|
+
* @param {Object} body Group query to preview
|
|
413
|
+
* @deprecated
|
|
414
|
+
* Preview Endpoint
|
|
415
|
+
*/
|
|
416
|
+
postGroupsDynamicsettingsPreview(body) {
|
|
417
|
+
// verify the required parameter 'body' is set
|
|
418
|
+
if (body === undefined || body === null) {
|
|
419
|
+
throw 'Missing the required parameter "body" when calling postGroupsDynamicsettingsPreview';
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
return this.apiClient.callApi(
|
|
423
|
+
'/api/v2/groups/dynamicsettings/preview',
|
|
424
|
+
'POST',
|
|
425
|
+
{ },
|
|
426
|
+
{ },
|
|
427
|
+
{ },
|
|
428
|
+
{ },
|
|
429
|
+
body,
|
|
430
|
+
['PureCloud OAuth'],
|
|
431
|
+
['application/json'],
|
|
432
|
+
['application/json']
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
|
|
357
436
|
/**
|
|
358
437
|
* Search groups
|
|
359
438
|
*
|
|
@@ -408,6 +487,37 @@ class GroupsApi {
|
|
|
408
487
|
);
|
|
409
488
|
}
|
|
410
489
|
|
|
490
|
+
/**
|
|
491
|
+
* Create / Update dynamic group definition
|
|
492
|
+
*
|
|
493
|
+
* @param {String} groupId Group ID
|
|
494
|
+
* @param {Object} body Create/Update dynamic groups
|
|
495
|
+
* Preview Endpoint
|
|
496
|
+
*/
|
|
497
|
+
putGroupDynamicsettings(groupId, body) {
|
|
498
|
+
// verify the required parameter 'groupId' is set
|
|
499
|
+
if (groupId === undefined || groupId === null) {
|
|
500
|
+
throw 'Missing the required parameter "groupId" when calling putGroupDynamicsettings';
|
|
501
|
+
}
|
|
502
|
+
// verify the required parameter 'body' is set
|
|
503
|
+
if (body === undefined || body === null) {
|
|
504
|
+
throw 'Missing the required parameter "body" when calling putGroupDynamicsettings';
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return this.apiClient.callApi(
|
|
508
|
+
'/api/v2/groups/{groupId}/dynamicsettings',
|
|
509
|
+
'PUT',
|
|
510
|
+
{ 'groupId': groupId },
|
|
511
|
+
{ },
|
|
512
|
+
{ },
|
|
513
|
+
{ },
|
|
514
|
+
body,
|
|
515
|
+
['PureCloud OAuth'],
|
|
516
|
+
['application/json'],
|
|
517
|
+
['application/json']
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
|
|
411
521
|
}
|
|
412
522
|
|
|
413
523
|
|
|
@@ -5,7 +5,7 @@ class IntegrationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Integrations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -897,6 +897,208 @@ class IntegrationsApi {
|
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
+
/**
|
|
901
|
+
* Get a Nuance bot in the specified Integration
|
|
902
|
+
*
|
|
903
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
904
|
+
* @param {String} botId The Nuance bot ID to get
|
|
905
|
+
* @param {Object} opts Optional parameters
|
|
906
|
+
* @param {Array.<String>} opts.expand expand
|
|
907
|
+
* @param {Object} opts.targetChannel targetChannel
|
|
908
|
+
* Preview Endpoint
|
|
909
|
+
*/
|
|
910
|
+
getIntegrationsSpeechNuanceNuanceIntegrationIdBot(nuanceIntegrationId, botId, opts) {
|
|
911
|
+
opts = opts || {};
|
|
912
|
+
|
|
913
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
914
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
915
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';
|
|
916
|
+
}
|
|
917
|
+
// verify the required parameter 'botId' is set
|
|
918
|
+
if (botId === undefined || botId === null) {
|
|
919
|
+
throw 'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
return this.apiClient.callApi(
|
|
923
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}',
|
|
924
|
+
'GET',
|
|
925
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId,'botId': botId },
|
|
926
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'targetChannel': opts['targetChannel'] },
|
|
927
|
+
{ },
|
|
928
|
+
{ },
|
|
929
|
+
null,
|
|
930
|
+
['PureCloud OAuth'],
|
|
931
|
+
['application/json'],
|
|
932
|
+
['application/json']
|
|
933
|
+
);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Get the status of an asynchronous Nuance bot GET job
|
|
938
|
+
*
|
|
939
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
940
|
+
* @param {String} botId The Nuance bot ID
|
|
941
|
+
* @param {String} jobId The asynchronous job ID
|
|
942
|
+
* Preview Endpoint
|
|
943
|
+
*/
|
|
944
|
+
getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(nuanceIntegrationId, botId, jobId) {
|
|
945
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
946
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
947
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';
|
|
948
|
+
}
|
|
949
|
+
// verify the required parameter 'botId' is set
|
|
950
|
+
if (botId === undefined || botId === null) {
|
|
951
|
+
throw 'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';
|
|
952
|
+
}
|
|
953
|
+
// verify the required parameter 'jobId' is set
|
|
954
|
+
if (jobId === undefined || jobId === null) {
|
|
955
|
+
throw 'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
return this.apiClient.callApi(
|
|
959
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}',
|
|
960
|
+
'GET',
|
|
961
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId,'botId': botId,'jobId': jobId },
|
|
962
|
+
{ },
|
|
963
|
+
{ },
|
|
964
|
+
{ },
|
|
965
|
+
null,
|
|
966
|
+
['PureCloud OAuth'],
|
|
967
|
+
['application/json'],
|
|
968
|
+
['application/json']
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Get the result of an asynchronous Nuance bot GET job
|
|
974
|
+
*
|
|
975
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
976
|
+
* @param {String} botId The Nuance bot ID
|
|
977
|
+
* @param {String} jobId The asynchronous job ID
|
|
978
|
+
* Preview Endpoint
|
|
979
|
+
*/
|
|
980
|
+
getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(nuanceIntegrationId, botId, jobId) {
|
|
981
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
982
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
983
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';
|
|
984
|
+
}
|
|
985
|
+
// verify the required parameter 'botId' is set
|
|
986
|
+
if (botId === undefined || botId === null) {
|
|
987
|
+
throw 'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';
|
|
988
|
+
}
|
|
989
|
+
// verify the required parameter 'jobId' is set
|
|
990
|
+
if (jobId === undefined || jobId === null) {
|
|
991
|
+
throw 'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
return this.apiClient.callApi(
|
|
995
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}/results',
|
|
996
|
+
'GET',
|
|
997
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId,'botId': botId,'jobId': jobId },
|
|
998
|
+
{ },
|
|
999
|
+
{ },
|
|
1000
|
+
{ },
|
|
1001
|
+
null,
|
|
1002
|
+
['PureCloud OAuth'],
|
|
1003
|
+
['application/json'],
|
|
1004
|
+
['application/json']
|
|
1005
|
+
);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Get a list of Nuance bots available in the specified Integration
|
|
1010
|
+
* If the onlyRegisteredBots param is set, the returned data will only include the Nuance bots which have configured client secrets within the Integration, otherwise all of the Nuance bots available to the Integrations configured discovery credentials are returned.
|
|
1011
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
1012
|
+
* @param {Object} opts Optional parameters
|
|
1013
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1014
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1015
|
+
* @param {Boolean} opts.onlyRegisteredBots Limit bots to the ones configured for Genesys Cloud usage (default to true)
|
|
1016
|
+
* Preview Endpoint
|
|
1017
|
+
*/
|
|
1018
|
+
getIntegrationsSpeechNuanceNuanceIntegrationIdBots(nuanceIntegrationId, opts) {
|
|
1019
|
+
opts = opts || {};
|
|
1020
|
+
|
|
1021
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
1022
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
1023
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBots';
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
return this.apiClient.callApi(
|
|
1027
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots',
|
|
1028
|
+
'GET',
|
|
1029
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId },
|
|
1030
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'onlyRegisteredBots': opts['onlyRegisteredBots'] },
|
|
1031
|
+
{ },
|
|
1032
|
+
{ },
|
|
1033
|
+
null,
|
|
1034
|
+
['PureCloud OAuth'],
|
|
1035
|
+
['application/json'],
|
|
1036
|
+
['application/json']
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Get the status of an asynchronous Nuance bots GET job
|
|
1042
|
+
*
|
|
1043
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
1044
|
+
* @param {String} jobId The asynchronous job ID
|
|
1045
|
+
* Preview Endpoint
|
|
1046
|
+
*/
|
|
1047
|
+
getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(nuanceIntegrationId, jobId) {
|
|
1048
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
1049
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
1050
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';
|
|
1051
|
+
}
|
|
1052
|
+
// verify the required parameter 'jobId' is set
|
|
1053
|
+
if (jobId === undefined || jobId === null) {
|
|
1054
|
+
throw 'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
return this.apiClient.callApi(
|
|
1058
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}',
|
|
1059
|
+
'GET',
|
|
1060
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId,'jobId': jobId },
|
|
1061
|
+
{ },
|
|
1062
|
+
{ },
|
|
1063
|
+
{ },
|
|
1064
|
+
null,
|
|
1065
|
+
['PureCloud OAuth'],
|
|
1066
|
+
['application/json'],
|
|
1067
|
+
['application/json']
|
|
1068
|
+
);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Get the result of an asynchronous Nuance bots GET job
|
|
1073
|
+
*
|
|
1074
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
1075
|
+
* @param {String} jobId The asynchronous job ID
|
|
1076
|
+
* Preview Endpoint
|
|
1077
|
+
*/
|
|
1078
|
+
getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(nuanceIntegrationId, jobId) {
|
|
1079
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
1080
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
1081
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';
|
|
1082
|
+
}
|
|
1083
|
+
// verify the required parameter 'jobId' is set
|
|
1084
|
+
if (jobId === undefined || jobId === null) {
|
|
1085
|
+
throw 'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
return this.apiClient.callApi(
|
|
1089
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}/results',
|
|
1090
|
+
'GET',
|
|
1091
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId,'jobId': jobId },
|
|
1092
|
+
{ },
|
|
1093
|
+
{ },
|
|
1094
|
+
{ },
|
|
1095
|
+
null,
|
|
1096
|
+
['PureCloud OAuth'],
|
|
1097
|
+
['application/json'],
|
|
1098
|
+
['application/json']
|
|
1099
|
+
);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
900
1102
|
/**
|
|
901
1103
|
* Get details about a TTS engine
|
|
902
1104
|
*
|
|
@@ -1486,6 +1688,105 @@ class IntegrationsApi {
|
|
|
1486
1688
|
);
|
|
1487
1689
|
}
|
|
1488
1690
|
|
|
1691
|
+
/**
|
|
1692
|
+
* Get a Nuance bot in the specified Integration asynchronously
|
|
1693
|
+
*
|
|
1694
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
1695
|
+
* @param {String} botId The Nuance bot ID
|
|
1696
|
+
* @param {Object} opts Optional parameters
|
|
1697
|
+
* @param {Array.<String>} opts.expand expand
|
|
1698
|
+
* @param {String} opts.body targetChannel
|
|
1699
|
+
* Preview Endpoint
|
|
1700
|
+
*/
|
|
1701
|
+
postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs(nuanceIntegrationId, botId, opts) {
|
|
1702
|
+
opts = opts || {};
|
|
1703
|
+
|
|
1704
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
1705
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
1706
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';
|
|
1707
|
+
}
|
|
1708
|
+
// verify the required parameter 'botId' is set
|
|
1709
|
+
if (botId === undefined || botId === null) {
|
|
1710
|
+
throw 'Missing the required parameter "botId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
return this.apiClient.callApi(
|
|
1714
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs',
|
|
1715
|
+
'POST',
|
|
1716
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId,'botId': botId },
|
|
1717
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
1718
|
+
{ },
|
|
1719
|
+
{ },
|
|
1720
|
+
opts['body'],
|
|
1721
|
+
['PureCloud OAuth'],
|
|
1722
|
+
['application/json'],
|
|
1723
|
+
['application/json']
|
|
1724
|
+
);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Get a list of Nuance bots in the specified Integration asynchronously
|
|
1729
|
+
*
|
|
1730
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
1731
|
+
* @param {Object} opts Optional parameters
|
|
1732
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1733
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1734
|
+
* @param {Boolean} opts.onlyRegisteredBots Limit bots to the ones configured for Genesys Cloud usage (default to true)
|
|
1735
|
+
* Preview Endpoint
|
|
1736
|
+
*/
|
|
1737
|
+
postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(nuanceIntegrationId, opts) {
|
|
1738
|
+
opts = opts || {};
|
|
1739
|
+
|
|
1740
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
1741
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
1742
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs';
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
return this.apiClient.callApi(
|
|
1746
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs',
|
|
1747
|
+
'POST',
|
|
1748
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId },
|
|
1749
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'onlyRegisteredBots': opts['onlyRegisteredBots'] },
|
|
1750
|
+
{ },
|
|
1751
|
+
{ },
|
|
1752
|
+
null,
|
|
1753
|
+
['PureCloud OAuth'],
|
|
1754
|
+
['application/json'],
|
|
1755
|
+
['application/json']
|
|
1756
|
+
);
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* Try out a single credential for a Nuance bot to know if the secret is correct
|
|
1761
|
+
*
|
|
1762
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
1763
|
+
* @param {Object} settings
|
|
1764
|
+
* Preview Endpoint
|
|
1765
|
+
*/
|
|
1766
|
+
postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(nuanceIntegrationId, settings) {
|
|
1767
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
1768
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
1769
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';
|
|
1770
|
+
}
|
|
1771
|
+
// verify the required parameter 'settings' is set
|
|
1772
|
+
if (settings === undefined || settings === null) {
|
|
1773
|
+
throw 'Missing the required parameter "settings" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
return this.apiClient.callApi(
|
|
1777
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/validate',
|
|
1778
|
+
'POST',
|
|
1779
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId },
|
|
1780
|
+
{ },
|
|
1781
|
+
{ },
|
|
1782
|
+
{ },
|
|
1783
|
+
settings,
|
|
1784
|
+
['PureCloud OAuth'],
|
|
1785
|
+
['application/json'],
|
|
1786
|
+
['application/json']
|
|
1787
|
+
);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1489
1790
|
/**
|
|
1490
1791
|
* Update integration configuration.
|
|
1491
1792
|
*
|
|
@@ -1574,6 +1875,37 @@ class IntegrationsApi {
|
|
|
1574
1875
|
);
|
|
1575
1876
|
}
|
|
1576
1877
|
|
|
1878
|
+
/**
|
|
1879
|
+
* Update the Nuance bot list for the specific bots made available to Genesys Cloud in the specified Integration
|
|
1880
|
+
*
|
|
1881
|
+
* @param {String} nuanceIntegrationId The integration ID for this group of bots
|
|
1882
|
+
* @param {Object} settings
|
|
1883
|
+
* Preview Endpoint
|
|
1884
|
+
*/
|
|
1885
|
+
putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(nuanceIntegrationId, settings) {
|
|
1886
|
+
// verify the required parameter 'nuanceIntegrationId' is set
|
|
1887
|
+
if (nuanceIntegrationId === undefined || nuanceIntegrationId === null) {
|
|
1888
|
+
throw 'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';
|
|
1889
|
+
}
|
|
1890
|
+
// verify the required parameter 'settings' is set
|
|
1891
|
+
if (settings === undefined || settings === null) {
|
|
1892
|
+
throw 'Missing the required parameter "settings" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
return this.apiClient.callApi(
|
|
1896
|
+
'/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/settings',
|
|
1897
|
+
'PUT',
|
|
1898
|
+
{ 'nuanceIntegrationId': nuanceIntegrationId },
|
|
1899
|
+
{ },
|
|
1900
|
+
{ },
|
|
1901
|
+
{ },
|
|
1902
|
+
settings,
|
|
1903
|
+
['PureCloud OAuth'],
|
|
1904
|
+
['application/json'],
|
|
1905
|
+
['application/json']
|
|
1906
|
+
);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1577
1909
|
/**
|
|
1578
1910
|
* Update TTS settings for an org
|
|
1579
1911
|
*
|