purecloud-platform-client-v2 169.0.0 → 170.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 +6 -4
- package/dist/node/purecloud-platform-client-v2.js +25367 -20288
- package/dist/web-amd/purecloud-platform-client-v2.js +25367 -20288
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +25367 -20288
- package/dist/web-cjs/purecloud-platform-client-v2.js +25367 -20288
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +2519 -31
- 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 +6 -4
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +526 -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/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 +363 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +224 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +200 -22
- 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 +6 -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 +8 -8
- 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 +189 -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 -2
- 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 +1286 -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 +34 -3
- 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 +1 -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 ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 170.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -195,6 +195,31 @@ class ConversationsApi {
|
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* Delete Instagram messaging integration
|
|
200
|
+
*
|
|
201
|
+
* @param {String} integrationId Integration ID
|
|
202
|
+
*/
|
|
203
|
+
deleteConversationsMessagingIntegrationsInstagramIntegrationId(integrationId) {
|
|
204
|
+
// verify the required parameter 'integrationId' is set
|
|
205
|
+
if (integrationId === undefined || integrationId === null) {
|
|
206
|
+
throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return this.apiClient.callApi(
|
|
210
|
+
'/api/v2/conversations/messaging/integrations/instagram/{integrationId}',
|
|
211
|
+
'DELETE',
|
|
212
|
+
{ 'integrationId': integrationId },
|
|
213
|
+
{ },
|
|
214
|
+
{ },
|
|
215
|
+
{ },
|
|
216
|
+
null,
|
|
217
|
+
['PureCloud OAuth'],
|
|
218
|
+
['application/json'],
|
|
219
|
+
['application/json']
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
198
223
|
/**
|
|
199
224
|
* Delete a LINE messenger integration
|
|
200
225
|
*
|
|
@@ -345,6 +370,62 @@ class ConversationsApi {
|
|
|
345
370
|
);
|
|
346
371
|
}
|
|
347
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Get status for async query for conversation aggregates
|
|
375
|
+
*
|
|
376
|
+
* @param {String} jobId jobId
|
|
377
|
+
* getAnalyticsConversationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
378
|
+
*/
|
|
379
|
+
getAnalyticsConversationsAggregatesJob(jobId) {
|
|
380
|
+
// verify the required parameter 'jobId' is set
|
|
381
|
+
if (jobId === undefined || jobId === null) {
|
|
382
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return this.apiClient.callApi(
|
|
386
|
+
'/api/v2/analytics/conversations/aggregates/jobs/{jobId}',
|
|
387
|
+
'GET',
|
|
388
|
+
{ 'jobId': jobId },
|
|
389
|
+
{ },
|
|
390
|
+
{ },
|
|
391
|
+
{ },
|
|
392
|
+
null,
|
|
393
|
+
['PureCloud OAuth'],
|
|
394
|
+
['application/json'],
|
|
395
|
+
['application/json']
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Fetch a page of results for an async aggregates query
|
|
401
|
+
*
|
|
402
|
+
* @param {String} jobId jobId
|
|
403
|
+
* @param {Object} opts Optional parameters
|
|
404
|
+
* @param {String} opts.cursor Cursor token to retrieve next page
|
|
405
|
+
* getAnalyticsConversationsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
406
|
+
*/
|
|
407
|
+
getAnalyticsConversationsAggregatesJobResults(jobId, opts) {
|
|
408
|
+
opts = opts || {};
|
|
409
|
+
|
|
410
|
+
// verify the required parameter 'jobId' is set
|
|
411
|
+
if (jobId === undefined || jobId === null) {
|
|
412
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
return this.apiClient.callApi(
|
|
416
|
+
'/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results',
|
|
417
|
+
'GET',
|
|
418
|
+
{ 'jobId': jobId },
|
|
419
|
+
{ 'cursor': opts['cursor'] },
|
|
420
|
+
{ },
|
|
421
|
+
{ },
|
|
422
|
+
null,
|
|
423
|
+
['PureCloud OAuth'],
|
|
424
|
+
['application/json'],
|
|
425
|
+
['application/json']
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
|
|
348
429
|
/**
|
|
349
430
|
* Gets multiple conversations by id
|
|
350
431
|
*
|
|
@@ -1997,6 +2078,63 @@ class ConversationsApi {
|
|
|
1997
2078
|
);
|
|
1998
2079
|
}
|
|
1999
2080
|
|
|
2081
|
+
/**
|
|
2082
|
+
* Get a list of Instagram Integrations
|
|
2083
|
+
*
|
|
2084
|
+
* @param {Object} opts Optional parameters
|
|
2085
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
2086
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
2087
|
+
* @param {Object} opts.expand Expand instructions for the return value.
|
|
2088
|
+
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
2089
|
+
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
2090
|
+
*/
|
|
2091
|
+
getConversationsMessagingIntegrationsInstagram(opts) {
|
|
2092
|
+
opts = opts || {};
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
return this.apiClient.callApi(
|
|
2096
|
+
'/api/v2/conversations/messaging/integrations/instagram',
|
|
2097
|
+
'GET',
|
|
2098
|
+
{ },
|
|
2099
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'expand': opts['expand'],'supportedContent.id': opts['supportedContentId'],'messagingSetting.id': opts['messagingSettingId'] },
|
|
2100
|
+
{ },
|
|
2101
|
+
{ },
|
|
2102
|
+
null,
|
|
2103
|
+
['PureCloud OAuth'],
|
|
2104
|
+
['application/json'],
|
|
2105
|
+
['application/json']
|
|
2106
|
+
);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Get Instagram messaging integration
|
|
2111
|
+
*
|
|
2112
|
+
* @param {String} integrationId Integration ID
|
|
2113
|
+
* @param {Object} opts Optional parameters
|
|
2114
|
+
* @param {Object} opts.expand Expand instructions for the return value.
|
|
2115
|
+
*/
|
|
2116
|
+
getConversationsMessagingIntegrationsInstagramIntegrationId(integrationId, opts) {
|
|
2117
|
+
opts = opts || {};
|
|
2118
|
+
|
|
2119
|
+
// verify the required parameter 'integrationId' is set
|
|
2120
|
+
if (integrationId === undefined || integrationId === null) {
|
|
2121
|
+
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
return this.apiClient.callApi(
|
|
2125
|
+
'/api/v2/conversations/messaging/integrations/instagram/{integrationId}',
|
|
2126
|
+
'GET',
|
|
2127
|
+
{ 'integrationId': integrationId },
|
|
2128
|
+
{ 'expand': opts['expand'] },
|
|
2129
|
+
{ },
|
|
2130
|
+
{ },
|
|
2131
|
+
null,
|
|
2132
|
+
['PureCloud OAuth'],
|
|
2133
|
+
['application/json'],
|
|
2134
|
+
['application/json']
|
|
2135
|
+
);
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2000
2138
|
/**
|
|
2001
2139
|
* Get a list of LINE messenger Integrations
|
|
2002
2140
|
*
|
|
@@ -2443,6 +2581,32 @@ class ConversationsApi {
|
|
|
2443
2581
|
);
|
|
2444
2582
|
}
|
|
2445
2583
|
|
|
2584
|
+
/**
|
|
2585
|
+
* Get video conference details (e.g. the current number of active participants).
|
|
2586
|
+
*
|
|
2587
|
+
* @param {String} conferenceId conferenceId
|
|
2588
|
+
* getConversationsVideoDetails is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2589
|
+
*/
|
|
2590
|
+
getConversationsVideoDetails(conferenceId) {
|
|
2591
|
+
// verify the required parameter 'conferenceId' is set
|
|
2592
|
+
if (conferenceId === undefined || conferenceId === null) {
|
|
2593
|
+
throw 'Missing the required parameter "conferenceId" when calling getConversationsVideoDetails';
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
return this.apiClient.callApi(
|
|
2597
|
+
'/api/v2/conversations/videos/{conferenceId}/details',
|
|
2598
|
+
'GET',
|
|
2599
|
+
{ 'conferenceId': conferenceId },
|
|
2600
|
+
{ },
|
|
2601
|
+
{ },
|
|
2602
|
+
{ },
|
|
2603
|
+
null,
|
|
2604
|
+
['PureCloud OAuth'],
|
|
2605
|
+
['application/json'],
|
|
2606
|
+
['application/json']
|
|
2607
|
+
);
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2446
2610
|
/**
|
|
2447
2611
|
* Get the wrap-up for this conversation communication.
|
|
2448
2612
|
*
|
|
@@ -3579,6 +3743,36 @@ class ConversationsApi {
|
|
|
3579
3743
|
);
|
|
3580
3744
|
}
|
|
3581
3745
|
|
|
3746
|
+
/**
|
|
3747
|
+
* Update Instagram messaging integration
|
|
3748
|
+
*
|
|
3749
|
+
* @param {String} integrationId Integration ID
|
|
3750
|
+
* @param {Object} body InstagramIntegrationUpdateRequest
|
|
3751
|
+
*/
|
|
3752
|
+
patchConversationsMessagingIntegrationsInstagramIntegrationId(integrationId, body) {
|
|
3753
|
+
// verify the required parameter 'integrationId' is set
|
|
3754
|
+
if (integrationId === undefined || integrationId === null) {
|
|
3755
|
+
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
3756
|
+
}
|
|
3757
|
+
// verify the required parameter 'body' is set
|
|
3758
|
+
if (body === undefined || body === null) {
|
|
3759
|
+
throw 'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
return this.apiClient.callApi(
|
|
3763
|
+
'/api/v2/conversations/messaging/integrations/instagram/{integrationId}',
|
|
3764
|
+
'PATCH',
|
|
3765
|
+
{ 'integrationId': integrationId },
|
|
3766
|
+
{ },
|
|
3767
|
+
{ },
|
|
3768
|
+
{ },
|
|
3769
|
+
body,
|
|
3770
|
+
['PureCloud OAuth'],
|
|
3771
|
+
['application/json'],
|
|
3772
|
+
['application/json']
|
|
3773
|
+
);
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3582
3776
|
/**
|
|
3583
3777
|
* Update an Open messaging integration
|
|
3584
3778
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
@@ -3754,6 +3948,63 @@ class ConversationsApi {
|
|
|
3754
3948
|
);
|
|
3755
3949
|
}
|
|
3756
3950
|
|
|
3951
|
+
/**
|
|
3952
|
+
* Query for conversation activity observations
|
|
3953
|
+
*
|
|
3954
|
+
* @param {Object} body query
|
|
3955
|
+
* @param {Object} opts Optional parameters
|
|
3956
|
+
* @param {Number} opts.pageSize The desired page size
|
|
3957
|
+
* @param {Number} opts.pageNumber The desired page number
|
|
3958
|
+
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3959
|
+
*/
|
|
3960
|
+
postAnalyticsConversationsActivityQuery(body, opts) {
|
|
3961
|
+
opts = opts || {};
|
|
3962
|
+
|
|
3963
|
+
// verify the required parameter 'body' is set
|
|
3964
|
+
if (body === undefined || body === null) {
|
|
3965
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
return this.apiClient.callApi(
|
|
3969
|
+
'/api/v2/analytics/conversations/activity/query',
|
|
3970
|
+
'POST',
|
|
3971
|
+
{ },
|
|
3972
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
3973
|
+
{ },
|
|
3974
|
+
{ },
|
|
3975
|
+
body,
|
|
3976
|
+
['PureCloud OAuth'],
|
|
3977
|
+
['application/json'],
|
|
3978
|
+
['application/json']
|
|
3979
|
+
);
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3982
|
+
/**
|
|
3983
|
+
* Query for conversation aggregates asynchronously
|
|
3984
|
+
*
|
|
3985
|
+
* @param {Object} body query
|
|
3986
|
+
* postAnalyticsConversationsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3987
|
+
*/
|
|
3988
|
+
postAnalyticsConversationsAggregatesJobs(body) {
|
|
3989
|
+
// verify the required parameter 'body' is set
|
|
3990
|
+
if (body === undefined || body === null) {
|
|
3991
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
return this.apiClient.callApi(
|
|
3995
|
+
'/api/v2/analytics/conversations/aggregates/jobs',
|
|
3996
|
+
'POST',
|
|
3997
|
+
{ },
|
|
3998
|
+
{ },
|
|
3999
|
+
{ },
|
|
4000
|
+
{ },
|
|
4001
|
+
body,
|
|
4002
|
+
['PureCloud OAuth'],
|
|
4003
|
+
['application/json'],
|
|
4004
|
+
['application/json']
|
|
4005
|
+
);
|
|
4006
|
+
}
|
|
4007
|
+
|
|
3757
4008
|
/**
|
|
3758
4009
|
* Query for conversation aggregates
|
|
3759
4010
|
*
|
|
@@ -3983,6 +4234,7 @@ class ConversationsApi {
|
|
|
3983
4234
|
* @param {String} conversationId conversation ID
|
|
3984
4235
|
* @param {String} participantId participant ID
|
|
3985
4236
|
* @param {Object} body Transfer request
|
|
4237
|
+
* @deprecated
|
|
3986
4238
|
*/
|
|
3987
4239
|
postConversationParticipantReplace(conversationId, participantId, body) {
|
|
3988
4240
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4012,6 +4264,111 @@ class ConversationsApi {
|
|
|
4012
4264
|
);
|
|
4013
4265
|
}
|
|
4014
4266
|
|
|
4267
|
+
/**
|
|
4268
|
+
* Replace this participant with the specified agent
|
|
4269
|
+
*
|
|
4270
|
+
* @param {String} conversationId conversation ID
|
|
4271
|
+
* @param {String} participantId participant ID
|
|
4272
|
+
* @param {Object} body Transfer request
|
|
4273
|
+
*/
|
|
4274
|
+
postConversationParticipantReplaceAgent(conversationId, participantId, body) {
|
|
4275
|
+
// verify the required parameter 'conversationId' is set
|
|
4276
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4277
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';
|
|
4278
|
+
}
|
|
4279
|
+
// verify the required parameter 'participantId' is set
|
|
4280
|
+
if (participantId === undefined || participantId === null) {
|
|
4281
|
+
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';
|
|
4282
|
+
}
|
|
4283
|
+
// verify the required parameter 'body' is set
|
|
4284
|
+
if (body === undefined || body === null) {
|
|
4285
|
+
throw 'Missing the required parameter "body" when calling postConversationParticipantReplaceAgent';
|
|
4286
|
+
}
|
|
4287
|
+
|
|
4288
|
+
return this.apiClient.callApi(
|
|
4289
|
+
'/api/v2/conversations/{conversationId}/participants/{participantId}/replace/agent',
|
|
4290
|
+
'POST',
|
|
4291
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4292
|
+
{ },
|
|
4293
|
+
{ },
|
|
4294
|
+
{ },
|
|
4295
|
+
body,
|
|
4296
|
+
['PureCloud OAuth'],
|
|
4297
|
+
['application/json'],
|
|
4298
|
+
['application/json']
|
|
4299
|
+
);
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* Replace this participant with the an external contact
|
|
4304
|
+
*
|
|
4305
|
+
* @param {String} conversationId conversation ID
|
|
4306
|
+
* @param {String} participantId participant ID
|
|
4307
|
+
* @param {Object} body Transfer request
|
|
4308
|
+
*/
|
|
4309
|
+
postConversationParticipantReplaceExternal(conversationId, participantId, body) {
|
|
4310
|
+
// verify the required parameter 'conversationId' is set
|
|
4311
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4312
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';
|
|
4313
|
+
}
|
|
4314
|
+
// verify the required parameter 'participantId' is set
|
|
4315
|
+
if (participantId === undefined || participantId === null) {
|
|
4316
|
+
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';
|
|
4317
|
+
}
|
|
4318
|
+
// verify the required parameter 'body' is set
|
|
4319
|
+
if (body === undefined || body === null) {
|
|
4320
|
+
throw 'Missing the required parameter "body" when calling postConversationParticipantReplaceExternal';
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
return this.apiClient.callApi(
|
|
4324
|
+
'/api/v2/conversations/{conversationId}/participants/{participantId}/replace/external',
|
|
4325
|
+
'POST',
|
|
4326
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4327
|
+
{ },
|
|
4328
|
+
{ },
|
|
4329
|
+
{ },
|
|
4330
|
+
body,
|
|
4331
|
+
['PureCloud OAuth'],
|
|
4332
|
+
['application/json'],
|
|
4333
|
+
['application/json']
|
|
4334
|
+
);
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* Replace this participant with the specified queue
|
|
4339
|
+
*
|
|
4340
|
+
* @param {String} conversationId conversation ID
|
|
4341
|
+
* @param {String} participantId participant ID
|
|
4342
|
+
* @param {Object} body Transfer request
|
|
4343
|
+
*/
|
|
4344
|
+
postConversationParticipantReplaceQueue(conversationId, participantId, body) {
|
|
4345
|
+
// verify the required parameter 'conversationId' is set
|
|
4346
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4347
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';
|
|
4348
|
+
}
|
|
4349
|
+
// verify the required parameter 'participantId' is set
|
|
4350
|
+
if (participantId === undefined || participantId === null) {
|
|
4351
|
+
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';
|
|
4352
|
+
}
|
|
4353
|
+
// verify the required parameter 'body' is set
|
|
4354
|
+
if (body === undefined || body === null) {
|
|
4355
|
+
throw 'Missing the required parameter "body" when calling postConversationParticipantReplaceQueue';
|
|
4356
|
+
}
|
|
4357
|
+
|
|
4358
|
+
return this.apiClient.callApi(
|
|
4359
|
+
'/api/v2/conversations/{conversationId}/participants/{participantId}/replace/queue',
|
|
4360
|
+
'POST',
|
|
4361
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4362
|
+
{ },
|
|
4363
|
+
{ },
|
|
4364
|
+
{ },
|
|
4365
|
+
body,
|
|
4366
|
+
['PureCloud OAuth'],
|
|
4367
|
+
['application/json'],
|
|
4368
|
+
['application/json']
|
|
4369
|
+
);
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4015
4372
|
/**
|
|
4016
4373
|
* Create secure IVR session. Only a participant in the conversation can invoke a secure IVR.
|
|
4017
4374
|
*
|
|
@@ -4151,6 +4508,7 @@ class ConversationsApi {
|
|
|
4151
4508
|
* @param {String} conversationId conversationId
|
|
4152
4509
|
* @param {String} participantId participantId
|
|
4153
4510
|
* @param {Object} body Destination address and initial speak to
|
|
4511
|
+
* @deprecated
|
|
4154
4512
|
*/
|
|
4155
4513
|
postConversationsCallParticipantConsult(conversationId, participantId, body) {
|
|
4156
4514
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4180,6 +4538,111 @@ class ConversationsApi {
|
|
|
4180
4538
|
);
|
|
4181
4539
|
}
|
|
4182
4540
|
|
|
4541
|
+
/**
|
|
4542
|
+
* Initiate a consult transfer to an agent
|
|
4543
|
+
*
|
|
4544
|
+
* @param {String} conversationId conversationId
|
|
4545
|
+
* @param {String} participantId participantId
|
|
4546
|
+
* @param {Object} body Destination agent and initial speak to
|
|
4547
|
+
*/
|
|
4548
|
+
postConversationsCallParticipantConsultAgent(conversationId, participantId, body) {
|
|
4549
|
+
// verify the required parameter 'conversationId' is set
|
|
4550
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4551
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';
|
|
4552
|
+
}
|
|
4553
|
+
// verify the required parameter 'participantId' is set
|
|
4554
|
+
if (participantId === undefined || participantId === null) {
|
|
4555
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';
|
|
4556
|
+
}
|
|
4557
|
+
// verify the required parameter 'body' is set
|
|
4558
|
+
if (body === undefined || body === null) {
|
|
4559
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallParticipantConsultAgent';
|
|
4560
|
+
}
|
|
4561
|
+
|
|
4562
|
+
return this.apiClient.callApi(
|
|
4563
|
+
'/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/agent',
|
|
4564
|
+
'POST',
|
|
4565
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4566
|
+
{ },
|
|
4567
|
+
{ },
|
|
4568
|
+
{ },
|
|
4569
|
+
body,
|
|
4570
|
+
['PureCloud OAuth'],
|
|
4571
|
+
['application/json'],
|
|
4572
|
+
['application/json']
|
|
4573
|
+
);
|
|
4574
|
+
}
|
|
4575
|
+
|
|
4576
|
+
/**
|
|
4577
|
+
* Initiate a consult transfer to an external contact
|
|
4578
|
+
*
|
|
4579
|
+
* @param {String} conversationId conversationId
|
|
4580
|
+
* @param {String} participantId participantId
|
|
4581
|
+
* @param {Object} body Destination address and initial speak to
|
|
4582
|
+
*/
|
|
4583
|
+
postConversationsCallParticipantConsultExternal(conversationId, participantId, body) {
|
|
4584
|
+
// verify the required parameter 'conversationId' is set
|
|
4585
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4586
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';
|
|
4587
|
+
}
|
|
4588
|
+
// verify the required parameter 'participantId' is set
|
|
4589
|
+
if (participantId === undefined || participantId === null) {
|
|
4590
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';
|
|
4591
|
+
}
|
|
4592
|
+
// verify the required parameter 'body' is set
|
|
4593
|
+
if (body === undefined || body === null) {
|
|
4594
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallParticipantConsultExternal';
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
return this.apiClient.callApi(
|
|
4598
|
+
'/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/external',
|
|
4599
|
+
'POST',
|
|
4600
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4601
|
+
{ },
|
|
4602
|
+
{ },
|
|
4603
|
+
{ },
|
|
4604
|
+
body,
|
|
4605
|
+
['PureCloud OAuth'],
|
|
4606
|
+
['application/json'],
|
|
4607
|
+
['application/json']
|
|
4608
|
+
);
|
|
4609
|
+
}
|
|
4610
|
+
|
|
4611
|
+
/**
|
|
4612
|
+
* Initiate a consult transfer to a queue
|
|
4613
|
+
*
|
|
4614
|
+
* @param {String} conversationId conversationId
|
|
4615
|
+
* @param {String} participantId participantId
|
|
4616
|
+
* @param {Object} body Destination queue and initial speak to
|
|
4617
|
+
*/
|
|
4618
|
+
postConversationsCallParticipantConsultQueue(conversationId, participantId, body) {
|
|
4619
|
+
// verify the required parameter 'conversationId' is set
|
|
4620
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4621
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';
|
|
4622
|
+
}
|
|
4623
|
+
// verify the required parameter 'participantId' is set
|
|
4624
|
+
if (participantId === undefined || participantId === null) {
|
|
4625
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';
|
|
4626
|
+
}
|
|
4627
|
+
// verify the required parameter 'body' is set
|
|
4628
|
+
if (body === undefined || body === null) {
|
|
4629
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallParticipantConsultQueue';
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4632
|
+
return this.apiClient.callApi(
|
|
4633
|
+
'/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/queue',
|
|
4634
|
+
'POST',
|
|
4635
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4636
|
+
{ },
|
|
4637
|
+
{ },
|
|
4638
|
+
{ },
|
|
4639
|
+
body,
|
|
4640
|
+
['PureCloud OAuth'],
|
|
4641
|
+
['application/json'],
|
|
4642
|
+
['application/json']
|
|
4643
|
+
);
|
|
4644
|
+
}
|
|
4645
|
+
|
|
4183
4646
|
/**
|
|
4184
4647
|
* Listen in on the conversation from the point of view of a given participant.
|
|
4185
4648
|
*
|
|
@@ -4216,6 +4679,7 @@ class ConversationsApi {
|
|
|
4216
4679
|
* @param {String} conversationId conversationId
|
|
4217
4680
|
* @param {String} participantId participantId
|
|
4218
4681
|
* @param {Object} body Transfer request
|
|
4682
|
+
* @deprecated
|
|
4219
4683
|
*/
|
|
4220
4684
|
postConversationsCallParticipantReplace(conversationId, participantId, body) {
|
|
4221
4685
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4320,6 +4784,7 @@ class ConversationsApi {
|
|
|
4320
4784
|
* @param {String} conversationId conversationId
|
|
4321
4785
|
* @param {String} participantId participantId
|
|
4322
4786
|
* @param {Object} body Transfer request
|
|
4787
|
+
* @deprecated
|
|
4323
4788
|
*/
|
|
4324
4789
|
postConversationsCallbackParticipantReplace(conversationId, participantId, body) {
|
|
4325
4790
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4559,6 +5024,7 @@ class ConversationsApi {
|
|
|
4559
5024
|
* @param {String} conversationId conversationId
|
|
4560
5025
|
* @param {String} participantId participantId
|
|
4561
5026
|
* @param {Object} body Transfer request
|
|
5027
|
+
* @deprecated
|
|
4562
5028
|
*/
|
|
4563
5029
|
postConversationsChatParticipantReplace(conversationId, participantId, body) {
|
|
4564
5030
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4659,6 +5125,7 @@ class ConversationsApi {
|
|
|
4659
5125
|
* @param {String} participantId participantId
|
|
4660
5126
|
* @param {Object} opts Optional parameters
|
|
4661
5127
|
* @param {Object} opts.body
|
|
5128
|
+
* @deprecated
|
|
4662
5129
|
*/
|
|
4663
5130
|
postConversationsCobrowsesessionParticipantReplace(conversationId, participantId, opts) {
|
|
4664
5131
|
opts = opts || {};
|
|
@@ -4821,6 +5288,7 @@ class ConversationsApi {
|
|
|
4821
5288
|
* @param {String} conversationId conversationId
|
|
4822
5289
|
* @param {String} participantId participantId
|
|
4823
5290
|
* @param {Object} body Transfer request
|
|
5291
|
+
* @deprecated
|
|
4824
5292
|
*/
|
|
4825
5293
|
postConversationsEmailParticipantReplace(conversationId, participantId, body) {
|
|
4826
5294
|
// verify the required parameter 'conversationId' is set
|
|
@@ -5148,12 +5616,44 @@ class ConversationsApi {
|
|
|
5148
5616
|
);
|
|
5149
5617
|
}
|
|
5150
5618
|
|
|
5619
|
+
/**
|
|
5620
|
+
* Listen in on the conversation from the point of view of a given participant.
|
|
5621
|
+
*
|
|
5622
|
+
* @param {String} conversationId conversationId
|
|
5623
|
+
* @param {String} participantId participantId
|
|
5624
|
+
* postConversationsMessageParticipantMonitor is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5625
|
+
*/
|
|
5626
|
+
postConversationsMessageParticipantMonitor(conversationId, participantId) {
|
|
5627
|
+
// verify the required parameter 'conversationId' is set
|
|
5628
|
+
if (conversationId === undefined || conversationId === null) {
|
|
5629
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';
|
|
5630
|
+
}
|
|
5631
|
+
// verify the required parameter 'participantId' is set
|
|
5632
|
+
if (participantId === undefined || participantId === null) {
|
|
5633
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsMessageParticipantMonitor';
|
|
5634
|
+
}
|
|
5635
|
+
|
|
5636
|
+
return this.apiClient.callApi(
|
|
5637
|
+
'/api/v2/conversations/messages/{conversationId}/participants/{participantId}/monitor',
|
|
5638
|
+
'POST',
|
|
5639
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
5640
|
+
{ },
|
|
5641
|
+
{ },
|
|
5642
|
+
{ },
|
|
5643
|
+
null,
|
|
5644
|
+
['PureCloud OAuth'],
|
|
5645
|
+
['application/json'],
|
|
5646
|
+
['application/json']
|
|
5647
|
+
);
|
|
5648
|
+
}
|
|
5649
|
+
|
|
5151
5650
|
/**
|
|
5152
5651
|
* Replace this participant with the specified user and/or address
|
|
5153
5652
|
*
|
|
5154
5653
|
* @param {String} conversationId conversationId
|
|
5155
5654
|
* @param {String} participantId participantId
|
|
5156
5655
|
* @param {Object} body Transfer request
|
|
5656
|
+
* @deprecated
|
|
5157
5657
|
*/
|
|
5158
5658
|
postConversationsMessageParticipantReplace(conversationId, participantId, body) {
|
|
5159
5659
|
// verify the required parameter 'conversationId' is set
|
|
@@ -5283,6 +5783,31 @@ class ConversationsApi {
|
|
|
5283
5783
|
);
|
|
5284
5784
|
}
|
|
5285
5785
|
|
|
5786
|
+
/**
|
|
5787
|
+
* Create Instagram Integration
|
|
5788
|
+
*
|
|
5789
|
+
* @param {Object} body InstagramIntegrationRequest
|
|
5790
|
+
*/
|
|
5791
|
+
postConversationsMessagingIntegrationsInstagram(body) {
|
|
5792
|
+
// verify the required parameter 'body' is set
|
|
5793
|
+
if (body === undefined || body === null) {
|
|
5794
|
+
throw 'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsInstagram';
|
|
5795
|
+
}
|
|
5796
|
+
|
|
5797
|
+
return this.apiClient.callApi(
|
|
5798
|
+
'/api/v2/conversations/messaging/integrations/instagram',
|
|
5799
|
+
'POST',
|
|
5800
|
+
{ },
|
|
5801
|
+
{ },
|
|
5802
|
+
{ },
|
|
5803
|
+
{ },
|
|
5804
|
+
body,
|
|
5805
|
+
['PureCloud OAuth'],
|
|
5806
|
+
['application/json'],
|
|
5807
|
+
['application/json']
|
|
5808
|
+
);
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5286
5811
|
/**
|
|
5287
5812
|
* Create a LINE messenger Integration
|
|
5288
5813
|
*
|