purecloud-platform-client-v2 186.0.1 → 187.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 +717 -168
- package/dist/web-amd/purecloud-platform-client-v2.js +717 -168
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +271 -134
- package/dist/web-cjs/purecloud-platform-client-v2.js +271 -134
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +520 -94
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +25 -7
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -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 +4 -22
- 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 +38 -3
- 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/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 +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 +106 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +136 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -34
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +63 -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 +186 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +11 -6
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +50 -0
- 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 -1
- 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 -27
- 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 +32 -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 +7 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class ArchitectApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Architect service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 187.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1061,8 +1061,14 @@ class ArchitectApi {
|
|
|
1061
1061
|
* Get specified user prompt
|
|
1062
1062
|
*
|
|
1063
1063
|
* @param {String} promptId Prompt ID
|
|
1064
|
+
* @param {Object} opts Optional parameters
|
|
1065
|
+
* @param {Boolean} opts.includeMediaUris Include the media URIs for each resource (default to true)
|
|
1066
|
+
* @param {Boolean} opts.includeResources Include the resources for each system prompt (default to true)
|
|
1067
|
+
* @param {Array.<String>} opts.language Filter the resources down to the provided languages
|
|
1064
1068
|
*/
|
|
1065
|
-
getArchitectPrompt(promptId) {
|
|
1069
|
+
getArchitectPrompt(promptId, opts) {
|
|
1070
|
+
opts = opts || {};
|
|
1071
|
+
|
|
1066
1072
|
// verify the required parameter 'promptId' is set
|
|
1067
1073
|
if (promptId === undefined || promptId === null) {
|
|
1068
1074
|
throw 'Missing the required parameter "promptId" when calling getArchitectPrompt';
|
|
@@ -1072,7 +1078,7 @@ class ArchitectApi {
|
|
|
1072
1078
|
'/api/v2/architect/prompts/{promptId}',
|
|
1073
1079
|
'GET',
|
|
1074
1080
|
{ 'promptId': promptId },
|
|
1075
|
-
{
|
|
1081
|
+
{ 'includeMediaUris': opts['includeMediaUris'],'includeResources': opts['includeResources'],'language': this.apiClient.buildCollectionParam(opts['language'], 'multi') },
|
|
1076
1082
|
{ },
|
|
1077
1083
|
{ },
|
|
1078
1084
|
null,
|
|
@@ -1191,6 +1197,9 @@ class ArchitectApi {
|
|
|
1191
1197
|
* @param {String} opts.nameOrDescription Name or description
|
|
1192
1198
|
* @param {String} opts.sortBy Sort by (default to id)
|
|
1193
1199
|
* @param {String} opts.sortOrder Sort order (default to asc)
|
|
1200
|
+
* @param {Boolean} opts.includeMediaUris Include the media URIs for each resource (default to true)
|
|
1201
|
+
* @param {Boolean} opts.includeResources Include the resources for each system prompt (default to true)
|
|
1202
|
+
* @param {Array.<String>} opts.language Filter the resources down to the provided languages
|
|
1194
1203
|
*/
|
|
1195
1204
|
getArchitectPrompts(opts) {
|
|
1196
1205
|
opts = opts || {};
|
|
@@ -1200,7 +1209,7 @@ class ArchitectApi {
|
|
|
1200
1209
|
'/api/v2/architect/prompts',
|
|
1201
1210
|
'GET',
|
|
1202
1211
|
{ },
|
|
1203
|
-
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'name': this.apiClient.buildCollectionParam(opts['name'], 'multi'),'description': opts['description'],'nameOrDescription': opts['nameOrDescription'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
|
|
1212
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'name': this.apiClient.buildCollectionParam(opts['name'], 'multi'),'description': opts['description'],'nameOrDescription': opts['nameOrDescription'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'includeMediaUris': opts['includeMediaUris'],'includeResources': opts['includeResources'],'language': this.apiClient.buildCollectionParam(opts['language'], 'multi') },
|
|
1204
1213
|
{ },
|
|
1205
1214
|
{ },
|
|
1206
1215
|
null,
|
|
@@ -1383,8 +1392,14 @@ class ArchitectApi {
|
|
|
1383
1392
|
* Get a system prompt
|
|
1384
1393
|
*
|
|
1385
1394
|
* @param {String} promptId promptId
|
|
1395
|
+
* @param {Object} opts Optional parameters
|
|
1396
|
+
* @param {Boolean} opts.includeMediaUris Include the media URIs for each resource (default to true)
|
|
1397
|
+
* @param {Boolean} opts.includeResources Include the resources for each system prompt (default to true)
|
|
1398
|
+
* @param {Array.<String>} opts.language Filter the resources down to the provided languages
|
|
1386
1399
|
*/
|
|
1387
|
-
getArchitectSystemprompt(promptId) {
|
|
1400
|
+
getArchitectSystemprompt(promptId, opts) {
|
|
1401
|
+
opts = opts || {};
|
|
1402
|
+
|
|
1388
1403
|
// verify the required parameter 'promptId' is set
|
|
1389
1404
|
if (promptId === undefined || promptId === null) {
|
|
1390
1405
|
throw 'Missing the required parameter "promptId" when calling getArchitectSystemprompt';
|
|
@@ -1394,7 +1409,7 @@ class ArchitectApi {
|
|
|
1394
1409
|
'/api/v2/architect/systemprompts/{promptId}',
|
|
1395
1410
|
'GET',
|
|
1396
1411
|
{ 'promptId': promptId },
|
|
1397
|
-
{
|
|
1412
|
+
{ 'includeMediaUris': opts['includeMediaUris'],'includeResources': opts['includeResources'],'language': this.apiClient.buildCollectionParam(opts['language'], 'multi') },
|
|
1398
1413
|
{ },
|
|
1399
1414
|
{ },
|
|
1400
1415
|
null,
|
|
@@ -1515,6 +1530,9 @@ class ArchitectApi {
|
|
|
1515
1530
|
* @param {String} opts.name Name
|
|
1516
1531
|
* @param {String} opts.description Description
|
|
1517
1532
|
* @param {String} opts.nameOrDescription Name or description
|
|
1533
|
+
* @param {Boolean} opts.includeMediaUris Include the media URIs for each resource (default to true)
|
|
1534
|
+
* @param {Boolean} opts.includeResources Include the resources for each system prompt (default to true)
|
|
1535
|
+
* @param {Array.<String>} opts.language Filter the resources down to the provided languages
|
|
1518
1536
|
*/
|
|
1519
1537
|
getArchitectSystemprompts(opts) {
|
|
1520
1538
|
opts = opts || {};
|
|
@@ -1524,7 +1542,7 @@ class ArchitectApi {
|
|
|
1524
1542
|
'/api/v2/architect/systemprompts',
|
|
1525
1543
|
'GET',
|
|
1526
1544
|
{ },
|
|
1527
|
-
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'description': opts['description'],'nameOrDescription': opts['nameOrDescription'] },
|
|
1545
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'description': opts['description'],'nameOrDescription': opts['nameOrDescription'],'includeMediaUris': opts['includeMediaUris'],'includeResources': opts['includeResources'],'language': this.apiClient.buildCollectionParam(opts['language'], 'multi') },
|
|
1528
1546
|
{ },
|
|
1529
1547
|
{ },
|
|
1530
1548
|
null,
|
|
@@ -5,7 +5,7 @@ class ChatApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Chat service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 187.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -232,12 +232,6 @@ class ChatApi {
|
|
|
232
232
|
*
|
|
233
233
|
* @param {String} roomJid roomJid
|
|
234
234
|
* @param {Object} opts Optional parameters
|
|
235
|
-
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
236
|
-
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
237
|
-
* @param {String} opts.sortBy variable name requested to sort by
|
|
238
|
-
* @param {Array.<String>} opts.expand variable name requested by expand list
|
|
239
|
-
* @param {String} opts.nextPage next page token
|
|
240
|
-
* @param {String} opts.previousPage Previous page token
|
|
241
235
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
242
236
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
243
237
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
@@ -255,7 +249,7 @@ class ChatApi {
|
|
|
255
249
|
'/api/v2/chats/rooms/{roomJid}/messages',
|
|
256
250
|
'GET',
|
|
257
251
|
{ 'roomJid': roomJid },
|
|
258
|
-
{ '
|
|
252
|
+
{ 'limit': opts['limit'],'before': opts['before'],'after': opts['after'] },
|
|
259
253
|
{ },
|
|
260
254
|
{ },
|
|
261
255
|
null,
|
|
@@ -290,12 +284,6 @@ class ChatApi {
|
|
|
290
284
|
*
|
|
291
285
|
* @param {String} threadId threadId
|
|
292
286
|
* @param {Object} opts Optional parameters
|
|
293
|
-
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
294
|
-
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
295
|
-
* @param {String} opts.sortBy variable name requested to sort by
|
|
296
|
-
* @param {Array.<String>} opts.expand variable name requested by expand list
|
|
297
|
-
* @param {String} opts.nextPage next page token
|
|
298
|
-
* @param {String} opts.previousPage Previous page token
|
|
299
287
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
300
288
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
301
289
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
@@ -313,7 +301,7 @@ class ChatApi {
|
|
|
313
301
|
'/api/v2/chats/threads/{threadId}/messages',
|
|
314
302
|
'GET',
|
|
315
303
|
{ 'threadId': threadId },
|
|
316
|
-
{ '
|
|
304
|
+
{ 'limit': opts['limit'],'before': opts['before'],'after': opts['after'] },
|
|
317
305
|
{ },
|
|
318
306
|
{ },
|
|
319
307
|
null,
|
|
@@ -359,12 +347,6 @@ class ChatApi {
|
|
|
359
347
|
*
|
|
360
348
|
* @param {String} userId userId
|
|
361
349
|
* @param {Object} opts Optional parameters
|
|
362
|
-
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
363
|
-
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
364
|
-
* @param {String} opts.sortBy variable name requested to sort by
|
|
365
|
-
* @param {Array.<String>} opts.expand variable name requested by expand list
|
|
366
|
-
* @param {String} opts.nextPage next page token
|
|
367
|
-
* @param {String} opts.previousPage Previous page token
|
|
368
350
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
369
351
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
370
352
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
@@ -382,7 +364,7 @@ class ChatApi {
|
|
|
382
364
|
'/api/v2/chats/users/{userId}/messages',
|
|
383
365
|
'GET',
|
|
384
366
|
{ 'userId': userId },
|
|
385
|
-
{ '
|
|
367
|
+
{ 'limit': opts['limit'],'before': opts['before'],'after': opts['after'] },
|
|
386
368
|
{ },
|
|
387
369
|
{ },
|
|
388
370
|
null,
|
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 187.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -4708,6 +4708,40 @@ class ConversationsApi {
|
|
|
4708
4708
|
);
|
|
4709
4709
|
}
|
|
4710
4710
|
|
|
4711
|
+
/**
|
|
4712
|
+
* Submit feedback for the summary.
|
|
4713
|
+
*
|
|
4714
|
+
* @param {String} conversationId Conversation ID
|
|
4715
|
+
* @param {String} summaryId Summary ID
|
|
4716
|
+
* @param {Object} opts Optional parameters
|
|
4717
|
+
* @param {Object} opts.body
|
|
4718
|
+
*/
|
|
4719
|
+
postConversationSummaryFeedback(conversationId, summaryId, opts) {
|
|
4720
|
+
opts = opts || {};
|
|
4721
|
+
|
|
4722
|
+
// verify the required parameter 'conversationId' is set
|
|
4723
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4724
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';
|
|
4725
|
+
}
|
|
4726
|
+
// verify the required parameter 'summaryId' is set
|
|
4727
|
+
if (summaryId === undefined || summaryId === null) {
|
|
4728
|
+
throw 'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';
|
|
4729
|
+
}
|
|
4730
|
+
|
|
4731
|
+
return this.apiClient.callApi(
|
|
4732
|
+
'/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback',
|
|
4733
|
+
'POST',
|
|
4734
|
+
{ 'conversationId': conversationId,'summaryId': summaryId },
|
|
4735
|
+
{ },
|
|
4736
|
+
{ },
|
|
4737
|
+
{ },
|
|
4738
|
+
opts['body'],
|
|
4739
|
+
['PureCloud OAuth'],
|
|
4740
|
+
['application/json'],
|
|
4741
|
+
['application/json']
|
|
4742
|
+
);
|
|
4743
|
+
}
|
|
4744
|
+
|
|
4711
4745
|
/**
|
|
4712
4746
|
* Place a new call as part of a callback conversation.
|
|
4713
4747
|
*
|
|
@@ -6231,9 +6265,10 @@ class ConversationsApi {
|
|
|
6231
6265
|
}
|
|
6232
6266
|
|
|
6233
6267
|
/**
|
|
6234
|
-
* Create a LINE messenger Integration
|
|
6235
|
-
*
|
|
6268
|
+
* Create a LINE messenger Integration (Deprecated)
|
|
6269
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
6236
6270
|
* @param {Object} body LineIntegrationRequest
|
|
6271
|
+
* @deprecated
|
|
6237
6272
|
*/
|
|
6238
6273
|
postConversationsMessagingIntegrationsLine(body) {
|
|
6239
6274
|
// verify the required parameter 'body' is set
|
|
@@ -5,7 +5,7 @@ class IdentityProviderApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* IdentityProvider service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 187.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,31 @@ class IdentityProviderApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Delete Identity Provider
|
|
25
|
+
*
|
|
26
|
+
* @param {String} providerId Provider ID
|
|
27
|
+
*/
|
|
28
|
+
deleteIdentityprovider(providerId) {
|
|
29
|
+
// verify the required parameter 'providerId' is set
|
|
30
|
+
if (providerId === undefined || providerId === null) {
|
|
31
|
+
throw 'Missing the required parameter "providerId" when calling deleteIdentityprovider';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/identityproviders/{providerId}',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'providerId': providerId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* Delete ADFS Identity Provider
|
|
25
50
|
*
|
|
@@ -240,6 +265,31 @@ class IdentityProviderApi {
|
|
|
240
265
|
);
|
|
241
266
|
}
|
|
242
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Get Identity Provider
|
|
270
|
+
*
|
|
271
|
+
* @param {String} providerId Provider ID
|
|
272
|
+
*/
|
|
273
|
+
getIdentityprovider(providerId) {
|
|
274
|
+
// verify the required parameter 'providerId' is set
|
|
275
|
+
if (providerId === undefined || providerId === null) {
|
|
276
|
+
throw 'Missing the required parameter "providerId" when calling getIdentityprovider';
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return this.apiClient.callApi(
|
|
280
|
+
'/api/v2/identityproviders/{providerId}',
|
|
281
|
+
'GET',
|
|
282
|
+
{ 'providerId': providerId },
|
|
283
|
+
{ },
|
|
284
|
+
{ },
|
|
285
|
+
{ },
|
|
286
|
+
null,
|
|
287
|
+
['PureCloud OAuth'],
|
|
288
|
+
['application/json'],
|
|
289
|
+
['application/json']
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
243
293
|
/**
|
|
244
294
|
* The list of identity providers
|
|
245
295
|
*
|
|
@@ -480,6 +530,61 @@ class IdentityProviderApi {
|
|
|
480
530
|
);
|
|
481
531
|
}
|
|
482
532
|
|
|
533
|
+
/**
|
|
534
|
+
* Create Identity Provider
|
|
535
|
+
*
|
|
536
|
+
* @param {Object} body Provider
|
|
537
|
+
*/
|
|
538
|
+
postIdentityproviders(body) {
|
|
539
|
+
// verify the required parameter 'body' is set
|
|
540
|
+
if (body === undefined || body === null) {
|
|
541
|
+
throw 'Missing the required parameter "body" when calling postIdentityproviders';
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
return this.apiClient.callApi(
|
|
545
|
+
'/api/v2/identityproviders',
|
|
546
|
+
'POST',
|
|
547
|
+
{ },
|
|
548
|
+
{ },
|
|
549
|
+
{ },
|
|
550
|
+
{ },
|
|
551
|
+
body,
|
|
552
|
+
['PureCloud OAuth'],
|
|
553
|
+
['application/json'],
|
|
554
|
+
['application/json']
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Update Identity Provider
|
|
560
|
+
*
|
|
561
|
+
* @param {String} providerId Provider ID
|
|
562
|
+
* @param {Object} body Provider
|
|
563
|
+
*/
|
|
564
|
+
putIdentityprovider(providerId, body) {
|
|
565
|
+
// verify the required parameter 'providerId' is set
|
|
566
|
+
if (providerId === undefined || providerId === null) {
|
|
567
|
+
throw 'Missing the required parameter "providerId" when calling putIdentityprovider';
|
|
568
|
+
}
|
|
569
|
+
// verify the required parameter 'body' is set
|
|
570
|
+
if (body === undefined || body === null) {
|
|
571
|
+
throw 'Missing the required parameter "body" when calling putIdentityprovider';
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
return this.apiClient.callApi(
|
|
575
|
+
'/api/v2/identityproviders/{providerId}',
|
|
576
|
+
'PUT',
|
|
577
|
+
{ 'providerId': providerId },
|
|
578
|
+
{ },
|
|
579
|
+
{ },
|
|
580
|
+
{ },
|
|
581
|
+
body,
|
|
582
|
+
['PureCloud OAuth'],
|
|
583
|
+
['application/json'],
|
|
584
|
+
['application/json']
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
|
|
483
588
|
/**
|
|
484
589
|
* Update/Create ADFS Identity Provider
|
|
485
590
|
*
|