purecloud-platform-client-v2 222.0.0 → 223.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.
Files changed (92) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +905 -512
  3. package/dist/web-amd/purecloud-platform-client-v2.js +905 -512
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +457 -380
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +457 -380
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1194 -992
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +3 -2
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +5 -6
  21. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +36 -1
  26. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +150 -1
  43. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +2 -3
  51. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +71 -8
  72. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +51 -1
  73. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +512 -415
  92. package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "222.0.0",
3
+ "version": "223.0.0",
4
4
  "description": "A JavaScript library to interface with the PureCloud Platform API",
5
5
  "license": "MIT",
6
6
  "main": "dist/node/purecloud-platform-client-v2.js",
@@ -6,7 +6,7 @@ import { default as qs } from 'qs';
6
6
 
7
7
  /**
8
8
  * @module purecloud-platform-client-v2/ApiClient
9
- * @version 222.0.0
9
+ * @version 223.0.0
10
10
  */
11
11
  class ApiClient {
12
12
  /**
@@ -5,7 +5,7 @@ class AgentAssistantsApi {
5
5
  /**
6
6
  * AgentAssistants service.
7
7
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -208,6 +208,7 @@ class AgentAssistantsApi {
208
208
  * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
209
209
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
210
210
  * @param {String} opts.name Return the assistant by the given name.
211
+ * @param {Object} opts.expand Which fields, if any, to expand
211
212
  */
212
213
  getAssistants(opts) {
213
214
  opts = opts || {};
@@ -217,7 +218,7 @@ class AgentAssistantsApi {
217
218
  '/api/v2/assistants',
218
219
  'GET',
219
220
  { },
220
- { 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'name': opts['name'] },
221
+ { 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'name': opts['name'],'expand': opts['expand'] },
221
222
  { },
222
223
  { },
223
224
  null,
@@ -5,7 +5,7 @@ class AgentCopilotApi {
5
5
  /**
6
6
  * AgentCopilot service.
7
7
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentUIApi {
5
5
  /**
6
6
  * AgentUI service.
7
7
  * @module purecloud-platform-client-v2/api/AgentUIApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AnalyticsApi {
5
5
  /**
6
6
  * Analytics service.
7
7
  * @module purecloud-platform-client-v2/api/AnalyticsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuthorizationApi {
5
5
  /**
6
6
  * Authorization service.
7
7
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BusinessRulesApi {
5
5
  /**
6
6
  * BusinessRules service.
7
7
  * @module purecloud-platform-client-v2/api/BusinessRulesApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -278,7 +278,7 @@ class BusinessRulesApi {
278
278
  * @param {String} tableId Table ID
279
279
  * @param {Object} opts Optional parameters
280
280
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
281
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
281
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
282
282
  * @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
283
283
  * getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
284
284
  */
@@ -309,7 +309,7 @@ class BusinessRulesApi {
309
309
  *
310
310
  * @param {Object} opts Optional parameters
311
311
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
312
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
312
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
313
313
  * @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
314
314
  * getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
315
315
  */
@@ -335,9 +335,8 @@ class BusinessRulesApi {
335
335
  * Search for decision tables.
336
336
  *
337
337
  * @param {Object} opts Optional parameters
338
- * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
339
338
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
340
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
339
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
341
340
  * @param {String} opts.schemaId Search for decision tables that use the schema with this ID. Cannot be combined with name search. Search results will not be paginated if used.
342
341
  * @param {String} opts.name Search for decision tables with a name that contains the given search string. Search is case insensitive and will match any table that contains this string in any part of the name. Cannot be combined with schema search. Search results will not be paginated if used.
343
342
  * getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
@@ -350,7 +349,7 @@ class BusinessRulesApi {
350
349
  '/api/v2/businessrules/decisiontables/search',
351
350
  'GET',
352
351
  { },
353
- { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'schemaId': opts['schemaId'],'name': opts['name'] },
352
+ { 'after': opts['after'],'pageSize': opts['pageSize'],'schemaId': opts['schemaId'],'name': opts['name'] },
354
353
  { },
355
354
  { },
356
355
  null,
@@ -5,7 +5,7 @@ class CarrierServicesApi {
5
5
  /**
6
6
  * CarrierServices service.
7
7
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ChatApi {
5
5
  /**
6
6
  * Chat service.
7
7
  * @module purecloud-platform-client-v2/api/ChatApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -6323,6 +6323,41 @@ class ConversationsApi {
6323
6323
  );
6324
6324
  }
6325
6325
 
6326
+ /**
6327
+ * Send a social media message
6328
+ * Send a social media message on existing conversation/communication.
6329
+ * @param {String} conversationId conversationId
6330
+ * @param {String} communicationId communicationId
6331
+ * @param {Object} body Message
6332
+ */
6333
+ postConversationsMessageCommunicationSocialmediaMessages(conversationId, communicationId, body) {
6334
+ // verify the required parameter 'conversationId' is set
6335
+ if (conversationId === undefined || conversationId === null) {
6336
+ throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';
6337
+ }
6338
+ // verify the required parameter 'communicationId' is set
6339
+ if (communicationId === undefined || communicationId === null) {
6340
+ throw 'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';
6341
+ }
6342
+ // verify the required parameter 'body' is set
6343
+ if (body === undefined || body === null) {
6344
+ throw 'Missing the required parameter "body" when calling postConversationsMessageCommunicationSocialmediaMessages';
6345
+ }
6346
+
6347
+ return this.apiClient.callApi(
6348
+ '/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/socialmedia/messages',
6349
+ 'POST',
6350
+ { 'conversationId': conversationId,'communicationId': communicationId },
6351
+ { },
6352
+ { },
6353
+ { },
6354
+ body,
6355
+ ['PureCloud OAuth'],
6356
+ ['application/json'],
6357
+ ['application/json']
6358
+ );
6359
+ }
6360
+
6326
6361
  /**
6327
6362
  * Send message typing event
6328
6363
  * Send message typing event for existing conversation/communication.
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DataPrivacyApi {
5
5
  /**
6
6
  * DataPrivacy service.
7
7
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DownloadsApi {
5
5
  /**
6
6
  * Downloads service.
7
7
  * @module purecloud-platform-client-v2/api/DownloadsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EmailsApi {
5
5
  /**
6
6
  * Emails service.
7
7
  * @module purecloud-platform-client-v2/api/EmailsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EmployeeEngagementApi {
5
5
  /**
6
6
  * EmployeeEngagement service.
7
7
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EventsApi {
5
5
  /**
6
6
  * Events service.
7
7
  * @module purecloud-platform-client-v2/api/EventsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ExternalContactsApi {
5
5
  /**
6
6
  * ExternalContacts service.
7
7
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FlowsApi {
5
5
  /**
6
6
  * Flows service.
7
7
  * @module purecloud-platform-client-v2/api/FlowsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GamificationApi {
5
5
  /**
6
6
  * Gamification service.
7
7
  * @module purecloud-platform-client-v2/api/GamificationApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeolocationApi {
5
5
  /**
6
6
  * Geolocation service.
7
7
  * @module purecloud-platform-client-v2/api/GeolocationApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IdentityProviderApi {
5
5
  /**
6
6
  * IdentityProvider service.
7
7
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class InfrastructureAsCodeApi {
5
5
  /**
6
6
  * InfrastructureAsCode service.
7
7
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -636,6 +636,103 @@ class IntegrationsApi {
636
636
  );
637
637
  }
638
638
 
639
+ /**
640
+ * Get a specific Bot details
641
+ *
642
+ * @param {String} integrationId The integration ID for this group of bots
643
+ * @param {String} botId The bot ID for this bot
644
+ * @param {Object} opts Optional parameters
645
+ * @param {String} opts.version Specific Version
646
+ * getIntegrationsBotconnectorBot is a preview method and is subject to both breaking and non-breaking changes at any time without notice
647
+ */
648
+ getIntegrationsBotconnectorBot(integrationId, botId, opts) {
649
+ opts = opts || {};
650
+
651
+ // verify the required parameter 'integrationId' is set
652
+ if (integrationId === undefined || integrationId === null) {
653
+ throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';
654
+ }
655
+ // verify the required parameter 'botId' is set
656
+ if (botId === undefined || botId === null) {
657
+ throw 'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';
658
+ }
659
+
660
+ return this.apiClient.callApi(
661
+ '/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}',
662
+ 'GET',
663
+ { 'integrationId': integrationId,'botId': botId },
664
+ { 'version': opts['version'] },
665
+ { },
666
+ { },
667
+ null,
668
+ ['PureCloud OAuth'],
669
+ ['application/json'],
670
+ ['application/json']
671
+ );
672
+ }
673
+
674
+ /**
675
+ * Get the list of bots for this integration.
676
+ *
677
+ * @param {String} integrationId The integration ID for this group of bots.
678
+ * @param {Object} opts Optional parameters
679
+ * @param {Number} opts.pageNumber Page number (default to 1)
680
+ * @param {Number} opts.pageSize Page size (default to 25)
681
+ * getIntegrationsBotconnectorBots is a preview method and is subject to both breaking and non-breaking changes at any time without notice
682
+ */
683
+ getIntegrationsBotconnectorBots(integrationId, opts) {
684
+ opts = opts || {};
685
+
686
+ // verify the required parameter 'integrationId' is set
687
+ if (integrationId === undefined || integrationId === null) {
688
+ throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBots';
689
+ }
690
+
691
+ return this.apiClient.callApi(
692
+ '/api/v2/integrations/botconnectors/{integrationId}/bots',
693
+ 'GET',
694
+ { 'integrationId': integrationId },
695
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
696
+ { },
697
+ { },
698
+ null,
699
+ ['PureCloud OAuth'],
700
+ ['application/json'],
701
+ ['application/json']
702
+ );
703
+ }
704
+
705
+ /**
706
+ * Get the summary list of bots for this integration.
707
+ *
708
+ * @param {String} integrationId The integration ID for this group of bots.
709
+ * @param {Object} opts Optional parameters
710
+ * @param {Number} opts.pageNumber Page number (default to 1)
711
+ * @param {Number} opts.pageSize Page size (default to 25)
712
+ * getIntegrationsBotconnectorBotsSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
713
+ */
714
+ getIntegrationsBotconnectorBotsSummaries(integrationId, opts) {
715
+ opts = opts || {};
716
+
717
+ // verify the required parameter 'integrationId' is set
718
+ if (integrationId === undefined || integrationId === null) {
719
+ throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBotsSummaries';
720
+ }
721
+
722
+ return this.apiClient.callApi(
723
+ '/api/v2/integrations/botconnectors/{integrationId}/bots/summaries',
724
+ 'GET',
725
+ { 'integrationId': integrationId },
726
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
727
+ { },
728
+ { },
729
+ null,
730
+ ['PureCloud OAuth'],
731
+ ['application/json'],
732
+ ['application/json']
733
+ );
734
+ }
735
+
639
736
  /**
640
737
  * Get a specific botConnector bot, plus versions, for this integration
641
738
  *
@@ -2115,6 +2212,58 @@ class IntegrationsApi {
2115
2212
  );
2116
2213
  }
2117
2214
 
2215
+ /**
2216
+ * Send an incoming message to the bot.
2217
+ *
2218
+ * @param {Object} body Incoming Message Request
2219
+ * postIntegrationsBotconnectorsIncomingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2220
+ */
2221
+ postIntegrationsBotconnectorsIncomingMessages(body) {
2222
+ // verify the required parameter 'body' is set
2223
+ if (body === undefined || body === null) {
2224
+ throw 'Missing the required parameter "body" when calling postIntegrationsBotconnectorsIncomingMessages';
2225
+ }
2226
+
2227
+ return this.apiClient.callApi(
2228
+ '/api/v2/integrations/botconnectors/incoming/messages',
2229
+ 'POST',
2230
+ { },
2231
+ { },
2232
+ { },
2233
+ { },
2234
+ body,
2235
+ ['PureCloud OAuth'],
2236
+ ['application/json'],
2237
+ ['application/json']
2238
+ );
2239
+ }
2240
+
2241
+ /**
2242
+ * Send an outgoing message to the end user.
2243
+ *
2244
+ * @param {Object} body Outgoing Message Request
2245
+ * postIntegrationsBotconnectorsOutgoingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2246
+ */
2247
+ postIntegrationsBotconnectorsOutgoingMessages(body) {
2248
+ // verify the required parameter 'body' is set
2249
+ if (body === undefined || body === null) {
2250
+ throw 'Missing the required parameter "body" when calling postIntegrationsBotconnectorsOutgoingMessages';
2251
+ }
2252
+
2253
+ return this.apiClient.callApi(
2254
+ '/api/v2/integrations/botconnectors/outgoing/messages',
2255
+ 'POST',
2256
+ { },
2257
+ { },
2258
+ { },
2259
+ { },
2260
+ body,
2261
+ ['PureCloud OAuth'],
2262
+ ['application/json'],
2263
+ ['application/json']
2264
+ );
2265
+ }
2266
+
2118
2267
  /**
2119
2268
  * Create a set of credentials
2120
2269
  *
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguagesApi {
5
5
  /**
6
6
  * Languages service.
7
7
  * @module purecloud-platform-client-v2/api/LanguagesApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LearningApi {
5
5
  /**
6
6
  * Learning service.
7
7
  * @module purecloud-platform-client-v2/api/LearningApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LicenseApi {
5
5
  /**
6
6
  * License service.
7
7
  * @module purecloud-platform-client-v2/api/LicenseApi
8
- * @version 222.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**