purecloud-platform-client-v2 180.0.0 → 181.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 (83) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +475 -160
  3. package/dist/web-amd/purecloud-platform-client-v2.js +475 -160
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +475 -160
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +683 -195
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +420 -234
  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/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -74
  19. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +59 -3
  22. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/JourneyApi.js +73 -2
  38. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +71 -0
  50. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/PresenceApi.js +9 -4
  54. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/QualityApi.js +2 -2
  56. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +86 -1
  70. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/UsersApi.js +92 -2
  76. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +17 -7
  83. package/src/purecloud-platform-client-v2/index.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "180.0.0",
3
+ "version": "181.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",
@@ -4,7 +4,7 @@ import { default as qs } from 'qs';
4
4
 
5
5
  /**
6
6
  * @module purecloud-platform-client-v2/ApiClient
7
- * @version 180.0.0
7
+ * @version 181.0.0
8
8
  */
9
9
  class ApiClient {
10
10
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CarrierServicesApi {
5
5
  /**
6
6
  * CarrierServices service.
7
7
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
8
- * @version 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -144,27 +144,6 @@ class ChatApi {
144
144
  );
145
145
  }
146
146
 
147
- /**
148
- * Get Chat Settings.
149
- * This route is deprecated, please use /chats/settings instead
150
- * @deprecated
151
- */
152
- getChatSettings() {
153
-
154
- return this.apiClient.callApi(
155
- '/api/v2/chat/settings',
156
- 'GET',
157
- { },
158
- { },
159
- { },
160
- { },
161
- null,
162
- ['PureCloud OAuth'],
163
- ['application/json'],
164
- ['application/json']
165
- );
166
- }
167
-
168
147
  /**
169
148
  * Get a message
170
149
  *
@@ -413,32 +392,6 @@ class ChatApi {
413
392
  );
414
393
  }
415
394
 
416
- /**
417
- * Patch Chat Settings.
418
- * This route is deprecated, please use /chats/settings instead
419
- * @param {Object} body Chat
420
- * @deprecated
421
- */
422
- patchChatSettings(body) {
423
- // verify the required parameter 'body' is set
424
- if (body === undefined || body === null) {
425
- throw 'Missing the required parameter "body" when calling patchChatSettings';
426
- }
427
-
428
- return this.apiClient.callApi(
429
- '/api/v2/chat/settings',
430
- 'PATCH',
431
- { },
432
- { },
433
- { },
434
- { },
435
- body,
436
- ['PureCloud OAuth'],
437
- ['application/json'],
438
- ['application/json']
439
- );
440
- }
441
-
442
395
  /**
443
396
  * Set properties for a room
444
397
  *
@@ -717,32 +670,6 @@ class ChatApi {
717
670
  );
718
671
  }
719
672
 
720
- /**
721
- * Update Chat Settings.
722
- * This route is deprecated, please use /chats/settings instead
723
- * @param {Object} body Chat
724
- * @deprecated
725
- */
726
- putChatSettings(body) {
727
- // verify the required parameter 'body' is set
728
- if (body === undefined || body === null) {
729
- throw 'Missing the required parameter "body" when calling putChatSettings';
730
- }
731
-
732
- return this.apiClient.callApi(
733
- '/api/v2/chat/settings',
734
- 'PUT',
735
- { },
736
- { },
737
- { },
738
- { },
739
- body,
740
- ['PureCloud OAuth'],
741
- ['application/json'],
742
- ['application/json']
743
- );
744
- }
745
-
746
673
  /**
747
674
  * Update Chat Settings.
748
675
  *
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -4050,6 +4050,36 @@ class ConversationsApi {
4050
4050
  );
4051
4051
  }
4052
4052
 
4053
+ /**
4054
+ * Activate a WhatsApp messaging integration created using the WhatsApp embedded signup flow
4055
+ * Please specify the phone number to associate with this WhatsApp integration from the list of available phone numbers returned to you in the POST call to create the integration. You can then run a GET on the integration to check if its status has been updated to Active
4056
+ * @param {String} integrationId Integration ID
4057
+ * @param {Object} body WhatsAppEmbeddedSignupIntegrationActivationRequest
4058
+ */
4059
+ patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(integrationId, body) {
4060
+ // verify the required parameter 'integrationId' is set
4061
+ if (integrationId === undefined || integrationId === null) {
4062
+ throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';
4063
+ }
4064
+ // verify the required parameter 'body' is set
4065
+ if (body === undefined || body === null) {
4066
+ throw 'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';
4067
+ }
4068
+
4069
+ return this.apiClient.callApi(
4070
+ '/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup/{integrationId}',
4071
+ 'PATCH',
4072
+ { 'integrationId': integrationId },
4073
+ { },
4074
+ { },
4075
+ { },
4076
+ body,
4077
+ ['PureCloud OAuth'],
4078
+ ['application/json'],
4079
+ ['application/json']
4080
+ );
4081
+ }
4082
+
4053
4083
  /**
4054
4084
  * Update or activate a WhatsApp messaging integration
4055
4085
  * The following steps are required in order to fully activate a WhatsApp Integration: Initially, you will need to get an activation code by sending: an action set to Activate, and an authenticationMethod choosing from Sms or Voice. Finally, once you have been informed of an activation code on selected authenticationMethod, you will need to confirm the code by sending: an action set to Confirm, and the confirmationCode you have received from Whatsapp.
@@ -6276,9 +6306,10 @@ class ConversationsApi {
6276
6306
  }
6277
6307
 
6278
6308
  /**
6279
- * Create a WhatsApp Integration
6280
- * You must be approved by WhatsApp to use this feature. Your approved e164-formatted phone number and valid WhatsApp certificate for your number are required. Your WhatsApp certificate must have valid base64 encoding. Please paste carefully and do not add any leading or trailing spaces. Do not alter any characters. An integration must be activated within 7 days of certificate generation. If you cannot complete the addition and activation of the number within 7 days, please obtain a new certificate before creating the integration. Integrations created with an invalid number or certificate may immediately incur additional integration fees. Please carefully enter your number and certificate as described.
6309
+ * [This API is deprecated. Use POST /api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup instead] Create a WhatsApp Integration
6310
+ * [This API is deprecated. Use POST /api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup instead] You must be approved by WhatsApp to use this feature. Your approved e164-formatted phone number and valid WhatsApp certificate for your number are required. Your WhatsApp certificate must have valid base64 encoding. Please paste carefully and do not add any leading or trailing spaces. Do not alter any characters. An integration must be activated within 7 days of certificate generation. If you cannot complete the addition and activation of the number within 7 days, please obtain a new certificate before creating the integration. Integrations created with an invalid number or certificate may immediately incur additional integration fees. Please carefully enter your number and certificate as described.
6281
6311
  * @param {Object} body WhatsAppIntegrationRequest
6312
+ * @deprecated
6282
6313
  */
6283
6314
  postConversationsMessagingIntegrationsWhatsapp(body) {
6284
6315
  // verify the required parameter 'body' is set
@@ -6300,6 +6331,31 @@ class ConversationsApi {
6300
6331
  );
6301
6332
  }
6302
6333
 
6334
+ /**
6335
+ * Create a WhatsApp Integration using the WhatsApp embedded signup flow
6336
+ * Use the access token returned from the embedded signup flow to obtain a list of available phone numbers that can be associated with the created integration. The returned WhatsApp integration will initially have a createStatus of Initiated until the list of available phone numbers can be obtained from the provider. Please run a GET on the created integration until it returns a createStatus of Completed, and the list of available phone numbers obtained from the provider. You can then specify one of the available phone numbers in the PATCH call on the integration to activate it.
6337
+ * @param {Object} body WhatsAppEmbeddedSignupIntegrationRequest
6338
+ */
6339
+ postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(body) {
6340
+ // verify the required parameter 'body' is set
6341
+ if (body === undefined || body === null) {
6342
+ throw 'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsappEmbeddedsignup';
6343
+ }
6344
+
6345
+ return this.apiClient.callApi(
6346
+ '/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup',
6347
+ 'POST',
6348
+ { },
6349
+ { },
6350
+ { },
6351
+ { },
6352
+ body,
6353
+ ['PureCloud OAuth'],
6354
+ ['application/json'],
6355
+ ['application/json']
6356
+ );
6357
+ }
6358
+
6303
6359
  /**
6304
6360
  * Create a messaging setting
6305
6361
  *
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -447,6 +447,48 @@ class JourneyApi {
447
447
  );
448
448
  }
449
449
 
450
+ /**
451
+ * Send a ping.
452
+ *
453
+ * @param {String} deploymentId The ID of the deployment sending the ping.
454
+ * @param {String} customerCookieId ID of the customer associated with the ping.
455
+ * @param {String} sessionId UUID of the customer session. Use the same Session Id for all pings, AppEvents and ActionEvents in the session
456
+ * @param {Object} opts Optional parameters
457
+ * @param {String} opts.dl Document Location: 1) Web Page URL if overridden or URL fragment identifier (window.location.hash). OR 2) Application screen name that the ping request was sent from in the app. e.g. 'home' or 'help. Pings without this parameter will not return actions.
458
+ * @param {String} opts.dt Document Title. A human readable name for the page or screen
459
+ * @param {String} opts.appNamespace Namespace of the application (e.g. com.genesys.bancodinero). Used for domain filtering in application sessions
460
+ * @param {Number} opts.sinceLastBeaconMilliseconds How long (milliseconds) since the last app event or beacon was sent. The response may return a pollInternvalMilliseconds to reduce the frequency of pings.
461
+ */
462
+ getJourneyDeploymentCustomerPing(deploymentId, customerCookieId, sessionId, opts) {
463
+ opts = opts || {};
464
+
465
+ // verify the required parameter 'deploymentId' is set
466
+ if (deploymentId === undefined || deploymentId === null) {
467
+ throw 'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';
468
+ }
469
+ // verify the required parameter 'customerCookieId' is set
470
+ if (customerCookieId === undefined || customerCookieId === null) {
471
+ throw 'Missing the required parameter "customerCookieId" when calling getJourneyDeploymentCustomerPing';
472
+ }
473
+ // verify the required parameter 'sessionId' is set
474
+ if (sessionId === undefined || sessionId === null) {
475
+ throw 'Missing the required parameter "sessionId" when calling getJourneyDeploymentCustomerPing';
476
+ }
477
+
478
+ return this.apiClient.callApi(
479
+ '/api/v2/journey/deployments/{deploymentId}/customers/{customerCookieId}/ping',
480
+ 'GET',
481
+ { 'deploymentId': deploymentId,'customerCookieId': customerCookieId },
482
+ { 'dl': opts['dl'],'dt': opts['dt'],'appNamespace': opts['appNamespace'],'sessionId': sessionId,'sinceLastBeaconMilliseconds': opts['sinceLastBeaconMilliseconds'] },
483
+ { },
484
+ { },
485
+ null,
486
+ ['PureCloud OAuth'],
487
+ ['application/json'],
488
+ ['application/json']
489
+ );
490
+ }
491
+
450
492
  /**
451
493
  * Retrieve a single outcome.
452
494
  *
@@ -1036,13 +1078,42 @@ class JourneyApi {
1036
1078
  );
1037
1079
  }
1038
1080
 
1081
+ /**
1082
+ * Sends an action event, which is used for changing the state of actions that have been offered to the user.
1083
+ *
1084
+ * @param {String} deploymentId The ID of the deployment sending the beacon.
1085
+ * @param {Object} body
1086
+ */
1087
+ postJourneyDeploymentActionevent(deploymentId, body) {
1088
+ // verify the required parameter 'deploymentId' is set
1089
+ if (deploymentId === undefined || deploymentId === null) {
1090
+ throw 'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';
1091
+ }
1092
+ // verify the required parameter 'body' is set
1093
+ if (body === undefined || body === null) {
1094
+ throw 'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';
1095
+ }
1096
+
1097
+ return this.apiClient.callApi(
1098
+ '/api/v2/journey/deployments/{deploymentId}/actionevent',
1099
+ 'POST',
1100
+ { 'deploymentId': deploymentId },
1101
+ { },
1102
+ { },
1103
+ { },
1104
+ body,
1105
+ ['PureCloud OAuth'],
1106
+ ['application/json'],
1107
+ ['application/json']
1108
+ );
1109
+ }
1110
+
1039
1111
  /**
1040
1112
  * Send a journey app event, used for tracking customer activity on an application.
1041
1113
  *
1042
1114
  * @param {String} deploymentId The ID of the deployment sending the app event.
1043
1115
  * @param {Object} opts Optional parameters
1044
1116
  * @param {Object} opts.body
1045
- * postJourneyDeploymentAppevents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1046
1117
  */
1047
1118
  postJourneyDeploymentAppevents(deploymentId, opts) {
1048
1119
  opts = opts || {};
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.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 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LocationsApi {
5
5
  /**
6
6
  * Locations service.
7
7
  * @module purecloud-platform-client-v2/api/LocationsApi
8
- * @version 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MessagingApi {
5
5
  /**
6
6
  * Messaging service.
7
7
  * @module purecloud-platform-client-v2/api/MessagingApi
8
- * @version 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MobileDevicesApi {
5
5
  /**
6
6
  * MobileDevices service.
7
7
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
8
- * @version 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class NotificationsApi {
5
5
  /**
6
6
  * Notifications service.
7
7
  * @module purecloud-platform-client-v2/api/NotificationsApi
8
- * @version 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OAuthApi {
5
5
  /**
6
6
  * OAuth service.
7
7
  * @module purecloud-platform-client-v2/api/OAuthApi
8
- * @version 180.0.0
8
+ * @version 181.0.0
9
9
  */
10
10
 
11
11
  /**